Primefaces commandButton action attribute not being called

后端 未结 1 555
独厮守ぢ
独厮守ぢ 2021-01-20 23:28

I am creating a JSF application with primefaces. Basically I have this view. There is a tab view which for each tab contains a command button and a accordion panel (another kind

相关标签:
1条回答
  • This construct requires that the EL expression in the value attribute of the <p:tabView> and <p:accordionPanel> returns exactly the same value during processing the form submit as it was during the initial display.

    If the bean is request scoped and/or the value depends behind the scenes on a request based parameter or variable and it thus returns a different value on every request, then it will fail because JSF cannot locate the button which was been invoked. To fix it, the bean needs to be placed in the view scope and the getter method should not contain any business logic, or any request based parameters or variables should be retained in the subsequent requests.

    See also:

    • commandButton/commandLink/ajax action/listener method not invoked or input value not updated - point 4.
    0 讨论(0)
提交回复
热议问题