[ https://issues.apache.org/jira/browse/WICKET-7101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17831970#comment-17831970 ]
ASF GitHub Bot commented on WICKET-7101: ---------------------------------------- reiern70 commented on code in PR #824: URL: https://github.com/apache/wicket/pull/824#discussion_r1543633486 ########## wicket-core/src/main/resources/META-INF/wicket.xsd: ########## @@ -102,6 +103,15 @@ </simpleType> </attribute> + <attribute name="auto" type="boolean"> + <annotation> + <documentation>Can be used in HTML <![CDATA[<label]]> to indicate the label will be automatically updated Review Comment: ![Screenshot from 2024-03-28 15-48-36](https://github.com/apache/wicket/assets/462655/4a241206-3341-4b76-8fae-655a1efc913f) > auto-label is not automatically updated when related form component is > updated. > ------------------------------------------------------------------------------- > > Key: WICKET-7101 > URL: https://issues.apache.org/jira/browse/WICKET-7101 > Project: Wicket > Issue Type: Improvement > Reporter: Ernesto Reinaldo Barreiro > Assignee: Ernesto Reinaldo Barreiro > Priority: Major > Fix For: 10.1.0, 9.18.0 > > > Auto-labels are somewhat disconnected from FormComponent they are bound to in > the sense that: > > * You can modify the form component (e.g. if it is required) and update that > component via AJAX and > * Autolabel will stay with a stale state: i.e. still with the required CSS > class > This should be fixed with > > [https://github.com/apache/wicket/pull/812] > > This PR introduces: > * a new tag *wicket:auto='true|false'* that allows to set some auto label as > updatable always that form component is updated (via AJAX or web socket > request). > * a new boolean flag on markup-settings that allows to set this new behavior > as application default. By default, the flag is set to false thus that > applications keep existing behavior. -- This message was sent by Atlassian Jira (v8.20.10#820010)