Session Bean being lost?

前端 未结 2 528
忘了有多久
忘了有多久 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:25

    I use GAE (Google App Engine) and need to set javax.faces.STATE_SAVING_METHOD to client. This problem can have workaround. After the action, just call refreshSession() with new value force the session object persist

    protected void refreshSession(){
        saveSession(CeaConst.SESSION_ATTR_NAME_LAST_REFRESH_TIME, new java.util.Date());
    }
    

提交回复
热议问题