dev@javaserverfaces.java.net

[Converter] improvements ?

From: Matthias Wessendorf <matzew_at_apache.org>
Date: Mon, 7 Apr 2008 17:42:57 +0200

Hi,

when having this:
<h:inputText value="#{bean.myDoubleValue}" ... /> the *default*
double_converter is used,
which doesn't honor the underlying locale.

Sure, you can always nest a <f:convertNumber /> to honor the locale,
but... should we make it
a default ?

I think it would be very convenient to always use the NumberConverter
for numeric values...

I doubt that an internationalized application will really use
<h:inputText value="someDouble" />.

Instead they do stuff like:
<h:inputText value="someDouble" ...>
  <f:convertNumber ... />
</h:inputText>

any thoughts?

-- 
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org