[英]One to many row in datatable jsf?
How can I create datatable
which displays record as the following: 如何创建
datatable
,显示记录如下所示:
| | SECOND |
| ONE | THIRD |
| | FORTH |
| | FIFTH |
eg one to many. 例如一对多。 Can you help me?
你能帮助我吗?
There's no way to achieve it with Primefaces, AFAIK. Primefaces,AFAIK无法实现这一目标。 You could use a subtable instead to do something like:
您可以改用子表来执行以下操作:
| ONE |
| SECOND | THIRD || FORTH || FIFTH |
Or even use a rowExpansion utility, which I usually use for most of my one to many cases. 甚至使用rowExpansion实用程序,我通常在大多数情况下使用它。
If your requirement is to match exactly what you ask for, you could always go with a pure JSF implementation instead and try to style it using Primefaces CSS stylesheets. 如果您的要求是完全符合您的要求,则可以始终使用纯JSF实现,并尝试使用Primefaces CSS样式表对其进行样式设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.