Wicket should make form components disabled if html markup have 
"disabled='disabled'"
-------------------------------------------------------------------------------------

                 Key: WICKET-2596
                 URL: https://issues.apache.org/jira/browse/WICKET-2596
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 1.4.3
         Environment: All
            Reporter: Wang Yizhuo


I am facing the following scenario, I have a wicket form component, be it 
TextField or CheckBox, I want to use javascript (Not Ajax) to change the 
enable/disable state in the mark up, and hope when I submit the form, wicket 
will set the form components to corresponding state according to the markup.

I am aware of AjaxFormComponentUpdatingBehavior and I was using it. But our 
application will be public facing and the network latency for a round trip is 
too long (it is like 4-5 seconds). So I decided to write some javascript 
appender to change the state of the components without talking to the server. 
During my experiment I realize I cannot get the 'disabled' attribute of element 
after the form is submitted, thus I cannot determine whether the form 
component's state. 

Actually all I need to know is to be able to retrieve the 'disabled' markup 
after the form is submitted in Wicket. Then I can override 
process(IFormSubmittingComponent) method in Form the set form components state 
accordingly.

Please advice, thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to