0 Replies Latest reply on May 23, 2007 11:49 AM by David Rogers

    pages.xml - just not working

    David Rogers Newbie

      I have the following pages.xml file in the WEB-INF directory of my .war

      <?xml version="1.0" encoding="utf-8"?>
      <!DOCTYPE pages PUBLIC
       "-//JBoss/Seam Pages Configuration DTD 1.2//EN"
      <pages no-conversation-view-id="/secure/home.xhtml"
       <page view-id="/secure/variation.xhtml">
       <redirect view-id="/secure/transition.xhtml" />
       <exception class="twp.exception.InvalidURLParameterException">
       <redirect view-id="/error.xhtml">
       <message severity="error">
       An invalid parameter was specified in the requested URL.

      The navigation rule should redirect to transition.xhtml if variation.xhtml is called and the exception declaration should redirect to an error page if an exception is thrown.

      I receive no errors in conjunction with this set up but neither seem to work. Do I need to do anything special to get seam to recognise pages.xml? Just as an example, it finds and uses faces-config.xml in the same directory, telling me on startup that it has been found, but pages.xml is never mentioned.