<rich:menuGroup <c:forEach
rcroonenberghs Mar 15, 2010 6:23 AMHi,
I want to create dynamically a menu. I'm using c:\foreach to to that, but i came to a problem.
Here's my code
<rich:dropDownMenu value="#{msg.menu_head1}">
<rich:menuGroup value="#{msg.menu_item5}">
<c:forEach var="release" items="${releases.availableReleases}">
<rich:menuGroup value="#{release.name}">
<rich:menuItem submitMode="none"
onclick="#{path.dynamicUrl}dynamic/WS.jsf?release=${release.directoryName}">
<a href="${path.dynamicUrl}dynamic/WS.jsf?release=${release.directoryName}">
${msg.menu_sub_item1}
</a>
</rich:menuItem>
<rich:menuItem submitMode="none"
onclick="#{path.dynamicUrl}dynamic/API.jsf?release=${release.directoryName}">
<a href="${path.dynamicUrl}dynamic/API.jsf?release=${release.directoryName}">
${msg.menu_sub_item2}
</a>
</rich:menuItem>
</rich:menuGroup>
</c:forEach>
</rich:menuGroup>
</rich:dropDownMenu>
The problem is, I cannot get the menuGroup inside the c:foreach to have a label. It is always empty. When I'm trying <rich:menuGroup value="${release.name}"> I get an error stating that the TLD does not accept any expressions.
When I put something (facet, plain text of outputtext) just below the menugroup, it does nothing
Can somebody help me?
Tnx
Roel