我正在查看一些现有的代码,并好奇'h:selectManyListbox'&'t:selectItems'value属性之间的差异是什么?h:selectManyListbox&t:selectItems的值属性差异
<h:selectManyListbox value="#{MyBean.deSelectedFields}" size="10">
<t:selectItems id="selectItemsId" value="#{MyBean.allSelectedFields}" var="item" itemValue="#{item.value}" itemLabel="#{item.label}" />
</h:selectManyListbox>
两个组件的文件指出同样的事情:
“属性的值设置此组件的当前值。”
http://www.jsftoolbox.com/documentation/tomahawk/09-TagReference/tomahawk-selectManyListbox.html
http://www.jsftoolbox.com/documentation/help/12-TagReference/core/f_selectItems.html
由于
有道理,谢谢BalusC。 – 2011-03-04 14:51:26
不客气。 – BalusC 2011-03-04 14:51:47