Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-1895

AjaxButton should have a constructor to set the label

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.0-beta1, 1.3.0-beta2, 1.3.0-beta3, 1.3.0-beta4, 1.3.0-rc1, 1.3.0-rc2, 1.3.0-final, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.3.5
    • 1.3.6, 1.4-RC1
    • wicket
    • None

    Description

      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.

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            steve.swinsburg Steve Swinsburg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: