NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
pontaj
Joined: 12 Aug 2009 Posts: 5
|
Posted: Wed Aug 12, 2009 11:36 am Post subject: iterate through a List from jsf |
|
|
Hi, i'm trying to iterate through a List of objects from my jsf file.
this is how far i've got using the jstl tag librarys forEach (allCSPresult is a List of objects:
<c:forEach var="csp" items="#{ProfileManagement.allCSPresult}">
<h:outputText value="#{csp}"/>
</c:forEach>
but I want to print variables that belong to the objects and not the objects themselves. Like you would do this way in java: object.myName or object.getName().name. How can I do this from my jsp-page?
thx |
|
| Back to top |
|
 |
Melongo Annabel Posted via mailing list.
|
Posted: Wed Aug 12, 2009 11:42 pm Post subject: iterate through a List from jsf |
|
|
Hopefully this helps: http://www.nakov.com/inetjava/lectures/part-3-webapps/InetJava-3.11-JSTL.html
From: pontaj <address-removed>
To: address-removed
Sent: Wednesday, August 12, 2009 6:36:42 AM
Subject: [nbj2ee] iterate through a List from jsf
Hi, i'm trying to iterate through a List of objects from my jsf file.
this is how far i've got using the jstl tag librarys forEach (allCSPresult is a List of objects:
<c:forEach var="csp" items="#{ProfileManagement.
<h:outputText value="#{csp}"/>,
</c:forEach>
but I want to print variables that belong to the objects and not the objects themselves. Like you would do this way in java: object.myName or object.getName().name. How can I do this from my jsp-page?
thx |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|