开发者

Alternative for h:selectManyMenu

I'm using a h:selectManyMenu, but it doesn't render correctly in Chrome (12), Firefox (5) or Internet Explorer (8). The h:selectOneMenu works fine but it doesn't allow the selection of multiple values, obviously. Does anybody know an alternative? I'm using RichFaces, but the rich:select component doesn't allow multip开发者_运维知识库le values either.

update: The rendering issues are explained here: link. The main problem is that there's no drop-down list.


Just forget about “h:selectManyMenu” tag, there is really no reason to use it. The “h:selectManyListbox” tag is a good alternative.


also with any manymenu-s in the xhtml page use converter, because many menus0 not correctly understand if your value is double or long and itmes value also long or double ..

just add

 <f:convertNumber/>

  <p:selectManyMenu id="companyId" value="#{SearchBean.companyIdList}" style="height:120px;">
                                <f:selectItems value="#{SearchBean.companyList}"/>                             
                                <f:convertNumber/>
                                <p:ajax update="data:modelId" event="change"/>    
                                <p:ajax event="unselect" update="data:modelId"/>
                            </p:selectManyMenu>  
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜