3 Replies Latest reply on Jun 20, 2007 10:11 PM by deved

    Method binding with variable as a parameter allways is null

    deved

      Hi all. Here is the code:

      <rich:tree switchType="ajax" value="#{menu.tree}"
       var="item" nodeFace="#{item.type}">
       <rich:treeNode type="url">
       <s:link value="#{item.text}" action="#{menu.redirect(item)}"/>
       </rich:treeNode>
      </rich:tree>
      

      The argument item is always null in the backing bean.

      I need help? thanks

        • 1. Re: Method binding with variable as a parameter allways is n
          dustismo

          you can't use the method params within a 'repeat' or datatable. I was really hoping the jboss-el would fix this problem, but alas... Have you looked at using the seam @DataModel?
          -Dustin

          • 2. Re: Method binding with variable as a parameter allways is n
            gavin.king

             

            ou can't use the method params within a 'repeat' or datatable. I was really hoping the jboss-el would fix this problem, but alas...


            What do you mean? The booking example does this.

            • 3. Re: Method binding with variable as a parameter allways is n
              deved

              Hello Gavin. The argument is always null. I'm using Jboss-4.2.0.GA, Jboss Seam-1.3.0.ALPHA, richfaces-3.0.1 and ajax4JSF-1.1.1. I think that the problem is in the rich:tree component.
              It is posible?

              Another problem that i have is that the s:link do not redirect to the view (action="#{menu.redirect(item)}").
              At the moment I am using the button to redirect, but the argument is even null.

              <rich:tree switchType="ajax" value="#{menu.tree}"
               var="item" nodeFace="#{item.type}">
               <rich:treeNode type="url">
               <s:button value="#{item.text}" action="#{menu.redirect(item)}"/>
               </rich:treeNode>
              </rich:tree>
              


              I need help?
              thanks!!