开发者

Drop down menu in primefacess

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜