Hi, I have the following template:
...
<jwc id="i">
<jwc id="form">
<tr><td><jwc id="textfield"/><td><jwc id="submit"/></td></tr>
</jwc>
</jwc>
where i is a ForEach over a fixed list of beans, textfield is bound to a
property of the current bean of the iterator and submit submits (see
below).
The page renders fine, there are two forms, each displaying a different
bean. However, each form always writes its values to the very last bean
and not the one used while rendering. Isn't that what rewinding is
supposed to do ? (I put some prints into my Page class, the 'current'
property does not seem to be set during the submit).
I specified <static-binding name="direct">false</static-binding> for the
form but it didn't help.
I'm using Tapestry-2.0.5.
Can anyone jump in ?
Thanks
Matthias
<specification class="com.coremedia.tapestry.EditLocales">
<component id="i" type="Foreach">
<binding name="source" property-path="resources"/>
<binding name="value" property-path="current"/>
</component>
<component id="form" type="Form">
<binding property-path="listeners.onSubmit" name="listener"/>
<static-binding name="direct">false</static-binding>
</component>
<component id="submit" type="Submit">
<static-binding name="label">Submit</static-binding>
</component>
<component id="textfield" type="TextField">
<binding name="value" property-path="current.path"/>
</component>
</specification>
-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer