Session Bean being lost?

前端 未结 2 531
忘了有多久
忘了有多久 2021-01-07 05:42

The first \"nonpostback\" request to viewBean, someValue property in sessionBean is null. Now, in a postback request, I am setting a user input to someValue. The problem is

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-07 06:01

    This is a known issue:

    SessionScoped bean inside a ViewScoped bean is resolved as different bean depending on the expression used

    I just changed the state saving method in my web.xml:

    
        javax.faces.STATE_SAVING_METHOD
        server
    
    

提交回复
热议问题