开发者

submit a disabled combo box

开发者 https://www.devze.com 2022-12-19 00:15 出处:网络
Using Struts 1.2 In Jsp page a combo box is set as disabled and I tried 开发者_C百科to submit the page with errors. html:error is shown, but the combo box is not loading the selected value.Disable pro

Using Struts 1.2 In Jsp page a combo box is set as disabled and I tried 开发者_C百科to submit the page with errors. html:error is shown, but the combo box is not loading the selected value.


Disable property cannot be loaded in action form .

Suggestion : The property can be maintained as hidden values


You have to enable the html fields before submiting the form. Either you can use prototype JS enable() method to enable all the fields of the form or you can write your own method.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号