found the answer in another thread, 
added the following

cycle.cleanup();
throw new PageRedirectException(this.getPage();

to the listener function

On Tue, 2005-12-27 at 13:08 +0100, Gertjan Assies wrote:
> Hi,
> 
> I have a directlink in a component to set the locale:
> 
> <span jwcid="@DirectLink" listener="listener:changeLocale"
> parameters="en">en</span>
> 
> The listener function called:
> 
> public IPage changeLocale(String _locale) {
>       Locale locale = new Locale(_locale);
>       this.getPage().getEngine().setLocale(locale);
>       return this.getPage();
> }
> 
> The new locale is used only when i refresh the page manually or click
> another link, not immediately.
> Is there a way to 'refresh' it in the function above, do the new locale
> is visible immediately?
> 
> thanks,
> Gertjan
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to