我有一個.xhtml文件中,我有2 form
■一個更新另一個,當我提交ID爲allOfficesLink_form
形式不提交我沒有得到任何錯誤第2形式,我不知道錯誤在哪裏?如何找出驗證錯誤在JSF2
<!-- p:message outside form -->
<p:messages id="globalId_messages" autoUpdate="true" />
<!-- p:message outside form -->
<h:form >
//this is not actual code
//some input fields
//ajax command button which is updating id="allOfficesLink_form"
<p:commandButton
update=":#{p:component('companyId_select')} :#{p:component('allOffices_link')} :#{p:component('allOfficesLink_form')}">
</p:commandButton>
</h:form>
<h:form id="allOfficesLink_form">
<h:commandLink id="allOffices_link"
styleClass="link_general"
disabled="#{budgetScenarioFormationBudgetAllocationAction.budgetFinancialYearBean.modBean != 'OF'}"
value="[all offices]"
>
<f:ajax listener="#{budgetScenarioFormationBudgetAllocationAction.getSubHeadOfAccountsOfAllOffices()}" />
</h:commandLink>
</h:form>
我已經更新了我的問題,我已經張貼我的答案 –