This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes MyFaces Tomahawk : Radio buttons in t: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 "MyFaces Tomahawk : Radio buttons in t:dataTable" Watch "MyFaces Tomahawk : Radio buttons in t:dataTable" New topic
Author

MyFaces Tomahawk : Radio buttons in t:dataTable

Abiodun Okusolubo
Ranch Hand

Joined: Apr 25, 2004
Posts: 72
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.


SCJP, SCWCD, SCJD : in the making.
Marcus Sanchez
Greenhorn

Joined: Oct 31, 2007
Posts: 21
http://www.roseindia.net/jsf/apache-myfaces-tomahawk/tomahawk_radio_tag.shtml



<br/>SCJP 5.0<br />SCWCD 5.0 <br/> SCDJWS 5.0 On Going...
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
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

Joined: Apr 25, 2004
Posts: 72
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
 
Don't get me started about those stupid light bulbs.
 
subject: MyFaces Tomahawk : Radio buttons in t:dataTable
 
Similar Threads
convertNumber question
Backing Method not Being Called
JSF: tomahawk dataTable rowStyleClass problem while applying alternate colors to rows
Adding Dynamic Datatable to Panel Grid
JSF DataTable pagination Previous 1 2 3 4 5 Next