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. -t On Jun 2, 2008, at 7:16 AM, Lionel wrote: > Hi ! > > I still have my Locale and validation problem. > > I only use French locale in LocalePicker.Locales, but I want to > validate > numbers agains US locale (we usually use dot to input numbers, but > coma to > show them). > The best would be to accept both US and French numbers. > > What is the best way to do this with stripes ? > > > thanks > > > Lionel wrote: >> Hi ! >> >> My applications need french locale to display values (dates and >> numbers) but English locale for Float and Double inputs (nobody use >> the coma separator to type decimal values) >> How can I configure Stripes to always use the US locale for Number >> validation but still use French for display and for dates inputs ? >> I guess I can override FloatTypeConverter to hardcode the locale, but >> is there another way ? > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Stripes-users mailing list > Stripes-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/stripes-users ------------------------------------------------------------------------- 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 Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users