[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jboss-user
Subject:    [jboss-user] [JBoss Seam] - Re: Examples for nested data
From:       robshep <do-not-reply () jboss ! com>
Date:       2007-09-30 21:23:49
Message-ID: 6890178.1191187429931.JavaMail.jboss () colo-br-02 ! atl ! jboss ! com
[Download RAW message or body]

I understand the basic concepts. Data organisation for this project is trivial. 

Houses->Rooms->Chairs

"Yacho" wrote : You Can fetch your entity with all referenced data - and display it \
somehow

No I can't.... hence OP :)

The actual display tree component is irrelavent at this stage. Take for example my \
model....

House class has a @OneToMany List<Room> rooms in it.

Room has a House house parent reference in it.

hibernate deploys this and generates the tables, with constraints, as i would expect. \
My first step would be to, for example,  show the list of houses with the number of \
rooms in each. I've seen the boilerplate generated code for displaying normal \
properties, E.g. #{house.name} but how do i go about displaying house.rooms.size() in \
JSF/facelet. does any code for this need to go in a session bean? what alterations go \
in the entity. 

as i said i'm a beginner. a simple as possible please. 

many thanks

Ro


View the original post : \
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090054#4090054

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090054
 _______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic