File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Displaying Datatable in adjacent manner Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Displaying Datatable in adjacent manner" Watch "Displaying Datatable in adjacent manner" New topic

Displaying Datatable in adjacent manner

Ravi Sankar
Ranch Hand

Joined: Aug 17, 2007
Posts: 49

I have a requirement like to display the datatable in a calendar window. I have to display the datas in seven columns (Days) and maximum of six rows (Weeks). Can anyone help on this?

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

It is all in the structure of the data and not really in the JSF part, I mean you could create a custom JSF Component that can figure it all out with any kind of special structure for the data.

But lets say you a List of Week objects and in a Week object there are 7 Day attributes. So the JSF datatable takes the list of weeks and displays each day in a different column.

Why does this sound like a Homework assignment?


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
subject: Displaying Datatable in adjacent manner
It's not a secret anymore!