-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
Thanks for your suggestions.
I was able to get it working by using a customized itemrenderer in the zul file.
2 | No.2 Revision |
Thanks for your suggestions.
I was able to get it working by using a customized itemrenderer itemRenderer in the zul file.
:zul file
<bandpopup height="100%" sclass="labelstyle" width="280px" >="" <listbox="" id="rsStateListBox" width="250px" hflex="true" mold="paging" pagesize="5" <br=""> itemRenderer="${StateRenderer}" onSelect="rsStateTypeID.value = self.selectedItem.label;rsStateTypeID.close();" checkmark="true" > <listhead> <listheader label="State Selection"/> </listhead> </listbox> </bandpopup> </bandbox>
:Java class
public class StateRenderer implements ListitemRenderer { @Override public void render(Listitem item, Object data, int arg2) throws Exception { StateList st = (StateList) data; item.setLabel(st.getStatename()); item.setValue(st.getState_abbr());
}
}