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]

Reply via email to