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

TCK: Spec 790: Viewstate input element's name attribute should be prefixed with naming container id

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0-RC2
    • 4.0.0-RC5
    • None
    • None

    Description

      Failing Line: https://github.com/jakartaee/faces/blob/master/tck/faces23/namespacedView/src/test/java/ee/jakarta/tck/faces/test/javaee8/namespacedView/Spec790WithNamespacedViewIT.java#L15 5

      Generated Viewstate:

      <input type="hidden" name="jakarta.faces.ViewState" id="j_id__v_0:jakarta.faces.ViewState:1" value="NzVhMDlkOGYwNjY1ZWZkODAwMDAwMDAy" autocomplete="off">
      

      The test expects the name attribute to be prefixed with `j_id__v_0`. My understanding is this should only apply when the view root is an instance of a NamingContainer.

      The test app's faces-config has the following configuration:
      https://github.com/jakartaee/faces/blob/master/tck/faces23/namespacedView/src/main/webapp/WEB-INF/faces-config.xml#L25-L28

      Attachments

        1. image-2023-01-31-13-54-59-301.png
          24 kB
          Werner Punz
        2. image-2023-01-31-13-53-24-862.png
          24 kB
          Werner Punz
        3. image-2023-01-31-13-52-23-736.png
          24 kB
          Werner Punz
        4. image-2023-01-31-13-49-04-491.png
          25 kB
          Werner Punz
        5. image-2023-01-31-13-48-30-884.png
          59 kB
          Werner Punz
        6. image-2023-01-31-10-55-59-105.png
          88 kB
          Werner Punz
        7. image-2023-01-19-08-48-12-961.png
          227 kB
          Werner Punz
        8. image-2023-01-19-08-44-48-874.png
          54 kB
          Werner Punz
        9. namespacedView.war
          7 kB
          Volodymyr Siedlecki

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: