Interesting! How did tip.scoreHome render as tip.guessedScoreHome ?

On 4/23/06, martin <[EMAIL PROTECTED]> wrote:
> Hello
>
> I've a problem with indexed properties inside an iteration. Some of the
> properties are rendered as a text-area and should be editable by the
> user. The rendering goes fine but if the user makes some changes, they
> are not committed to the form. Please take a look at the jsp/html/java
> snippets below.
>
> I'm using Java 5 with Stuts 1.2.9 in a Tomcat 5.5.16
>
> Every hint is appreciated
> Cheers Martin
>
>
>
>
> [jsp snippet]
> <logic:iterate id="wrapper" indexId="wrapperIndex" name="myForm"
> property="wrappers" scope="session">
>   <td class="">
>     <html:text name="wrapper" property="tip.scoreHome" indexed="true"
> size="1" maxlength="2" />&nbsp;:&nbsp;
>     <html:text name="wrapper" property="tip.scoreVisitor"
> indexed="true" size="1" maxlength="2" />
>   </td>
> </logic:iterate>
>
> [rendered html]
>   <td class="">
>     <input type="text" name="wrapper[2].tip.guessedScoreHome"
> maxlength="2" size="1" value="23">&nbsp;:&nbsp;
>     <input type="text" name="wrapper[2].tip.guessedScoreVisitor"
> maxlength="2" size="1" value="">
>   </td>
>
> [action form snippet]
>     public void setWrappers(GameTipWrapper[] wrappers) {
>         this.wrappers = wrappers;
>     }
>
>     public GameTipWrapper getWrapper(int index) {
>         return wrappers[index];
>     }
>
>     public void setWrapper(int index, GameTipWrapper wrapper) {
>         wrappers[index] = wrapper;
>     }
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to