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 nested datatable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "nested datatable" Watch "nested datatable" New topic
Author

nested datatable

Joe Jose
Ranch Hand

Joined: Jan 14, 2004
Posts: 125
Hi,

I need to display values from datatabse like :

Department1

work1
work2

Departement2

work1
work2
work3

I am trying to do this using datatable iterating two lists. Here is my code :
jsp:

bean:


I am getting the diplay like the following instead of getting like the above mentioned:

Department1

work1
work2
work1
work2
work3

Department2

work1
work2
work1
work2
work3

How can I get a display like the one I have shown in first ?Please help me.
Joe Jose
Ranch Hand

Joined: Jan 14, 2004
Posts: 125
Hi,

I got it solved using myfaces t:datatable without using nesting .

Thanks,
Joe.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: nested datatable
 
Similar Threads
Input row select on data table does not get called
JSF datatable doubt
JSF + RichFaces not able to reRender
Unable to display header in outer JSF datatable of a nested datatable using facet tag
Using of nested Datatables