You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Mathias Nilsson <wi...@gmail.com> on 2009/05/01 10:22:54 UTC
Re: Share Localization across many pages/componets
You could do this in your base class if you use markup inheritence
public String getResource( String resource ){
return Application.get().getResourceSettings().getLocalizer().getString(
resource, null, "");
}
--
View this message in context: http://www.nabble.com/Share-Localization-across-many-pages-componets-tp23323748p23329846.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Share Localization across many pages/componets
Posted by Martijn Dashorst <ma...@gmail.com>.
and use <wicket:message> in your pages... but it seems you already
found this one :)
Martijn
On Fri, May 1, 2009 at 4:45 PM, Jeremy Thomerson
<je...@wickettraining.com> wrote:
> Typically you should avoid this raw data push / pull and instead use a
> ResourceModel.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
>
> On Fri, May 1, 2009 at 3:22 AM, Mathias Nilsson
> <wi...@gmail.com> wrote:
>>
>> You could do this in your base class if you use markup inheritence
>>
>> public String getResource( String resource ){
>> return Application.get().getResourceSettings().getLocalizer().getString(
>> resource, null, "");
>> }
>> --
>> View this message in context: http://www.nabble.com/Share-Localization-across-many-pages-componets-tp23323748p23329846.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Share Localization across many pages/componets
Posted by Jeremy Thomerson <je...@wickettraining.com>.
Typically you should avoid this raw data push / pull and instead use a
ResourceModel.
--
Jeremy Thomerson
http://www.wickettraining.com
On Fri, May 1, 2009 at 3:22 AM, Mathias Nilsson
<wi...@gmail.com> wrote:
>
> You could do this in your base class if you use markup inheritence
>
> public String getResource( String resource ){
> return Application.get().getResourceSettings().getLocalizer().getString(
> resource, null, "");
> }
> --
> View this message in context: http://www.nabble.com/Share-Localization-across-many-pages-componets-tp23323748p23329846.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org