开发者

How to limit the number of item shown in <h:Selectonemenu>?

How can we limit the size of h:selectonemenu to show suppose 10 values. In our applic开发者_运维百科ation we have a drop down which has more then 100 values.


That's already not possible with plain HTML+CSS, so JSF can't do much for you here.

Best bet would be to mimic a dropdown yourself using <div><ul><li> and a good shot of CSS/JS.


I was facing same problem & solved through style tag, In primefaces: height will do.try this one-

    <h:selectOneMenu style="width:150px;   />    
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜