taglib prefix c

HiCan I use <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>with JSF or JSF has something special to iterate objects from the list?Message was edited by: puchacz
[271 byte] By [puchacza] at [2007-11-26 17:37:48]
# 1

You can use JSTL with JSF by specifying the backing bean's scope in the JSTL EL tag.

<c:out value="${requestScope.BeanName.attributeName" />

Of course this is just an example. You should use JSF EL whenever possible. You could use JSTL's for each loop to iterate through objects or you could use JSF's data table.

The limitation with JSF's data table is that it focuses around the HTML <table> tag so you can only dynamically generate rows and not columns. Oracle's ADF Faces component does have a JSF replacement for JSTL's for each loop. I hear it works pretty well but I haven't tried it yet. I hope this helps.

anthony.c.smith@insightbb.co at 2007-7-9 0:05:58 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...