Revision history [back]

click to hide/show revision 1
initial version

asked 2016-05-12 08:35:47 +0800

studyofzul gravatar image studyofzul

At Listbox, setSelectedIndex in zul

Here, there is code in zul.

<listbox id="memberlistbox" model="${$composer.memberlist }" mold="paging" pagesize="10"> <template name="model" &gt;="" <listitem=""> <listcell><checkbox value="${each.bizno }"></checkbox></listcell> <listcell label="${each.name}"/> <listcell label="${each.pre_id}"/> <listcell label="${each.idchangedate}"/> <listcell> <listbox mold="select" model="${$composer.searchDepartment }" selectedindex="" &gt;="" <template="" name="model" &gt;="" <listitem="" label="${each.codenm }"/> </template> </listbox> </listcell> <listcell> <listbox mold="select" model="${$composer.positionlist }"> <template name="model"> <listitem label="${each.codenm }"/> </template> </listbox> </listcell> </template> </listbox>

So, I want to set selectedIndex in list. First listbox have two listbox in the listcell. mold of second listbox is select, And I want to give setSelectedIndex. I already used selectedIndex function like this 'selectedIndex='${each.place}'
but, It was not worked. So.. How to do this one?

At Listbox, setSelectedIndex in zul

Here, there is code in zul.

<listbox id="memberlistbox" model="${$composer.memberlist }" mold="paging" pagesize="10"> <template name="model" &gt;="" <listitem=""> <listcell><checkbox value="${each.bizno }"></checkbox></listcell> <listcell label="${each.name}"/> <listcell label="${each.pre_id}"/> <listcell label="${each.idchangedate}"/> <listcell> <listbox mold="select" model="${$composer.searchDepartment }" selectedindex="" &gt;="" <template="" name="model" &gt;="" <listitem="" label="${each.codenm }"/> </template> </listbox> </listcell> <listcell> <listbox mold="select" model="${$composer.positionlist }"> <template name="model"> <listitem label="${each.codenm }"/> </template> </listbox> </listcell> </template> </listbox>

So, I want to set selectedIndex in list. First listbox have two listbox in the listcell. mold of second listbox is select, And I want to give setSelectedIndex. I already used selectedIndex function like this 'selectedIndex='${each.place}'
but, It was not worked. So.. How to do this one?

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