1 2 Previous Next 21 Replies Latest reply on Jun 17, 2016 4:30 AM by michpetrov Go to original post
      • 15. No support for <rich:columns> in RF 4.0.0 CR1?
        knecht

        Hi,

        is there any chance to add an Index, just like the "index" Attribute from <rich:columns>, to the c:forEach workaround?

        • 16. No support for <rich:columns> in RF 4.0.0 CR1?
          knecht

          nvm. The solution is the varStatus attribute from <c:forEach> tag. Just do  <c:forEach ... varStatus="status"> and u can call the index with #{status.index}

          • 17. Re: No support for <rich:columns> in RF 4.0.0 CR1?
            pujar.santosh

            Hello Ilya,

             

            I am also using <c:forEach> to generate columns dynamically. Though, it is working properly in my application, the columns are behaving weirdly when I try to expand them. Whenever I expand any column in the table only first column gets expanded automatically instead of actual one.

             

            Could you please give me some clues to fix this issue.

             

            Thank you & BRs,

            Santosh

            • 18. Re: No support for <rich:columns> in RF 4.0.0 CR1?
              ravivarmakola

              Hi,

               

              any update on when will <rich:columns> migrated to richfaces 4.5 or later versions?

               

              we have been using EDT with <c:forEach> to generate dynamic columns but as i understand that c:forEach will create components based on iteration levels, this made my page very slow when the rows and columns grew.

              • 19. Re: No support for <rich:columns> in RF 4.0.0 CR1?
                michpetrov

                Unfortunately, rich:columns won't be implemented. Although, have you tried adding the columns manually? The page might be slow simply due to the amount of data (and as far as I recall rendering tables is resource-consuming for browsers too).

                • 20. Re: No support for <rich:columns> in RF 4.0.0 CR1?
                  ravivarmakola

                  Thanks Michal,

                  Adding the columns manually...? That's not our requirement. We have some check boxes, based on the selection/de-selection of checkbox, the columns to the EDT to be added/removed dynamically. In each cell we have to display a composite component which again will have a lot of rich faces components based on a flag it will render text box/text area/select boxes/link etc. As per my understanding If it has been a rich:columns, then the tree will hold only 1 set of components and ofcourse based on iterations the render response phase will write those components to HTML. But as we are using c:forEach, all the components (rowsXcolumns of cc components) will end up in the component tree hence making my tree grow bigger and unresponsive.

                  Is there a way, i can extend the richfaces EDT and write my own component which does something like this?

                  <my:extendedDataTable value="#{rows}"  var="rowAttribute">

                       <my:columns items="#{columns}"  var="column" varStatus="i">

                            <my:cc .../>

                       </my:columns>

                  </my:extendedDataTable>

                   

                  Any pointers is much appreciated!!

                  • 21. Re: No support for <rich:columns> in RF 4.0.0 CR1?
                    michpetrov

                    The table already iterates over rows, you'd have to duplicate that code to generate columns.

                    1 2 Previous Next