简体   繁体   English

在“确认”对话框窗口中单击“是”后,动作未触发

[英]action not firing after you click yes in the confirm dialog window

Hi I have this line of code: 嗨,我有这行代码:

<a4j:commandButton id='forceBtn'
     disabled='false'
     rendered='true'
     value="Force"
     reRender="notesPopupFragment"
     action=='#{setUpController}'
     onclick='return confirm("Are you sure?")'>
     <a:actionparam value="true" assignTo="#{popup.show}" noEscape="true" />

after the user click yes in the confirm dialog its not firing the action 用户在确认对话框中单击“是”后,不会触发操作

请确保您的commandButton是否被<h:form>...</h:form>组件包围,并且您的表单是否不包含required输入或未验证其值(否则将阻止操作)从火)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM