This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Struts and the fly likes Radio button with a variable size list Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Radio button with a variable size list" Watch "Radio button with a variable size list" New topic

Radio button with a variable size list

Bob Fer

Joined: Feb 14, 2005
Posts: 1
I'm using Struts 1.2 and I've a form with a list of selectable items. The content of the list is obtained from a bean with an ArrayList containing objects of a class User with name, last name, phone, address,... I want to set a radio button on the left of each row to let the user select one and only one user. Besides the ArrayList size is variable, the most important problem is that I have to set both the radio button and the User fields inside a <logic:iterate> tag and I have no clear idea of how to link both inside the tag in a way I can know which radio button selected is related to each line of my bean. Any idea? Thanks.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Radio button with a variable size list
It's not a secret anymore!