aspose file tools*
The moose likes Struts and the fly likes s:radio and display tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "s:radio and display tag" Watch "s:radio and display tag" New topic
Author

s:radio and display tag

James Gadbury
Greenhorn

Joined: Mar 20, 2009
Posts: 24
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

Joined: Mar 20, 2009
Posts: 24
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

Joined: Mar 20, 2009
Posts: 24
Resolution posted here: http://www.nabble.com/s%3Aradio-and-display-tag-td23886156.html

Hope this helps someone else some day.
David Denton
Greenhorn

Joined: Sep 16, 2010
Posts: 1
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
 
wood burning stoves
 
subject: s:radio and display tag
 
Similar Threads
Display Tag horizontal scroll bar issues
error onclick of radio button inside display tag
pagination problem
DisplayTag Export Question?
DisplayTag problem to export Excel not working