1 Reply Latest reply on Feb 10, 2010 2:30 AM by hitcurst

    URL rewrite with @RequestParameter

    hitcurst

      Hello, i'm starting with Jboss Seam 2.2.0 and i'm get one error with URL Rewrite.
      I have this code:


      topicList.xhtml


      <rich:panel>
           <a4j:form>
                <a4j:commandButton value="#{msg['topic.newTopic']}"
                     action="#{commonTopicManager.createNew}">
                     <f:param value="#{commonTopicManager.forum.idForum}" name="idForum" />
                </a4j:commandButton>
           </a4j:form>
      </rich:panel>
      



      topicList.page.xml


      <navigation from-action="#{commonTopicManager.createNew}">
           <redirect view-id="/service/common/topic/topicEdit.xhtml">
                <param name="idForum" value="#{commonTopicManager.forum.idForum}" />
           </redirect>
      </navigation>



      Then, in the new page:


      topicEdit.page.xml



      <rewrite pattern="/TopicEdit/{idForum}"/>
      <param name="idForum" value="#{param.idForum}" />
      



      But this don't work. this not work too:


      <rewrite pattern="/TopicEdit/{idForum}"/>
      <param name="idForum" value="#{commonTopicManager.forum.idForum}" />
      



      Anyone have one solution ?