4 Replies Latest reply on Jan 23, 2008 1:02 PM by Pete Muir

    Still confuse on usage of page param, help please!

    Gus Gu Expert

      Hi,

      I reviewed the seamspace example and tried to understand how and when to use page parameter, but I still get confused. After I commented the following page parameter codes, I couldn't find any performance difference(including bookmarkable page). Anybody can tell me the purpose of using page param and when need to use it. Thank you so much in advance!

      <page view-id="/comment.xhtml" login-required="true">
       <restrict/>
       <!--
       <param name="name" value="#{selectedMember.memberName}"/>
       <param name="blogId" value="#{selectedBlog.blogId}"/>
       -->
       <navigation from-action="#{blog.saveComment}">
       <redirect view-id="/blogentry.xhtml"/>
       </navigation>
       </page>
      and jsp link:
      <s:link view="/comment.seam" value="Add Comment" propagation="none">
       <f:param name="name" value="#{selectedMember.memberName}"/>
       <f:param name="blogId" value="#{selectedBlog.blogId}"/>
       </s:link>