Thanks very much Alejandro. I will go and try it.

Thanks very much :)

On 10/25/07, Alejandro Scandroli <[EMAIL PROTECTED]> wrote:
> Hi Joshua
>
> You can do something like this:
>
>        public void click(IRequestCycle cycle)
>        {
>                Locale locale = [YOUR LOCALE HERE]
>                getPage().getEngine().setLocale(locale);
> // pages already loaded stay in the old locale, so  to show that the
> locale has changed the page needs to be reloaded
>                cycle.cleanup();
>                throw new PageRedirectException(getPage());
>        }
>
> I hope it helps.
> Alejandro.
>
> On 10/25/07, Joshua Jackson <[EMAIL PROTECTED]> wrote:
> > Dear all,
> >
> > Is it possible to change locale from the page instead of from the
> > browser using T4?
> >
> > Thanks in advance
> >
> > --
> > What you want today, may not exist tommorrow
> >
> > Blog: http://joshuajava.wordpress.com/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
What you want today, may not exist tommorrow

Blog: http://joshuajava.wordpress.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to