javax.faces.application.ViewExpiredException: View could not be restored

前端 未结 10 2500
自闭症患者
自闭症患者 2020-11-21 05:54

I have written simple application with container-managed security. The problem is when I log in and open another page on which I logout, then I come back to first page and I

10条回答
  •  遇见更好的自我
    2020-11-21 06:38

    First what you have to do, before changing web.xml is to make sure your ManagedBean implements Serializable:

    @ManagedBean
    @ViewScoped
    public class Login implements Serializable {
    }
    

    Especially if you use MyFaces

提交回复
热议问题