嗨,我有这行代码:
<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" />
用户在确认对话框中单击“是”后,其未触发操作
答案 0 :(得分:0)
请确保您的commandButton是否被<h:form>...</h:form>
组件包围,并且如果您的表单不包含required
的输入或其值未经验证(因为这样会阻止攻击操作) )。