Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

s:radio and display tag

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am having great difficulty displaying a struts 2 radio button (or a standard HTML radio button type) in display tag table. Please find attached my code (the commented out section is the original code that worked prior to using display tag to display a table).



This is what the above code displays:


What I am trying to achieve is to display a radio button in the Id column for each table entry (row) (so I can determine which is selected).

I have spent a number of hours experimenting (tried with and without theme="simple", tried using the CheckboxTableDecorator, tried struts 2 and plain old HTML radio button syntax) and a number of hours searching for a solution on the web and unfortunately have not had a radio button appear as yet! Would anyone be kind enough to help me out, please?
 
James Gadbury
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for the bump but does anyone have any ideas at all? I think I will have to post up on the displaytag and struts forums (if they have any).
 
James Gadbury
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Resolution posted here: http://www.nabble.com/s%3Aradio-and-display-tag-td23886156.html

Hope this helps someone else some day.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

James Gadbury wrote:Resolution posted here: http://www.nabble.com/s%3Aradio-and-display-tag-td23886156.html

Hope this helps someone else some day.




Gadbury,

You are a good friend to me now as this did help me solve my problem! I now display radio button column. Now can you give me instructions on how to be able to select a row with that and have it do something?

Thanks,
DD
 
A "dutch baby" is not a baby. But this tiny ad is baby sized:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!