<h:panelGrid id="your-css-id" columns="4">
<c:forEach items="${backingBean.yourListObject}" var="listItem">
<a href="/go/to/${listItem.id}">${listItem.title}</a>
</c:forEach>
</h:panelGrid>
Tuesday, August 18, 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:
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2009
(37)
-
►
June
(10)
- Daisy CMS - connecting a JMS listener to the repos...
- Daisy CMS - customising the footer of the editor p...
- Daisy CMS - allowing attributes in the SimpleDocum...
- JSF - ensuring your [xhtml] pages load with a text...
- Eclipse Galileo (3.5): Creating and running a JSF ...
- Using Eclipse Galileo to develop JSF applications ...
- SVN Web view - looking at older revisions
- Notes on setting up mod_proxy on apache 2.2 for pr...
- Addressing stability issues when running Eclipse 3...
- Forcing glassfish 2.1 to start-up with JDK1.6 (OSX...
-
►
April
(6)
- XSLT, text-transform:captialize and Excel workbook...
- Structure for Regular Expressions in Javascript
- SQL Server : Granting EXEC on Stored Procedures
- Eclipse : Save Actions for autoformatting code and...
- Eclipse : Display heap status (like IntelliJ IDEA)...
- Eclipse : Display Java Type Indicator for classes
-
►
June
(10)
0 comments:
Post a Comment