Sebastiaan van Erk wrote:
> 
> As far as I can tell, there's still only 1 resource, which has the 
> locale of the page (at creation time).
> 

Every time the page is rendered, it will generate a different variant of
the resource reference due to the setLocale() call.


Sebastiaan van Erk wrote:
> 
> But I have a link on the page which allows you to change the locale. 
> This link is stateful, so it just calls the callback on the current page 
> and sets the locale.
> 

No problem. If the link is a normal link (not ajax), you'll render the
page again and thus will have a new resource reference. If it's
ajax, you need to put the setLocale() call into a callback and
refresh the link.


-----
--
Kent Tong
Wicket tutorials freely available at http://www.agileskills2.org/EWDW
Axis2 tutorials freely available at http://www.agileskills2.org/DWSAA
-- 
View this message in context: 
http://www.nabble.com/Re%3A-Small-shared-resource-question...-tp15663443p15727184.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to