struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrice" <ppich...@nerim.net>
Subject Re: Nested Iterate Tag and indexId problem
Date Mon, 25 Nov 2002 17:42:17 GMT
Perhaps I made a mistake, but nested tags are available since Struts 1.1: I
think they are not available on Struts 1.02.

Best regards
  Patrice

----- Original Message -----
From: <david.fields@abbott.com>
To: <struts-user-digest@jakarta.apache.org>
Cc: <struts-user@jakarta.apache.org>
Sent: Monday, November 25, 2002 6:33 PM
Subject: Nested Iterate Tag and indexId problem


> I am using the nested tags with Struts 1.02.
>
> I want to be able to dynamically set a call to a javascript function.  I
> want to pass in the row number to the function.
>
> I currently have....
>
>
> <nested:iterate property="asrTranList"
> type="abbott.ai.tcgm.entities.AsrTran" indexId="idx">
>         <tr>
>                 <td class="maintCenter">
>                         <nested:text property="actionCode" maxlength="1"
> size="1" styleClass="maintWidth1"
>  onchange="makeEditDirty('hideOnEdit','showOnEdit','<bean:write name="idx"
> scope="page" />');"
>                                 onkeyup="return autoTab(this, 1, event);"
> />
>                 </td>
>         </tr>
> </nested:iterate>
>
> This does not work.
>
>
> I have also tried
>
> <nested:iterate property="asrTranList"
> type="abbott.ai.tcgm.entities.AsrTran" indexId="idx">
>         <tr>
>                 <td class="maintCenter">
>                         <nested:text property="actionCode" maxlength="1"
> size="1" styleClass="maintWidth1"
>  onchange="makeEditDirty('hideOnEdit','showOnEdit','<%="idx"%>');"
>                                 onkeyup="return autoTab(this, 1, event);"
> />
>                 </td>
>         </tr>
> </nested:iterate>
>
> It does not work either.
>
> It is looking to me like a bug with the nested tags.  They sure have been
> very useful.  I would hate to change all the code back at this point.
>
> Why can I use a regular jsp <%=idx%> to get the value of the indexId from
> the iterate tag?
>
> Thanks.
>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message