简体   繁体   English

JSF datascroller问题

[英]JSF datascroller problem

As a requirement i have two datatables for the same List. 作为要求,我有两个用于同一列表的数据表。 Can I use one datascroller to control both the tables. 我可以使用一个datascroller来控制两个表。 Please help me on solving this. 请帮我解决这个问题。

This could be solved easily in HTML but not in JSF; 这可以用HTML轻松解决,但不能用JSF解决。 In JSF the two lists are completely separate things. 在JSF中,两个列表是完全独立的。 My guess is that you must look at the source code of the JSF list implementation and create your own UI component from that. 我的猜测是,您必须查看JSF列表实现的源代码,并从中创建自己的UI组件。 Create one which creates the list without the scrollbar and then wrap those in a kind of "scrolled area" (ie a DIV that has the correct overflow style). 创建一个不带滚动条的列表,然后将其包装在一种“滚动区域”中(即具有正确溢出样式的DIV )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM