Revision history [back]

click to hide/show revision 1
initial version

answered 2013-04-30 15:10:43 +0800

gganassin gravatar image gganassin flag of Luxembourg

http://www.hybris.com/

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:

dynamic render

hope it helps! Giovanni

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:

dynamic render

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

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More