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

前端 未结 10 2524
自闭症患者
自闭症患者 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条回答
  •  闹比i
    闹比i (楼主)
    2020-11-21 06:37

    You coud use your own custom AjaxExceptionHandler or primefaces-extensions

    Update your faces-config.xml

    ...
    
      org.primefaces.extensions.component.ajaxerrorhandler.AjaxExceptionHandlerFactory
    
    ...
    

    Add following code in your jsf page

    ...
    
    ...
    

提交回复
热议问题