Tuesday 18 August 2009

JSF - panelGrid syntax

If you have a list of items and you want to display them in a grid structure (e.g. a table), here's an example of usage for the h:panelGrid for a 4-column layout:


Rockhopper said...

You will get yourself into trouble using JSTL and JSF. Different lifecycles.

Also, since you are not binding that is a managed bean and not a backing bean.

Alex Bleasdale said...

Thanks for the clarification on that, Rockhopper!

Unknown said...

I need to create a grid of homogeneous items, where the number of items is unknown. I want to use 3 columns, but the columns are undifferentiated (i.e. same type of items in each column). What's the best approach?