Other than remove the confusion with Link where the IModel is used as
an object in the onclick handler... I don't think I can find a reason.

Martijn

On 9/11/07, Al Maw <[EMAIL PROTECTED]> wrote:
> 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
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/

Reply via email to