| Author |
Define size to h:dataTable
|
Kumar
Greenhorn
Joined: Oct 03, 2005
Posts: 4
|
|
My scenario is like this, I have List, I am iterating my list using <h:dataTable> and populate the values in my jsp. I want to define some size to my table whether or not my list contains data. If the list size is increases beyond the Tabel size I don�t want to increase the Table size rather I need to implement vertical scroll bar. Can any one help me?
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
"Kumar", Please check your private messages.
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
Hari Dhanakoti
Ranch Hand
Joined: Jan 07, 2008
Posts: 74
|
|
Hi Ben Souther, Can you please reply to the question raised by "Kumar" in this topic
|
Regards,
Hari
|
 |
Paul Napauleon
Greenhorn
Joined: Jul 20, 2007
Posts: 15
|
|
|
I would do that by using css on the datatable. Give it a height property and a overflow-y: scroll.
|
 |
Atul Samnerkar
Ranch Hand
Joined: Sep 20, 2003
Posts: 44
|
|
You can always control the size of the list from the managed bean. With the help of iterator, restrict the size of the list to say 10 and then bind that list to the datatable. In case of MVC, View should not decide how much data to be displayed. It should be governed by the controller only. If this is a consistent feature required by you then go for developing the custom tag as per your need. Thanks & Regards, Atul Samnerkar
|
 |
navdeep thakur
Greenhorn
Joined: May 09, 2007
Posts: 18
|
|
Hi,
I want to wrap the empty space between my data and column.
I am using datatable to show values.
Please have a look on attached screen shot.
I have marked empty space in RED color line.
|
Navdeep Thakur alias Navi
|
 |
navdeep thakur
Greenhorn
Joined: May 09, 2007
Posts: 18
|
|
no one can help me in this?
where are all JSF experts??
helloooooo !!!
|
 |
 |
|
|
subject: Define size to h:dataTable
|
|
|