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

Add constructor (String, Serializable, String) to AttributeAppender

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 6.18.0
    • 7.0.0-M5, 6.19.0
    • wicket
    • None

    Description

      Now AttributeAppender has two constructors

      AttributeAppender(String attribute, Serializable value)
      AttributeAppender(String attribute, IModel<?> appendModel, String separator)

      but if I have fixed value for attribute i must write (for example attribute "class"):

      new AttributeAppender("class", "cssClass").setSeparator(" ");

      or

      new AttributeAppender("class", Model.of("cssClass"), " ");

      And I want to write something like this :

      new AttributeAppender("class", "cssClass", " ")

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            altro Alexey Trofimov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: