Spring 重新加载页面时未调用commandButton actionListener

Spring 重新加载页面时未调用commandButton actionListener,spring,jsf,primefaces,jboss,Spring,Jsf,Primefaces,Jboss,我正在使用primefaces(3.2)创建一个JSF应用程序。基本上我有这个选项卡。有一个选项卡视图,每个选项卡都包含一个命令按钮。我第一次能够调用actionListener并重定向到主屏幕。现在,当我回到这个页面时,没有一个ActionListener调用这些方法 我已经附上了简化的xhtml代码 <h:form id="syncpasswdform"> <p:tabView id="tabviewid" onTabChange="tabChangeEvent()

我正在使用primefaces(3.2)创建一个JSF应用程序。基本上我有这个选项卡。有一个选项卡视图,每个选项卡都包含一个命令按钮。我第一次能够调用actionListener并重定向到主屏幕。现在,当我回到这个页面时,没有一个ActionListener调用这些方法

我已经附上了简化的xhtml代码

<h:form id="syncpasswdform">
    <p:tabView id="tabviewid" onTabChange="tabChangeEvent();">
        <p:tab title="#{msg.sync_pwd_nw_per}" >
            <p:commandButton  id="syncbutton" 
                              actionListener="#{SyncPasswordBean.syncPassword}"  
                              value="#{msg.sync_pwd_nw_res_pwds}">
        </p:tab>
        <p:tab title="#{msg.sync_pwd_nw_nonpers}">
            <p:commandButton  id="non_pers_syncbutton" 
                              actionListener="#{NonPersonalSyncPasswordBean.syncPassword}"  
                              value="#{msg.sync_pwd_nw_nonpers_res_pwds}">
        </p:tab>
    </p:tabView>
</h:form>

您的支持bean中可能有错误。尝试在p:commandButton中设置选项
ajax=“false”
,以实际查看错误。 希望能有帮助