Can't you look that up from the iteration index?
If you want the address Id on the button, I think you'll have to revert to
scriptlets (uck!).
Dave
"Strichartz, Beth" <[EMAIL PROTECTED]> on
10/22/2001 05:36:45 PM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc: (bcc: David Hay/Lex/Lexmark)
Subject: RE: How To: Radio Buttons and Regular buttons
What if I am looking for more than the iterator?
I really need the address Id...
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 5:25 PM
To: [EMAIL PROTECTED]
Subject: RE: How To: Radio Buttons and Regular buttons
The indexed property will work if you use the nightly build. The name of
the
submit button will be suffixed with [x] where x is the interation index.
You
can then check that in your action.
Cheers,
Dave
"Strichartz, Beth" <[EMAIL PROTECTED]> on
10/22/2001 05:10:45 PM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc: (bcc: David Hay/Lex/Lexmark)
Subject: RE: How To: Radio Buttons and Regular buttons
Hi all,
I have a similar questions.
In my iterate I have a regular Button and I need to know which one was
clicked. Therefore, I have to have a dynamic value generated in the iterate.
I have tried defaulting the value to be part of the bean that I am iterating
over ,
but this has not worked for me.
The following does not work for me...
Any ideas on what will work??
will the indexed property work?
<logic:iterate id="addressAccount" name="ChangeAddressForm"
property="mapAddressAccount" indexId="index">
<bean:write name="addressAccount" property="account.accountNumber"
filter="true"/></td>
<bean:write name="addressAccount" property="account.status"
filter="true"/></td>
....
<table width="100%" border="0" height="45" cellpadding="0">
<tr>
<td width="26%" valign="top">
<html:submit property="buttonSelected" value='<bean:write
name="addressAccount" property="address.addressId" filter="true"/>' />
</td>
</tr>
</table>
</logic:iterate>
Thanks Beth.
-----Original Message-----
From: L. Yeung [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 3:27 AM
To: [EMAIL PROTECTED]
Subject: How To: Radio Buttons
Hi All! I need to iterate a collection of supplier
info with radio buttons. I want the value property to
have dynamic values extractd from the collection.
<logic:iterate name="user" id="suppliersLookupList"
property="suppliersLookupListCollection">
..
<html:radio name="suppliersLookupList"
property="selectedSupplierNo" value="supplierNo">
<bean:write name="suppliersLookupList"
property="supplierNo" filter="true"/>
</html:radio>
Thanks in advance.
L.Yeung
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
This message contains information which may be confidential and privileged.
Unless you are the addressee (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message. If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message.
Thank you.
This message contains information which may be confidential and privileged.
Unless you are the addressee (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message. If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message.
Thank you.