ViewExpiredException when i use @ViewScoped

后端 未结 2 1088
醉酒成梦
醉酒成梦 2021-01-06 19:12

I have problem with my h:commandButton \"Login\": when I use @ViewScoped and push this button there is ViewExpiredException, but when I use @SessionScoped, there isn\'t any

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-06 19:54

    http://arjan-tijms.omnifaces.org/p/jsf-22.html#1127

    MyFaces implementation of JSF2.1 had org.apache.myfaces.SERIALIZE_STATE_IN_SESSION default to true, wheres Mojarra had com.sun.faces.serializeServerState default to false.


    From JSF2.2 onwards this will be standardised via javax.faces.SERIALIZE_SERVER_STATE which defaults to false.

    
        javax.faces.SERIALIZE_SERVER_STATE
        true
    
    

提交回复
热议问题