Why don't you store the locale in session every time it is in URL? Or if you need more control store it in the page instance.
Kind regards, Matej Knopp InMethod On Thu, Oct 14, 2010 at 4:37 PM, marco.behler <m...@coderwerk.com> wrote: > > First of all, congratulations to the new request handling functionality. I've > been running into a tiny issue however. > Similarily to wicket-examples, I've got the following mapping: > > root.add(new LocaleMapper(new MountedMapper("/myPage", MyPage.class))); > > which let's me access the page via /de/myPage or /ch/myPage etc. > > Now on that page I've got a form, which's onSubmit() is dependent on the > locale of the first url segment - but I'd like to "not" have to store the > locale in a hidden field when rendering the form. > > Wicket naturally maps the form's action to /../wicket?jadajada....., leaving > out the locale, which messages up my onSubmit(). > > Any way around this? > > Thank you! > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/1-5-RequestMapper-and-Form-submit-tp2995427p2995427.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org