开发者

Drop down menu in primefacess

开发者 https://www.devze.com 2023-03-01 07:57 出处:网络
Using primefaces, how can i implement multiple selection of items in the dropdown list without using several dropdown menus...

Using primefaces, how can i implement multiple selection of items in the dropdown list without using several dropdown menus...

is there tag in primefac开发者_开发知识库es??


I think there's no primefaces component to achieve this but you can use plain jsf.

Try <h:selectManyMenu> or <h:selectManyListbox>.

Here is an example for the menu:

<h:selectManyMenu
    id="newsletters"
    value="#{bean.selectedItems}">
    <f:selectItems
        value="#{bean.availableItems}"/>
</h:selectManyMenu>

You'll find more information in the Java EE tutorial.


Primefaces 3.0 M1 has a SelectManyMenu component. You can download 3.0 M1 version here

2.2.1 doesn't have such component. Regards.

0

精彩评论

暂无评论...
验证码 换一张
取 消