Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Mixing c:forEach and h:outputText

843844Feb 2 2008 — edited Feb 3 2008
I'm sure this has been discussed many times, but I'm finding it hard to find a clear and up to date summary of this issue.

In Tomcat 6, using Sun JSF 1.2 RI, the following JSP code:
<c:forEach begin="0" end="10" varStatus="loopStatus">
  <c:out value="LoopStatus: ${loopStatus.index}"/>
  <h:outputText value="#{loopStatus.index}"/>
</c:forEach>
Prints the index in the "c:out", but not in the "h:outputText".

In JEE 5, I should have the "unified EL", but I'm not sure if that's the key to this.

Is there any way I can get the c:out loop index value into a JSF component?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 2 2008
Added on Feb 2 2008
10 comments
465 views