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

Wang Yizhuo commented on WICKET-2596:
-------------------------------------

Thanks Johan. 

I am also experimenting it. It is true that the data will not be sent to the 
server side if the components is disabled. Probably I can use this information 
to set the state of the form components. 

> 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