Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-4939

pages.xml does not support "virtual" view-id without file on disk

    Details

    • Steps to Reproduce:
      Hide

      Just create a new Seam 2.3.0.Beta1 application on JBOSS 7.1 as follow the description above.

      Show
      Just create a new Seam 2.3.0.Beta1 application on JBOSS 7.1 as follow the description above.
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Create an unnecessary file on disk having the same name of the "virtual" view. For the example above, it is necessary to create a "home.xhtml" file on disk.

      Show
      Create an unnecessary file on disk having the same name of the "virtual" view. For the example above, it is necessary to create a "home.xhtml" file on disk.

      Description

      In Seam 2.2.x, it is possible to define a "virtual" view in pages.xml without any related file on disk.

      For example, in Seam 2.2.x it is possible to define a redirect as following without having any "home.xhtml" file on disk:

      <page view-id="/home.xhtml">
      <navigation>
      <redirect view-id="/welcome.xhtml"/>
      </navigation>
      </page>

      In Seam 2.2.x, when entering "/myapp/home.seam" the browser is correctly redirected to "/myapp/welcome.seam". In Seam 2.3.0.Beta1 in JBOSS 7.1 AS, a FacesFileNotFoundException is thrown. This issue is similar to JBSEAM-4926.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  ciaccia Andrea Martino
                • Votes:
                  2 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated: