You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Johan Compagner (JIRA)" <ji...@apache.org> on 2009/12/02 10:22:20 UTC

[jira] Commented: (WICKET-2596) Wicket should make form components disabled if html markup have "disabled='disabled'"

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

Johan Compagner commented on WICKET-2596:
-----------------------------------------

If you set those kind of attributes on the input tags
and then you submit then that kind of data isnt send to the server at all.
I think that even no form data is send over.. So maybe you can test for that on the server side if there is nothing for it.

else you just have to set some other hidden input field that contains the names of the input fields you disabled. So that on the server side you know it.


> 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.