You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Bailey, Shane C." <SH...@saic.com> on 2003/05/20 17:06:41 UTC
RE: logic:iterate indexId
Isn't the id attribute required with iterate?
Looks like you only have indexed.
http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate
-----Original Message-----
From: Jerry Jalenak [mailto:Jerry.Jalenak@LABONE.com]
Sent: Tuesday, May 20, 2003 11:10 AM
To: 'struts-user@jakarta.apache.org'
Subject: logic:iterate indexId
What doesn't this work? Or am just being dense today?
<nested:iterate indexId="ndx" property="myProperty"><br>
<nested:checkbox property="myCheckbox"
onclick="selectOnOff(<%= ndx%>)" />
</nested:iterate>
What I end up with in the rendered HTML is
<input type="checkbox" name="myProperty[0].myCheckbox" value="on"
onclick="selectOnOff(<%= ndx%>)">
The <%= ndx%> isn't being interpreted correctly. What am I missing?
Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS 66219
(913) 577-1496
jerry.jalenak@labone.com
This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at the following email address:
securityincidentreporting@labone.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org