Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3881

CLIENT_WINDOW_MODE generates new windowid even if one exists

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.2.2
    • None
    • None
    • None
    • java 7, tomcat 7.0.50

    Description

      If you use @ViewScoped beans and activate CLIENT_WINDOW_MODE (url or client) a page refresh generates a new windowid although the application in the current browser window already has a windowid.
      I think a new windowid should only be generated, if no windowid exists, e.g. open new window or tab with the same url.

      <context-param>
      <param-name>javax.faces.CLIENT_WINDOW_MODE</param-name>
      <param-value>url</param-value>
      <!-client doesn't work too->
      </context-param>

      A testcase is attached.
      call url: http://localhost:8080/jsftest22/mypage.jsf
      Fill some values into field
      Press F5 to refresh the page
      => new windowid is generated => inputdata is lost, because a new @ViewScoped bean was created

      Attachments

        1. jsftest22_new.zip
          12 kB
          Rene O
        2. jsftest22.zip
          11 kB
          Rene O

        Activity

          People

            Unassigned Unassigned
            reneo Rene O
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: