Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MyFaces Tomahawk : Radio buttons in t:dataTable

 
Abiodun Okusolubo
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers,
I am working on a JSF application project using MyFaces flavor. I need someone to help with how "t:dataTable" which is MyFaces table can contain radio buttons. The radio button can be of Tomahawk can also be simple radio buttons provided by myfaces.

Thank you.
 
Marcus Sanchez
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.roseindia.net/jsf/apache-myfaces-tomahawk/tomahawk_radio_tag.shtml

 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why did you resurrect an old topic with an answer which is not fully related to his question? He wanted to know how to use radiobuttons in a datatable. It is fairly simple though: just bind the radiobutton value as a property of the iterated row object. If the selectitems differs per row, then bind it as a property of the iterated row object either, else just bind it as a property of the backing bean.

That said, I wouldn't recommend roseindia as a reliable source of information. You'll be surprised how many information over there is actually garbage and in many cases introduces bad practices.
[ September 01, 2008: Message edited by: Bauke Scholtz ]
 
Abiodun Okusolubo
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks mate, I've since solve the riddle long time ago. However, the best solution for what I actually needed then was found in a javaworld example. However, if anyone is interested the site is
http://www.javaworld.com/javaworld/jw-02-2007/jw-02-jsf.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic