You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2011/09/18 02:17:08 UTC

[jira] [Resolved] (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:all-tabpanel ]

Igor Vaynberg resolved WICKET-2596.
-----------------------------------

    Resolution: Invalid
      Assignee: Igor Vaynberg

if you change the disabled attribute via javascript there is no way for wicket to know that

> 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
>            Assignee: Igor Vaynberg
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira