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

Improve AutoLabels by updating their CSS classes automatically during Ajax requests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 6.13.0, 7.0.0-M1
    • wicket
    • None

    Description

      The problem with auto labels is that once they are rendered the only way to update their `error`/`required` css classes during ajax requests is to update some parent since auto components cannot be targeted directly. however, when dealing with forms we may not necessarily want to repaint components because we may lose state.

      This issue solves the problem by tracking state changes in form components that have auto labels and updating their css classes on all ajax requests.

      disabled by default in 6.13 (to enable override WebApplication#getUpdateAutoLabelsOnAjaxRequests() ), always enabled in 7.0

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            ivaynberg Igor Vaynberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: