0 Replies Latest reply: Dec 8, 2011 12:39 AM by kamal_khadka RSS

    How to rewite url in Seam

    kamal_khadka Newbie

      I have a following in pages.xml




      <page view-id="*">
                      <navigation>
                              <rule if-outcome="home">
                                      <redirect view-id="/global/home.xhtml" />
                              </rule>
                              <rule if-outcome="goInfo">
                                      <redirect view-id="/global/info.xhtml" />
                              </rule>
                      </navigation>
      
      </page>





      Right now all my url are followed by .seam. How would I go about not showing .seam. I looked around and saw that this is possible for individual view. By doing the following




      <page view-id="home.xhtml">
      <rewrite pattern="/home">
      </page>





      Isn't there a way to do this for multiple pages or any other way would be helpful.


      Thank you very much.