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

Add constructor (String, Serializable, String) to AttributeAppender

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.18.0
    • Fix Version/s: 7.0.0-M5, 6.19.0
    • Component/s: wicket
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: