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"));

Hi folks,

I've pulled the above over from the users@ list.

Is there any reason we don't have constructors for AjaxButton that take an IModel to do this?

Regards,

Al

--
Alastair Maw
Wicket-biased blog at http://herebebeasties.com

Reply via email to