JSF PRG with validation error

后端 未结 1 1556
执笔经年
执笔经年 2021-01-19 04:11

I\'m using JSF with the PRG pattern. (use in my navigation rules).

The problem is that the redirect is not done (i.e. a post followed by a get of the same page) whe

相关标签:
1条回答
  • 2021-01-19 04:57

    Just submit the form by ajax. It's a matter of adding

    <f:ajax execute="@form" render="@form" />
    

    to the command links and buttons. If you're using <h:message(s)>, then I assume that they are in the very same form, otherwise you need to add their client IDs to the render.

    Validation errors while submitting the form by ajax won't generate history.

    0 讨论(0)
提交回复
热议问题