• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Define size to h:dataTable

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Kumar",
Please check your private messages.
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ben Souther,

Can you please reply to the question raised by "Kumar" in this topic
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would do that by using css on the datatable. Give it a height property and a overflow-y: scroll.
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 18
Tomcat Server Java Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 18
Tomcat Server Java Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
no one can help me in this?

where are all JSF experts??

helloooooo !!!
 
reply
    Bookmark Topic Watch Topic
  • New Topic