• Post Reply Bookmark Topic Watch Topic
  • New Topic

c: forEach with JSF

 
Elvis Popa
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Sorry if I post a problem already known by most of you probably..or probably not. But here I go

I'm developing a JSF application and in a certain page I have a tree like structure made with JQuery. So far so good
The application also has hibernate enabled and the js tree is dynamically constructed with data from DB when the user logs in.
To build the tree I have to iterate through a List of bean (POJO) that was retrieved for the user and display the content. Something like this :

<c:forEach var="v" items="#{pc_ViewsTree.viewsCC}">
<li id="1">
<h:commandLink value="Mare test" action="#{pc_ViewsTree.doPrepareView}">
<f:param id="viewType" name="viewType" value="#{v.viewType}"></f:param>
</h:commandLink>
</li>
</c:forEach>

The problem is that nothing is displayed when the page is rendered. The List is populated and fine because I logged it in the managed bean.
JSTL forEach tag doesn't work with Faces managed beans ? Or what is the problem

I also made a small JSF app test. Same result.

Can someone please enlighten me

 
Sumeet Singh Aryan
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
can you please send the code of your pc_ViewsTree bean class?? rest everything is fine and JSTL is working fine in JSF. I have tested the same in my project
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!