|
I have been trying to use c:forEach in my jspx pages but I keep
experiencing different kinds of problems. An example: <c:forEach items="${treeMenuContractBean.menuItems}" var="menuItem"> <div style="margin-left: ${menuItem.marginLeft}"> <c:out value="${menuItem.prelude}"/> <h:outputLink title="#{menuItem.name}" value="#{menuItem.uri}"> <c:out value="${menuItem.name}"/> </h:outputLink> <c:out value="${menuItem.postlude}"/> </div> </c:forEach> When this is run, I get <a id="tree-menu-contract:_id1" href=""></a>
<a id="tree-menu-contract:_id2" href=""></a>
<div style="margin-left: 0px">The name of menu item 0</div>
<div style="margin-left: 50px">The name of menu item 1</div>
Now as you can see this result has several problems:
Any hints will be highly appreciated. Randahl |
- What is the right way to iterate Randahl Fink Isaksen
- Re: What is the right way to iterate Borja MartÃn
- Re: What is the right way to iterate Bruno Aranda
- Re: What is the right way to iterate Werner Punz
- Re: What is the right way to iterate Randahl Fink Isaksen
- RE: What is the right way to iterate Mike Burati

