1 Reply Latest reply on Oct 12, 2011 4:38 AM by miguelz

    Migrate Seam 2 pages.xml to CDI-Seam 3-JSF 2.0

    titou09

      We are starting to investigate on how to move our apps from Seam 2 to CDI and JSF 2.0.


      One of the biggest challenge seam to handle what is defined in pages.xml


      So, as for today is there an equivalent in CDI/Seam 3/JSF 2.0 of the features currently defined and held in pages.xml as :



      • HTTP/HTTPS protocol enforcement based on view-id

      • Page security/login enforcement with redirect to the login page when not logged in

      • Page security protection based on view-id/Role

      • handling of exceptions (Including ViewExpiredException)

      • Page action based on view-id (page/action execute=...)

      • Global navigation (page/navigation/rule if-outcome,redirect...)

      • Page based on view-id navigation (page/navigation/rule if-outcome,redirect...)

      • Redirect to a specifiy view if no long running conversation is active

      • start/end/join.. for long running conversation before/after redirect (end-conversation before-redirect)



      Thx




        • 1. Re: Migrate Seam 2 pages.xml to CDI-Seam 3-JSF 2.0
          miguelz
          Now most of the things of the former pages.xml can be done in:

          faces-config.xml
          pretty-config.xml

          The latest documentation of:

          - Seam Solder
          - Seam Faces
          - Pretty Faces

          helped me a lot.

          For page actions I use:

          <f:metadata>
            <s:viewAction.../>
          </f:metadata>

          directly in JSF pages.

          Miguel