[jboss-user] [JBoss Seam] - jboss seam @Datamodel
ypasmk
do-not-reply at jboss.com
Fri Nov 3 02:52:15 EST 2006
I want to outject an ArryList so I have this in my ejb
| @DataModel
| private List<myEntity> ents=new ArrayList<myEntity>();
|
and this code in my jsf page
|
|
| <h:dataTable value="#{listAgents}" var="report">
| ....#{report.id}
| </h:dataTable>
|
|
and it's working..But myEntity has an ArrayList component inside it which is mapped as OneToMany like this
| @Entity
| public class myEntity{
|
| ....
| private List<otherEntity> other;
|
|
| @OneToMany
| public List<otherEntity getOther() {
| ....
| }
|
| }
|
|
so my question is how can I outject like myObject.getOther().get(0).getName(); in my jsf pages?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982869#3982869
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982869
More information about the jboss-user
mailing list