2 Replies Latest reply on Feb 9, 2012 2:35 PM by nt2005

    a4j:support and rich:datatable <- parameters?

    nt2005 Newbie

      Hey Guys,

       

      When a user clicks on a cell, I want to submit something to my bean with parameter. The a4j:support doesn´t send parameters. So I want to use a4j:actionparameter but that does not work. Why?

      <a4j:form>
           <rich:dataTable var="item" value="#{myBean.items}">
                <rich:column>
                     <h:outputText value="#{item.name}" />
                     <a4j:support event="onclick" action="#{myBean.action()}" />
                     <a4j:actionparam name="id" value="#{item.id}" assignTo="#{myBean.id"/>
                </rich:column>
      </a4j:form>
      

       

      It don´t make any different if I do it so:

      <a4j:form>

           <rich:dataTable var="item" value="#{myBean.items}">

                <rich:column>

                     <h:outputText value="#{item.name}" />

                     <a4j:support event="onclick" action="#{myBean.action()}" >

                          <a4j:actionparam name="id" value="#{item.id}" assignTo="#{myBean.id"/>

                     </a4j:support>

                </rich:column>

      </a4j:form>