• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

MyFaces Tomahawk : Radio buttons in t:dataTable

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://www.roseindia.net/jsf/apache-myfaces-tomahawk/tomahawk_radio_tag.shtml

 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Space pants. Tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic