add an rfe into jira. there is no special reason afaik. actually if it
were up to me button wouldnt waste its model on the label, you can
just add that directly into markup with wicket:message in 90% of
cases.

-igor

On Fri, Oct 24, 2008 at 7:20 AM, Steve Swinsburg
<[EMAIL PROTECTED]> wrote:
> Is there a special reason why an AjaxButton doesn't have a constructor that
> allows a label to be set onto it automatically like a normal form Button?
> Shouldn't the AjaxButton have a constructor like the Button constructor?:
> Button(java.lang.String id, IModel model)
> Constructor taking an model for rendering the 'label' of the button (the
> value attribute of the input/button tag).
>
> I realise you can use setLabel to set the label after it's been declared but
> it just seems inconsistent.
>
>
> cheers,
> Steve
> ---
> Steve Swinsburg
> Portal Systems Developer
> Centre for e-Science
> Lancaster University
> Lancaster
> LA1 4YT
> email: [EMAIL PROTECTED]
> phone: +44 (0) 1524 594870
>
>
>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to