It's not a secret anymore!*
The moose likes JSF and the fly likes  :(  Display horizontally. Datatable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark " :(  Display horizontally. Datatable" Watch " :(  Display horizontally. Datatable" New topic
Author

:( Display horizontally. Datatable

Ina Bumstein
Greenhorn

Joined: Nov 10, 2007
Posts: 20
Hello,
In my jsf page I need following functionality:
Atype: comandlink1, comandlink2, comandlink3
Btype: comandlink1, comandlink2
Ctype: comandlink1, comandlink2, comandlink3

I have an array which contains elements of such structure Type, ArrayOfElements. Now I'm using h:datatable and I could get result like:
Atype: comandlink1
comandlink2
comandlink3
Btype: comandlink1
comandlink2
But this is not really the one i wanted. You need lots of scrolling if there many elements. I tried search internet, but no solution found. Maybe you could suggest me something?
Ina
Darryl Nortje
Ranch Hand

Joined: Jun 11, 2002
Posts: 140
DataList from tomahawk. Works the sames as DataTable just renders accross if you set the layout to simple.
Ina Bumstein
Greenhorn

Joined: Nov 10, 2007
Posts: 20
Thanks Darryl,
But I'm using RAD(rational application developer) an IBM Websphere. I just don't won't to use other libraries, as I read in IBM forums it's not good practices to use tomahawk. Is it the only way?
Ina
Darryl Nortje
Ranch Hand

Joined: Jun 11, 2002
Posts: 140
No I'm sure it's not the only way, but it's the only (nice) way that I know of ;-)

Why would it not be good practice to use tomahawk libraries?? IBM packages haven't got anything that do it, so what option are they leaving you. To develop your own custom component? Or perhaps, there is something that you can use that I don't know about. I went hunting for this a couple of weeks back, and found DataList, which is perfect, and works just as well as DataTable.

Personally I don't see a problem with using 3rd party libraries with IBM.

If you do find something else, please post it here.
Ina Bumstein
Greenhorn

Joined: Nov 10, 2007
Posts: 20
I solved my problem using hx:dataIterator IBM component. It's good solution if you use IBM.
I agree with you, Darryl, that maybe it will be no problem using tomahawk, but it was last modification in my application and I wanted to do i with minimum changes. Maybe in the second one I'll use tomahawk.
Ina
 
 
subject: :( Display horizontally. Datatable