小编use*_*379的帖子

Primefaces selectManyCheckbox布局在列中从上到下

任务:有一个带有selectMany复选框的面板,该面板有5列。选择框的值按升序排列,但它们在列中从左到右而不是从上到下显示。

使用:Primefaces代码:

<p:selectManyCheckbox id="chkbx" value=.. layout="grid" columns="5">
<p:selectItems value=.. itemValue=".." itemLabel=".."/>
</p:selectManyCheckbox>
Run Code Online (Sandbox Code Playgroud)

当前屏幕:

[] a    [] b    [] c  

[] d    [] e    [] f

[] g    [] h    [] i
Run Code Online (Sandbox Code Playgroud)

预期:

[] a    [] d    [] g  

[] b    [] e    [] h

[] c    [] f    [] i
Run Code Online (Sandbox Code Playgroud)

layout jsf orientation primefaces selectmanycheckbox

6
推荐指数
1
解决办法
60
查看次数