not sure why tomcat would crash on you using nightly build. What version are
you using? I'm using 3.3 and works fine...
Dave
"L. Yeung" <[EMAIL PROTECTED]> on 10/22/2001 09:27:57
PM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc: (bcc: David Hay/Lex/Lexmark)
Subject: RE: How To: Radio Buttons and Regular buttons
I ended up writing this way:
<%
Collection col =
(Collection)request.getAttribute(AttributeKeys.SuppliersLookupListKey);
Iterator iter = col.iterator();
while (iter.hasNext()) {
SupplierModel model = (SupplierModel)iter.next();
%>
...
<input type="radio" name="selectedSupplierNo"
value="<%= model.getSupplierNo() %>">
<font face=arial
size=2><%=model.getSupplierNo() %></font>
<%
}
%>
Too bad that I have to resort into scriptlets. =(
I've checked out the nightly builds and it does
support the index property. But after installing,
Tomcat keeps crashing, possibly its because of the
DTDs and TLDs mixed up with the release build?
Regards,
L. Yeung
--- [EMAIL PROTECTED] wrote:
>
>
> 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.
>
>
>
>
>
>
>
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com