• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

radio button inside a datatable

 
Ranch Hand
Posts: 101
Spring Flex Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi I have to place radio button for each record inside a datatable, do some javascript validations and get the selected record in my backing bean. For that I have seen this
http://www.ibm.com/developerworks/rational/library/05/1213_he/.. Looks to be ok but lot of javascript. There is script to unselect one radio button when we select the other. Is there any component in tomahawk which makes life easy I am using jdk1.4, tomahawk-1.1.8.
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
t:selectOneRadio with layout="spread" may indeed help in this.

Here's another example which is much more simple and uses much less cumbersome Javascript than the one at IBM's article: http://balusc.blogspot.com/2006/06/using-datatables.html#SelectRowByRadioButton
 
Shasi Mitra
Ranch Hand
Posts: 101
Spring Flex Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
some changes to this http://wiki.apache.org/myfaces/Display_Radio_Buttons_In_Columns works. But forceId is not working for <t:selectOne Radio/> any idea?
But this saved a lot of javascript..
reply
    Bookmark Topic Watch Topic
  • New Topic