Action of JSF h:commandButton not invoked after setting disabled=true in JavaScript

后端 未结 2 1681
南旧
南旧 2021-01-25 14:20

Who can explain the following behaviour? When disabling a command button in JavaScript, the action method is never executed.


    

        
2条回答
  •  醉梦人生
    2021-01-25 15:00

    Try to disable the button from the BackBean using the property "disabled" of the component

    disabled="#{!(bean.disable)}"
    

    This option will work when the component is rendered, after the information sent

提交回复
热议问题