jsf - PrimeFaces CommandButton that Doesn't Process Data -


i have jsf/primefaces form page set edit configuration details. @ bottom submit , cancel buttons implemented commandbutton. cancel button looks this:

            <p:commandbutton                 action="priorpage.xhtml?faces-redirect=true"                 value="cancel" /> 

the problem view bean still winds doing more processing on data that's been entered form i'd like. isn't updating in database, if (say) enter string field that's looking numeric in bean, still produces errors.

part of solution is, of course, bean gracefully handle sort of bad data, , i'm working on it. i'd tweak button takes user prior page. there attribute can set prevent form being processed @ all?

the <p:commandbutton> submits form. don't want submit form. should not use <p:commandbutton>, <p:button>.

<p:button value="cancel" outcome="priorpage.xhtml" /> 

see also:


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -