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

faces.getClientWindow does not retrieve client id

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.0.1
    • General
    • None

    Description

      Code

      web.xml:

      <context-param>
      <param-name>jakarta.faces.CLIENT_WINDOW_MODE</param-name>
      <param-value>url</param-value>
      </context-param>


      facelet' script:

      var clientWindowId = faces.getClientWindow(document.forms[0]);

      When faces.getClientWindow is called, it returns null when it should return the client id instead.

      The older JS looks to retrieve the id from the this element (client is not part of the URL on the first request):

      <input type="hidden" id="j_id__v_0:jakarta.faces.ClientWindow:1" name="jakarta.faces.ClientWindow" value="-tw96zi9et">

      3.0 JS:
      https://github.com/apache/myfaces/blob/3.0.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/Impl.js#L862-L881

      4.0 JS:
      https://github.com/apache/myfaces/blob/15baed38ba3425c9e8b988906ab5958bf491ec86/api/src/client/typescript/faces/impl/AjaxImpl.ts#L470-L515

      Attachments

        Issue Links

          Activity

            People

              werpu Werner Punz
              volosied Volodymyr Siedlecki
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: