AjaxButton should have a constructor to set the label
-----------------------------------------------------
Key: WICKET-1895
URL: https://issues.apache.org/jira/browse/WICKET-1895
Project: Wicket
Issue Type: Improvement
Components: wicket
Affects Versions: 1.3.5, 1.3.4, 1.3.3, 1.3.2, 1.3.1, 1.3.0-final,
1.3.0-rc2, 1.3.0-rc1, 1.3.0-beta4, 1.3.0-beta3, 1.3.0-beta2, 1.3.0-beta1
Reporter: Steve Swinsburg
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.