I run Tapestry 4 but I think it works similar... or maybe not... this is
what I do:
In the html I have this:
<a href="#" jwcid="@DirectLink" listener="listener:setLocale"
parameters="ognl:'en'" title="message:english">
<img jwcid="@Image" image="asset:englishImageAsset"
alt="message:english"/>
</a>
<a href="#" jwcid="@DirectLink" listener="listener:setLocale"
parameters="ognl:'sv'">
<span key="swedish">Swedish</span>
</a>
and in the corresponding java I have this:
public void setLocale(String language) {
getPage().getEngine().setLocale(new Locale(language));
getPage().getRequestCycle().cleanup();
throw new PageRedirectException(this.getPage());
}
Malin
On 7/31/06, Peter Dawn <[EMAIL PROTECTED]> wrote:
i forgot to mention that i am using tapestry 3.0.3.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]