Hello,
I am trying to use a h:panelgrid with a ui:repeat.
I would like for my h:panelgrid to show lines of three of the h:panelgroups that are inside the ui:repeat and end with the "hard coded" h:panelgroup. However, the h:panelgrid treats the ui:repeat as only one component. End result I have two components in my h:panelgrid!!
Can anyone please help?
Thanks,
Julien.
You're right the panelGrid treats the ui:repeat like a one component, and do it for every component, the panelGrid is rendered as a table, maybe you can construct your table without the panel grid, I give you an example
I hope this can give you a clue how to solve your problem.
Regards
Cesar
When a dream is ending because to come true - OCPJP 6,7. OCE JPA EE6. MCTS
Thanks a lot Cesar,
However you'll notice that I won't get exactly what I want to achieve: with the proposed solution, I get one item per row whereas I would like 3 items per row...
I just hoped there was some way of circumventing the problem you described still using a h:datagrid...
Thanks anyway for taking the time to answer
Julien.
I was thinking how to improve the code that I post, I find a perfect solution for this, this code enclose perfectly the <td> between the <tr>. Use this:
I think with this, it's properly corrected your problem.
Regards
Cesar
When a dream is ending because to come true - OCPJP 6,7. OCE JPA EE6. MCTS
Yes, the first part is perfect. However you see there is a problem with the last "hardcoded" h:panelgroup ("and there").
I would like it to follow directly the last "dynamic" element. Do you see my point?
Regards,
Julien.