4 Replies Latest reply on Jul 12, 2011 4:57 PM by Felix Roberto Read Rivero

    Urgent Help With Composite

    Felix Roberto Read Rivero Newbie

      i am working to to split a datatable en 3 diferent composites,

      but i does not work, any help?

       

      here is what i am triying to do

       

      ************************************************************************************************************************

      grid.xhtml

       

      <composite:interface>

         <composite:attribute name="id" type="java.lang.String"></composite:attribute>

         <composite:attribute name="listData" type="java.util.List" ></composite:attribute>

         <composite:attribute name="conf" type="IGridConf"></composite:attribute>

      </composite:interface>

       

      <composite:implementation>

         <rich:dataTable value="#{cc.attrs.listData}" var="data" rows="20">

            <sc:row data="#{data}" conf="#{cc.attrs.conf}" ></sc:row>

         </rich:dataTable>

      </composite:implementation>


      ************************************************************************************************************************

      row.xhtml

       

      <composite:interface>

         <composite:attribute name="data" required="true"></composite:attribute>

         <composite:attribute name="conf" type="IGridConf" required="true"></composite:attribute>

      </composite:interface>

       

      <composite:implementation>

         <c:forEach items="#{cc.attrs.conf.colConf}" var="colConf">

            <sc:column data="#{cc.attrs.data}" columnConf="#{colConf}"></sc:column>

         </c:forEach> 

      </composite:implementation>


      ************************************************************************************************************************

      column.xhtml

       

      <composite:interface>

         <composite:attribute name="data" required="true"></composite:attribute>

         <composite:attribute name="columnConf" type="IGridConfColumn" required="true"></composite:attribute>

      </composite:interface>

       

      <composite:implementation>

         <rich:column id="#{cc.attrs.columnConf.id}" styleClass="#{cc.attrs.columnConf.style}">

            <f:facet name="header">

               #{cc.attrs.columnConf.title}

            </f:facet>

            <h:inputText value="#{cc.data.value}" />

         </rich:column>

      </composite:implementation>

      </html>

       

      ************************************************************************************************************************

       

       

      Can some one explain me what i am doing wrong why wont it work for me?

      The reason for doing is that i need each row to know the conf and data it is using and keeps knowing of it for

      some actions and operations it has to excute