我正在查看一些现有代码,并好奇 '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>
两个组件的文档都声明了相同的内容:
“value 属性设置了该组件的当前值。”
http://www.jsftoolbox.com/documentation/tomahawk/09-TagReference/tomahawk-selectManyListbox.html
http://www.jsftoolbox.com/documentation/help/12-TagReference/core/f_selectItems.html
谢谢