p:selectOneMenu does not set value in bean

后端 未结 4 1756
孤城傲影
孤城傲影 2021-02-07 10:43

Quick question. This hasn\'t happened to me before when working with SelectOneMenu. This is my code.



        
4条回答
  •  天命终不由人
    2021-02-07 11:11

    I discovered when I had this problem it was because of the @ViewScoped. Using SessionScoped instead worked fine.

    One interesting thing is that in another project, with ViewScoped, it worked. I cannot explain.

提交回复
热议问题