Hi Wolfgang,

If I had to refresh the entire page on language change, I would not do it
with an Ajax Request, but with a normal one instead. I do not know how will
setResponsePage behave in a serverside Ajax callback. However, if you need
to do it with ajax, you should add the language dependent components to the
AjaxRequestTarget...

Hope that helped.

Cheers,
Xavier

2010/4/16 Wolfgang Grossinger <[email protected]>

> We have a DropDownChoice to change the language of a page (the language in
> mapped through an enum). The handler to change the code is as follows.
>
>                @Override
>                protected void onSubmit(AjaxRequestTarget target) {
>
>  getSession().setLocale(getLanguage().getObject().getLocale());
>                    setResponsePage(getPage());
>                }
>
> We just have 3 pages and a login page. The code works on 2 of 3 pages but I
> don't know why it doesn't work on the third page (the code to find the
> language and to get the current page seems also to be correct and working).
> My question is does anybody have some hints what I could do wrong?
>
> Regards,
>
> Wolfgang
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to