Revision history [back]

click to hide/show revision 1
initial version

answered 2019-02-26 00:35:01 +0800

bztom35 gravatar image bztom35

Thanks for your suggestions.

I was able to get it working by using a customized itemrenderer in the zul file.

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" &gt;="" <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());

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