File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "<p:datatable scrollable="true"> not working" Watch "<p:datatable scrollable="true"> not working" New topic
Author

<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.


Thanks,
amarshi


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

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

Does p:dataTable has 'scrollable' attribute ?

regards
Ajil


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

Regards

Cesar

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:



Regards,
Brendan.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: <p:datatable scrollable="true"> not working
 
Similar Threads
Submit dataTable fields
Wrong rendering of p:datatable with f:facet
Primefaces datatable var attribute not working
Unable to populate values obtained from ajax call using PrimeFaces
Sorting is not working in my JSF PrimeFaces Datatable and blank (empty) rows are displayed filtering