0 Replies Latest reply on Dec 12, 2009 3:08 PM by temmink

    empty params with rewrite url

    temmink

      Hi,


      Im trying to rewrite a url in seam.


      pages.xml


      <page view-id="/testrewrite.xhtml">
              <rewrite pattern="/search/{photobook}/"/>
              <param name="photobook"
                     value="#{urlParams.photobook}"/>
      
      </page>



      testRewrite.xhtml:


      <h:form id="rewriteForm">
              <rich:panel>
                  <p>test rewrite: <h:outputText value="#{urlParams.photobook}"/></p>
              </rich:panel>
      </h:form>



      Components.xml


      <web:rewrite-filter view-mapping="*.seam" />



      When I open the url:


      http://localhost:8080/rest-test/search/parameter-value/


      Rewriting seems to work because the testrewrite.xhtml page is shown, but the value of urlParams.photobook is empty(no call to urlParams.setPhotobook(String value) is made)


      I followed documentation and it said that the parameters are copied both ways so I assumed that urlParams.photobook would contain the value 'parameter-value' but it is empty. Am I missing something here?