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

时间:2014-02-19 07:45:08

标签: javascript jsf-2

嗨,我有这行代码:

<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" />

用户在确认对话框中单击“是”后,其未触发操作

1 个答案:

答案 0 :(得分:0)

请确保您的commandButton是否被<h:form>...</h:form>组件包围,并且如果您的表单不包含required的输入或其值未经验证(因为这样会阻止攻击操作) )。