Skip to content

ice:dataTable in c:forEach

November 1, 2011

Back after a while, with another strange issue…

I had an xhtml with this kind of code:

<c:forEach>
   <ui:param name="orderItemsList" value="#{appPortfolioBomBean.orderItemsByVdcMap[vdc.internalId]}" />
   <ui:include>

   ....
   </ui:include>
</c:forEach>

and the component I include contains a datable which renders some value based on orderItemsList parameter.

The problem is that the dataTable is rendering only the LAST item from c:forEach!

I was sure is something about jsf/jstl tags but cannot find out… I’ve tried to use ui:repeat instead of c:forEach but the same issue occurs.

After some investigation I’ve replaced c:forEach (or ui:repeat) with ice:panelSeries and enjoyed it because it works like a charm!

Why this is the proper solution? Because panelSeries is a jsf component, whereas ui:repeat is a facelets tag!

Advertisements

From → Icefaces

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: