On 5/29/07, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:
> Hi I have a form
>
>     <form wicket:id="Form">
>    <input type="hidden" wicket:id="longtitudeNE" name="longtitudeNE"
> id="longtitudeNE">
>     </form>
>
>
> java part:
>
>         gMapUpdatingForm.add(new HiddenField("longtitudeCenter", new
> PropertyModel(
>                 gMap.getCenter(), "longtitude")));
>
>
> If I am in US locale numbers are interpreted okay, however if in
> european locale they dont. Thats because the value are in US locale so
> how do I tell that these two fields should be interpereted as US. I have
> tried overiding the getlocale, but it does not seem to work?

I'm surprised that doesn't work for you... I've just tested this in
the InputForm example:

                        add(new RequiredTextField("doubleProperty")
                        {
                                @Override
                                public Locale getLocale()
                                {
                                        return Locale.US;
                                }
                        });

and that works like expected (change the locales, the double field
will still display numbers with the dot).

Can you debug and see whether getLocale is called in your case?

Eelco

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to