Hi Folks,

I have a Player.class

public class Player extends Person implements Cloneable, Serializable {

    private Set<PlayerStats> playerStats = new HashSet<PlayerStats>();

He has a collection of stats. goals, assists, points etc...

I am rendering league leaders... so I have a bean model I am working on

        myModel = beanModelSource.createDisplayModel(Player.class, messages);
        myModel.add("action", null);
        myModel.include("id", "number", "photo", "lastName", "firstName");
        myModel.get("firstName").sortable(false);
        myModel.get("lastName").label("Surname");    

How do I get the stats into the bean model? They are of a different class 
PlayerStat.class

I want to include both player info and player stats in the same bean model.

Any tips are appreciated.

Ken


                                          

Reply via email to