1.<rich:pickList>
<rich:pickList value="#{pickList.fruitsList}">
...
</rich:pickList>
private String [] fruitsList = new String [] {"apple", "grapes"};
那"apple", "grapes"初始化的将出现在控制list右边
控制控件功能键名称
copyAllControlLabel
copyControlLabel
removeControlLabel
removeAllControlLabel
showButtonsLabel="false"将不出现label名称
2.<rich:orderingList>
Keep in mind that reordering is done on the client (the browser). The new order will be sent to the server only if the form is submitted. You’ll see how it’s done a little bit later.
注意<rich:orderingList>和<rich:dataOrderedList>不同
<rich:pickList value="#{pickList.fruitsList}">
...
</rich:pickList>
private String [] fruitsList = new String [] {"apple", "grapes"};
那"apple", "grapes"初始化的将出现在控制list右边
控制控件功能键名称
copyAllControlLabel
copyControlLabel
removeControlLabel
removeAllControlLabel
showButtonsLabel="false"将不出现label名称
2.<rich:orderingList>
Keep in mind that reordering is done on the client (the browser). The new order will be sent to the server only if the form is submitted. You’ll see how it’s done a little bit later.
注意<rich:orderingList>和<rich:dataOrderedList>不同
本文探讨了RichFaces组件中pickList和orderingList的功能及使用方法。pickList允许用户在两个列表间选择并移动项,而orderingList则实现了客户端的拖拽排序功能,并在表单提交时更新服务器端的数据顺序。

被折叠的 条评论
为什么被折叠?



