-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
From what i understood, this scenario better fits to a custom renderer:
Using a ListModel and ListitemRenderer
There are many examples around about renderers... this one is about grids:
hope it helps! Giovanni
2 | No.2 Revision |
From what i understood, this scenario better fits to a custom renderer:
Using a ListModel and ListitemRenderer
There are many examples around about renderers... this one is about grids:
in your case... you will be doing something like:
public void render(Listitem item, YourBean bean, int index) throws Exception {
item.setValue(bean);
Listcell c1 = new Listcell();
c1.setParent(item);
if (bean.isTrue()) {
new Textbox().setParent(item);
} else {
new Label("no need").setParent(item);
}
}
hope it helps! Giovanni