PDA

View Full Version : BeanModelGrid limits



aurelie
10 Aug 2009, 4:49 AM
Hi,

I want to create a BeanModelGrid.
my problem is that my bean have an attribute which is an other bean and i wish to visualize the name of this attribute in my grid.
Is it possible??

here is my bean :


public class IndicateurBean extends LightEntity implements Serializable, BeanModelTag {

private static final long serialVersionUID = 1L;
private String code;
private DomaineIndicateurBean domaineIndicateur = null;
private boolean forceLoadDomaineIndicateur;

public IndicateurBean() {
}


public DomaineIndicateurBean getDomaineIndicateur() {
return domaineIndicateur;
}


public void setDomaineIndicateur(DomaineIndicateurBean domaineIndicateur) {
this.domaineIndicateur = (DomaineIndicateurBean) domaineIndicateur;
}

public void setForceLoadDomaineIndicateur(boolean force) {
this.forceLoadDomaineIndicateur = force;
}

public boolean getForceLoadDomaineIndicateur() {
return this.forceLoadDomaineIndicateur;
}

public String getCode() {
return this.code;
}

public void setCode(String code) {
this.code = code;
}
}

Arno.Nyhm
10 Aug 2009, 5:52 AM
maybe this is a similar question?
Rendering nested models on a grid
http://www.extjs.com/forum/showthread.php?t=76344&highlight=processor

aurelie
10 Aug 2009, 7:22 AM
Thank you!