[ 
https://issues.apache.org/jira/browse/WICKET-5411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13819924#comment-13819924
 ] 

Martin Grigorov commented on WICKET-5411:
-----------------------------------------

I've added Wicket.DOM.toggleClass() method that delegates to 
jQuery.toggleClass, so there is no direct usage of jQuery APIs in the Java code.
Please test it that it still works as expected.

Is there something else to be done for this ticket or it can be closed ?

> Improve AutoLabels by updating their CSS classes automatically during Ajax 
> requests
> -----------------------------------------------------------------------------------
>
>                 Key: WICKET-5411
>                 URL: https://issues.apache.org/jira/browse/WICKET-5411
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>            Reporter: Igor Vaynberg
>            Assignee: Igor Vaynberg
>             Fix For: 6.13.0, 7.0.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



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to