1 2 Previous Next 17 Replies Latest reply on Sep 28, 2007 6:10 PM by cupdike Go to original post
      • 15. Re: How can I pass parameters to action methods
        christian.bauer

         

        The default conversation scope spans only two pages


        This is incorrect, if it is not further narrowed down after "...pages".

        • 16. Re: How can I pass parameters to action methods
          cupdike

          Ok, so I'm not insane (at least not due to this ;-) )

          But I'm doing it just like it's done (famous last words) in the booking demo. That is:

          @Stateful
          @Name("passSearch")
          public class PassSearchAction implements PassSearchFacade {
           ...
           @DataModel
           private List<Pass> passList;
          
          ------------------------------------------------
          
           <rich:dataTable id="passList"
           var="pass"
           value="#{passList}"
           rendered="#{not empty(passList)}">
           ...
           <h:column>
           <f:facet name="header">Action</f:facet>
           <s:link view="/passEdit.xhtml"
           value="Select"
           id="pass"
           action="#{passEdit.selectPass(pass)}">
           </s:link>
           </h:column>
           </rich:dataTable>

          And the magic ain't happening. Maybe this is no longer a recommended way to do it, but I'd like to know why it's not working for me.

          • 17. Re: How can I pass parameters to action methods
            cupdike

            FWIW, I should have mentioned that passEdit.selectPass(pass) was getting called but that the pass parameter was null. In any event, I switched over to using a page parameter for the pass id. It seems like this is probably better anyway (bookmarkable).

            1 2 Previous Next