[ https://issues.apache.org/jira/browse/TRINIDAD-1319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12649688#action_12649688 ]
arobinson74 edited comment on TRINIDAD-1319 at 11/21/08 7:55 AM: --------------------------------------------------------------------- This is not a bug. Please read about JSTL and how it work in JSF. You are not using it correctly, you cannot use a component variable in a JSP tag, you are combining apples and oranges. This should help: http://andrewfacelets.blogspot.com/2008/06/understanding-datatable.html Basically the var in a table is only setup while the table is rendering, validating, etc, but forEach works during JSP tag execution (when the table component is being built, not processed). So "app" does not exist at JSP tag execution. Rule 1: avoid using JSTL with JSF Rule 2: really, always avoid using JSTL with JSF Rule 3: if you have to use JSTL with JSF, make sure you know exactly how JSF components work and how the JSTL tags are written. I would recommend reading all the Java sources for JSF and JSTL was (Author: arobinson74): This is not a bug. Please read about JSTL and how it work in JSF. You are not using it correctly, you cannot use a component variable in a JSP tag, you are combining apples and oranges. This should help: http://andrewfacelets.blogspot.com/2008/06/understanding-datatable.html > c:forEach does not work within tr:table > --------------------------------------- > > Key: TRINIDAD-1319 > URL: https://issues.apache.org/jira/browse/TRINIDAD-1319 > Project: MyFaces Trinidad > Issue Type: Bug > Components: Facelets > Affects Versions: 1.0.10-core > Environment: Facelets 1.1.14, Trinidad 1.0.10, Orchestra 1.3 > Reporter: Tomas Havelka > > I found, that c:forEach tag from JSTL dos not work within some Trinidad > components. In code above, no items are listed using c:forEach tag in > tr:table component: > <tr:table rowBandingInterval="1" value="#{oxViewController.model}" > var="app" width="100%"> > <tr:column headerText="Code" sortable="true" sortProperty="code" > width="35%"> > <tr:outputText value="#{app.code}"/> > </tr:column> > <tr:column headerText="Name" sortable="true" sortProperty="name"> > <tr:outputText value="#{app.name}"/> > </tr:column> > <f:facet name="detailStamp"> > <tr:panelList> > <c:forEach items="#{app.properties}" var="property"> > <tr:outputText value="#{property.name}" > shortDesc="#{property.description}"/> > <tr:outputText value=" [required]" inlineStyle="color:red" > rendered="#{property.required}"/> > </c:forEach> > </tr:panelList> > </f:facet> > </tr:table> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.