[英]Primefaces: PanelGrid in Datatable LiveScroll
Is there anyone who tried that? 有没有人尝试过? When it loads more panelGrid, table just duplicates them.
当它加载更多panelGrid时,表将重复它们。 this picture result of that simple code block .
这个简单代码块的图片结果 。 Upper side shows how should it be rendered in a proper way but it goes wrong like at the down side.
上侧显示了应如何正确渲染,但像下侧一样出错。
<p:dataTable liveScroll="true" value="#{PanelController.panelList2}" var="GridPanel" scrollable="true" scrollRows="20" scrollHeight="100" rows="5">
<p:column>
<p:panelGrid>
<p:row>
<p:column>
<h:outputText value="ehehe"></h:outputText>
</p:column>
</p:row>
</p:panelGrid>
</p:column>
</p:dataTable>
If it was up to me I'd use the p:dataScroller und then use the panelgrid inside that. 如果由我决定,请使用p:dataScroller und,然后在其中使用panelgrid。 Take a look at this: http://www.primefaces.org/showcase/ui/data/datascroller/inline.xhtml
看看这个: http : //www.primefaces.org/showcase/ui/data/datascroller/inline.xhtml
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.