2 Replies Latest reply on Sep 19, 2013 3:50 AM by liuliu

    how call an action before navigate to another page.

    liuliu

      hi,

       

      In my page1, i have h:link and f:param

      <h:link outcome="page2">
           <f:param name="userid" value="#{user.id}" />
      </h:link>
      

      with this, i can generate an url with parameter, something like page2.jsf?userid=1234

       

      what i want is call a action before change the page.

      i tried

      <a4j:commandlink action="{bean.action}>
           <f:param name="userid" value="#{user.id}" />
      </a4j:commandlink>
      

      the bean.action return "page2?faces-redirect=true", the problem is there is not userid in the url.

       

      is it possible do what i want?

       

      thanks in advance

       

      liu