Wicket
  1. Wicket
  2. WICKET-5411

Improve AutoLabels by updating their CSS classes automatically during Ajax requests

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.13.0, 7.0.0-M1
    • Component/s: wicket
    • Labels:
      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

        Activity

        Igor Vaynberg created issue -
        Igor Vaynberg made changes -
        Field Original Value New Value
        Fix Version/s 6.13.0 [ 12325564 ]
        Igor Vaynberg made changes -
        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.
        Igor Vaynberg made changes -
        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.
        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, always enabled in 7.0
        Igor Vaynberg made changes -
        Summary Improve AutoLabels to update their CSS dynamically Improve AutoLabels by updating their CSS classes automatically during Ajax requests
        Igor Vaynberg made changes -
        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, always enabled in 7.0
        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
        Igor Vaynberg made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Martin Grigorov made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Igor Vaynberg made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Igor Vaynberg
            Reporter:
            Igor Vaynberg
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development