You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Peter Diefenthaeler <pd...@csc.com> on 2009/04/20 13:59:38 UTC
Localize AjaxSubmitLink
Hi,
is it possible to localize a AjaxSubmitLink?
I would like to replace "Speichern" with a localized value from a
properties file ...
HTML:
<input wicket:id="save": type="submit" value="Speichern"/>
Java:;
form.add(new AjaxSubmitLink("save") { ... });
Thanx, Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Localize AjaxSubmitLink
Posted by jcgarciam <jc...@gmail.com>.
Try using wicket:message
http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html
http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html
PDiefent wrote:
>
>
> Hi,
> is it possible to localize a AjaxSubmitLink?
> I would like to replace "Speichern" with a localized value from a
> properties file ...
>
> HTML:
> <input wicket:id="save": type="submit" value="Speichern"/>
> Java:;
> form.add(new AjaxSubmitLink("save") { ... });
>
> Thanx, Peter
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Localize-AjaxSubmitLink-tp23135348p23137663.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: Localize AjaxSubmitLink
Posted by Maarten Bosteels <mb...@gmail.com>.
Or:
<input wicket:id="save" type="submit"
wicket:message="value:speichern.textkey"/>
Maarten
On Mon, Apr 20, 2009 at 5:07 PM, Jeremy Thomerson
<je...@wickettraining.com> wrote:
> link = new AjaxSubmitLink(....);
> link.add(new AttributeModifier("value", true, new
> ResourceModel("speichern.textkey"));
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Mon, Apr 20, 2009 at 6:59 AM, Peter Diefenthaeler <pd...@csc.com>wrote:
>
>>
>> Hi,
>> is it possible to localize a AjaxSubmitLink?
>> I would like to replace "Speichern" with a localized value from a
>> properties file ...
>>
>> HTML:
>> <input wicket:id="save": type="submit" value="Speichern"/>
>> Java:;
>> form.add(new AjaxSubmitLink("save") { ... });
>>
>> Thanx, Peter
>>
>>
>> ---------------------------------------------------------------------
>> 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
Re: Localize AjaxSubmitLink
Posted by Jeremy Thomerson <je...@wickettraining.com>.
link = new AjaxSubmitLink(....);
link.add(new AttributeModifier("value", true, new
ResourceModel("speichern.textkey"));
--
Jeremy Thomerson
http://www.wickettraining.com
On Mon, Apr 20, 2009 at 6:59 AM, Peter Diefenthaeler <pd...@csc.com>wrote:
>
> Hi,
> is it possible to localize a AjaxSubmitLink?
> I would like to replace "Speichern" with a localized value from a
> properties file ...
>
> HTML:
> <input wicket:id="save": type="submit" value="Speichern"/>
> Java:;
> form.add(new AjaxSubmitLink("save") { ... });
>
> Thanx, Peter
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>