PrimeFaces CommandButton that Doesn't Process Data

前端 未结 1 590
忘了有多久
忘了有多久 2020-12-12 04:46

I have a JSF/PrimeFaces form page set up to edit some configuration details. At the bottom are Submit and Cancel buttons implemented as CommandButton. The Can

相关标签:
1条回答
  • 2020-12-12 05:12

    The <p:commandButton> submits the form. You don't want to submit the form. You should then not use the <p:commandButton>, but just <p:button>.

    <p:button value="Cancel" outcome="priorPage.xhtml" />
    

    See also:

    • Difference between h:button and h:commandButton
    0 讨论(0)
提交回复
热议问题