What you can do is to provide you own Converter to the Label and do you own number parsing/formatting. In my experience it makes sense to strictly follow the formats defined by the locales, otherwise user will complain about unexpected results when entering numbers, e.g. if they use the character that you would expect as decimal separator as grouping char.
On Fri, Feb 27, 2009 at 4:19 PM, Piller Sébastien <[email protected]> wrote: > Hi all, > > I'd like to know if there is a way to make an AjaxEditableLabel accept > either a comma or a dot as decimal separator. That field has a "Double" > type. > > It works well but I have to insert a "," as decimal separator (dots are not > allowed), which is quite unusual. I know this is related to Locale, but is > there an easy way? > > Thanks! > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
