This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
Similar Threads
Primefaces datatable var attribute not working
Unable to populate values obtained from ajax call using PrimeFaces
Submit dataTable fields
Sorting is not working in my JSF PrimeFaces Datatable and blank (empty) rows are displayed filtering
Wrong rendering of p:datatable with f:facet