2 Replies Latest reply on Feb 2, 2009 11:24 AM by bshashidhar

    Dynamic rows generation

    ramanujareddy

      hi all,
      is there any code for dynamic row generation..any one can give the code please help me..

        • 1. Re: Dynamic rows generation
          jkronegg

          Please be precise. No one can help you if you give so few information...

          • 2. Re: Dynamic rows generation
            bshashidhar

            Click HELP for text formatting instructions. Then edit this text and check the preview.



            <c:forEach items="#{wuapresident.totallist}" var="wuapresidents">
            <h:inputText value="#{wuapresidents.tcmemberid}" id="dccode#{wuapresidents.index}"/>    
            <h:inputText value="#{wuapresidents.tcmemberid}" id="pname#{wuapresidents.index}"/>    
             <h:inputText value="#{wuapresidents.vtype}" readonly="true" id="vtype#{wuapresidents.index}" style="background-color:white;width:100px;"/>
             </c:forEach>



            hi friend
            observe code,
            In that code, totallist is a arraylist object of type one java class.
            Java Class having 3-variables they are tcmemberid,vtype,index.
            In action, i added values to totallist.
            bye