5 Replies Latest reply on Apr 2, 2009 4:47 AM by amiliosanchez

    ui:repeat within rich:columnGroup ?

    amiliosanchez

      I'm trying to do something like the following


      <rich:columnGroup>
                                   <ui:repeat value="#{handler.getTableBuilder().getTableColumns()}" var="column">
                                      <rich:column rowspan="#{column.rowspan}" colspan="#{column.colspan}" breakBefore="#{column.breakBefore}">
                                          <h:outputText value="#{column.value}" />
                                      </rich:column>
                                   </ui:repeat>
      </rich:columnGroup>
      



      In this case however the getTableBuilder method is never called.
      How can I go about adding a repeat in within a columngroup so as to be able to build dynamic columns?


      Thanks

        • 1. Re: ui:repeat within rich:columnGroup ?
          amiliosanchez

          Sorry left out the facet header


           <f:facet name="header">
                                    <rich:columnGroup>
                                       <ui:repeat value="#{ticketLimitHandler.tableBuilder.tableColumns}" var="column">
                                          <rich:column rowspan="#{column.rowspan}" colspan="#{column.colspan}" breakBefore="#{column.breakBefore}">
                                              <h:outputText value="#{column.value}" />
                                          </rich:column>
                                       </ui:repeat>
                                    </rich:columnGroup>
          </f:facet>
          

          • 2. Re: ui:repeat within rich:columnGroup ?
            amiliosanchez

            The last comment of this issue is exactly what I'm trying to do, is this possible?


            https://jira.jboss.org/jira/browse/RF-1197


            • 3. Re: ui:repeat within rich:columnGroup ?
              swd847

              Try this:


              <rich:columnGroup>
                                           <rich:columns value="#{handler.getTableBuilder().getTableColumns()}" var="column" rowspan="#{column.rowspan}" colspan="#{column.colspan}" breakBefore="#{column.breakBefore}">
                                              
                                                  <h:outputText value="#{column.value}" />
                                             
                                           </rich:columns>
              </rich:columnGroup>
              
              
              



              You may have to play around with it a bit. I am not sure if the rowspan and colspan bits will work but it is worth a try.

              • 4. Re: ui:repeat within rich:columnGroup ?
                amiliosanchez

                Thanks for the response. I'll give it a try.

                • 5. Re: ui:repeat within rich:columnGroup ?
                  amiliosanchez

                  Thanks that worked however the rowspan, colspan won't work as you suspected. I'll need to see if I can somehow break it into two columns or columnGroup sets with one overlaying the other.