Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

:( Display horizontally. Datatable

 
Ina Bumstein
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DataList from tomahawk. Works the sames as DataTable just renders accross if you set the layout to simple.
 
Ina Bumstein
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic