解决方案:webwork checkboxlist遍历双重list,并设置选中

webwork checkboxlist 遍历双重list ,并设置选中状态

(customPropertyList:list;archivesPropertyList:listIn,listIn是被选中的list中的元素):

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="tableoutline">
   <ww:bean name="'com.linkage.cms.ui.bean.ArchivesBean'" id="archivesBean">
     <ww:param name="'#archivesBean.selectedInArchivesId'" value="archivesId" />
    <ww:checkboxlist 
           name="'archivesFormBean.archivesPropertyFormBean.propertyId'"
           list="#archivesBean.customPropertyList" 
           listKey="customPropertyId"
           listValue="propertyName" 
           id="url" 
           cssClass="'table_prefix'"
           cssStyle="'table_display'" 
           value="#archivesBean.archivesPropertyList"
           theme="'simple'" 
           template="'cms_checkboxlist_table.vm'" />
 </ww:bean>
</table>

  附件为公共的控件模板:'cms_checkboxlist_table.vm'

 

你可能感兴趣的:(cms,bean,UI,Webwork)