• Post Reply Bookmark Topic Watch Topic
  • New Topic

Use of deferred expressed in iteration doesn't work  RSS feed

 
Ronan Dowd
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm using WAS v7, JSP2.1 and JSF 1.2.
I'm trying to iterate using a JSTL forEach over my JSF Bean. I know this wasn't
possible pre JSP2.1 due to it and JSF not then having a unified EL. But as I understand
it JSP2.1 and JSF1.2 now each have the UL ?

<c:forEach var="myValue" items="#{myBean.customers}">
<tr><td>hello</td></tr>
</c:forEach>

In this case the text hello only gets printed once (even though there are more than 1 customers)
Do deferred expressions (i.e. usage of '{#' e.t.c) need to be switched on ? or is there anything
else that needs to be done to allow the above behaviour ?

Thanks, Ro
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why is is necessary to put logic on something that's supposed to be declarative?

In other words, why aren't you using a dataTable?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!