File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes <p:datatable scrollable= not working" title="" /> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "<p:datatable scrollable="true"> not working" Watch "<p:datatable scrollable="true"> not working" New topic

<p:datatable scrollable="true"> not working

amarshi mohanty
Ranch Hand

Joined: Jul 01, 2008
Posts: 110
Hi There,
for the below code

nothing is displayed on the browser , but if i remove the scrollable attribute , the table is displayed properly,but i need the vertical scrollbar.
Please suggest.


SCJP (97%), SCWCD (95%))
Ajil Mohan

Joined: Feb 20, 2010
Posts: 8
Hi Amarshi,

Does p:dataTable has 'scrollable' attribute ?


SCJP 1.5
Cesar Loachamin
Ranch Hand

Joined: Dec 25, 2010
Posts: 90

Hi Amarshi,

Try this, first remove the scrollable="true" (if it is the problem) from the datatable and put it inside a div, just like this.

With this you have a vertical scrollbar



When a dream is ending because to come true - OCPJP 6,7. OCE JPA EE6. MCTS
Brendan Healey
Ranch Hand

Joined: May 12, 2009
Posts: 218

I think this got broken in 2.2-RC1 / 2.2-RC2. What you may wish to try is using something like:

I agree. Here's the link:
subject: <p:datatable scrollable="true"> not working
It's not a secret anymore!