Sorry folks...

if I got this

@Entity
@ClassDescriptor(hasCyclicRelationships = true)
@BeanModels(
{ @BeanModel(pageType = PageType.LIST, 
        include = "player, gp, g, a, pts", 
        exclude="") })
public class PlayerStats implements Cloneable, Serializable {
    private static final Log log = LogFactory.getLog(PlayerStats.class);

    private Integer id = null;

    private Player player = null;

    private Year year = null;

can I do this ?

        myModel = beanModelSource.createDisplayModel(PlayerStats.class, 
messages);
        myModel.add("action", null);
        myModel.include("player.number", "player.lastName", "player.lastName", 
"gp", "g", "a", "pts");
        myModel.get("player.firstName").sortable(false);
        myModel.get("player.lastName").label("Surname");        


                                          

Reply via email to