Tim Fennell wrote:
> I think you're best bet would be to write either your own
> FloatTypeConverter or your own TypeConverterFactory.
>
> The latter would probably be the easiest approach.  In that case you
> could probably just override and very simply add some logic to switch
> the locale back to US regardless of what the requested locale is, when
> a number type converter is requested.

It works for validation, but when I display the field after submit, the 
value is formatted with french locale.  If I submit it again, the value is 
misinterpreted.

Example:
input 100.2
click submit
--> 100,2 is displayed
click submit
--> 1002 is displayed

It seems the only solution is to replace comas with dots using onkeyPress.




-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to