RE: Question: How do I put iterated radio buttons in the same gro up?

2004-01-16 Thread Eric Hodges
Nevermind, I figured it out.  Here's the syntax that works:

  html:radio property=master value=%=account.getRt()%/

The documentation describes the value attribute as [t]he value of the
radio tag.  That isn't very helpful.

-Original Message-
From: Eric Hodges 
Sent: Thursday, January 15, 2004 7:50 AM
To: Struts Users Mailing List
Subject: RE: Question: How do I put iterated radio buttons in the same
gro up?


Thanks for the advice, but I can't get that to work.  I have to add a
value attribute to get it to compile, so I changed it to this:

html:radio property=master idName=account value=master/

That causes this run-time exception:

javax.servlet.jsp.JspException: No getter method available for property
master for bean under name  org.apache.struts.taglib.html.BEAN

My account bean has an isMaster method, so it's looking on some other
bean.  I've tried playing with the attribute values with no success.  I even
replaced the boolean master property on my account bean with another bean
class that defined a boolean master property to see if it was trying to
access account.master.master, but that failed too.

-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 1:03 PM
To: Struts Users Mailing List
Subject: Re: Question: How do I put iterated radio buttons in the same
group?


Try:

html:radio property=master idName=account/

Quoting Eric Hodges [EMAIL PROTECTED]:

 I'm using nested:iterate to display a list of items in a table.  Each row
 shows on element of the list like this:
 
 nested:iterate id=account property=accounts
   tr
 td
   nested:radio property=master value=Master/
 /td
   /tr
 /nested:iterate
 
 
 I'd like to have one column that shows radio buttons and I'd like all of
 those buttons to be in the same group so only one of them can be selected
 at
 a time.  To do this I need them to have the same name property in the
 resulting HTML.  The problem is that their names take the form
 account[index].master, where index has a different value on each row.
 This puts each radio button in it's own group and allows all of them to be
 selected at the same time.
 
 Any ideas about how to make this work?

-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Question: How do I put iterated radio buttons in the same gro up?

2004-01-15 Thread Eric Hodges
Thanks for the advice, but I can't get that to work.  I have to add a
value attribute to get it to compile, so I changed it to this:

html:radio property=master idName=account value=master/

That causes this run-time exception:

javax.servlet.jsp.JspException: No getter method available for property
master for bean under name  org.apache.struts.taglib.html.BEAN

My account bean has an isMaster method, so it's looking on some other
bean.  I've tried playing with the attribute values with no success.  I even
replaced the boolean master property on my account bean with another bean
class that defined a boolean master property to see if it was trying to
access account.master.master, but that failed too.

-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 1:03 PM
To: Struts Users Mailing List
Subject: Re: Question: How do I put iterated radio buttons in the same
group?


Try:

html:radio property=master idName=account/

Quoting Eric Hodges [EMAIL PROTECTED]:

 I'm using nested:iterate to display a list of items in a table.  Each row
 shows on element of the list like this:
 
 nested:iterate id=account property=accounts
   tr
 td
   nested:radio property=master value=Master/
 /td
   /tr
 /nested:iterate
 
 
 I'd like to have one column that shows radio buttons and I'd like all of
 those buttons to be in the same group so only one of them can be selected
 at
 a time.  To do this I need them to have the same name property in the
 resulting HTML.  The problem is that their names take the form
 account[index].master, where index has a different value on each row.
 This puts each radio button in it's own group and allows all of them to be
 selected at the same time.
 
 Any ideas about how to make this work?

-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]