2 Replies Latest reply on May 12, 2009 6:39 AM by Ilya Shaikovsky

    a4j actionparam not working properly

    Thiagu Mariappan Novice

      hi every one

      i am using richfaces 3.3.0.GA.
      a4j actionparam was not working properly within ui:repeat and rich:dataTable

      this is my sample code for view.

      <ui:repeat value="#{list}" var="a">
      <h:commandLink action="#{user.action}" value="#{a}" >
      <a4j:actionparam value="new" assignTo="#{user.param}"/>
      </h:commandLink>
      </ui:repeat>

      this is my user component methods .

      @Name("user")
      public class User implements Serializable
      {
      String param;

      public String getParam() {
      return param;
      }

      public void setParam(String param) {
      this.param = param;
      }

      @Factory("list")
      public List listFactory()
      {
      List a=new ArrayList();
      a.add("1");
      a.add("2");
      return a;
      }

      public void action()
      {
      System.out.println(">>"+param);
      }
      }

      i am getting null value when i click the command link.

      by
      Thiagu.m