I think the better way of doing this is;

<input type="button" wicket:id="foo" value="preview"
wicket:message="value:propertyKey"/>


Al Maw wrote:
> 
> Tim Lantry wrote:
>> How do you localize the 'label' on an AjaxButton component?
> 
> Off the top of my head, try:
> 
> AjaxButton foo = new AjaxButton("foo");
> foo.setModel(new StringResourceModel("propertyKey"));
> 
> 
> Regards,
> 
> Al
> -- 
> Alastair Maw
> Wicket-biased blog at http://herebebeasties.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Localize-AjaxButton-tf4423210.html#a12619476
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