7 Replies Latest reply on May 27, 2016 1:02 PM by Michal Petrov

    Always getting ViewExpiredException when we open page in new Window

    vidyasagar penugonda Novice



      Recently we upgraded from Richfaces 3.3.3 to 4.5.11. I have a scenario where I need to show a page in new Window when command link clicks. This functionality works fine in RF 3, but now, I am getting javax.faces.application.ViewExpiredException: viewId:/xxx.xhtml exception when we do any action in new window. After Exception, if I do any action in my actual page is not working. If I do second time, the actions are working as excepted. I am keep getting this exception when I open new window or do any action after exception occurs.

      How do we keep the View when we do navigation in a page (opening/closing in new window?)

      Is there any configuration required to keep View alive.

      Please help me how to resolve this.

      I am opening the page in new window with below code. and the Bean which I am using in new window is in Request scope.

           <a4j:commandLink value="#{msg['tools.lookUp']}" action="#"

                 styleClass="nobreak" status="waitStatus"




            immediate="true" />

      In web.xml (this is mandatory in my case)