jsf 2 - how to find out validation error in jsf2 -


i have 1 .xhtml file in have 2 forms 1 updating another, when submit 2nd form having id allofficeslink_form form not submitting didn't error, dont know error?

 <!-- p:message outside form --> <p:messages id="globalid_messages" autoupdate="true" />  <!-- p:message outside form -->  <h:form > //this not actual code //some input fields //ajax command button 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> 

too see validation messages can either include h:message tag each input component, or add h:messages, show validation messages components in form. if using ajax make submit, make sure update submitting form messages displayed.

in case, however, 2nd form doesn't have input there's no way it's validation error (unless omitted part of code). how know it's validation error?


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -