You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Howard M. Lewis Ship" <hl...@attbi.com> on 2003/04/23 18:38:39 UTC
RE: Problems with reloading a page with a form
Your rewind (the form submission) must match your rewind.
When controls within the form affect how the form renders, you must double
buffer.
Have the RadioGroup update a secondary property. Update the real property
from the form's listener method.
--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry
> -----Original Message-----
> From: Vladimir [mailto:vlad@profitsoft.com.ua]
> Sent: Wednesday, April 23, 2003 3:00 PM
> To: Tapestry users
> Subject: Problems with reloading a page with a form
>
>
> Hello, Tapestry users and developers!
> Could you help me with a small problem? I have a form, and
> some fields are
> optional. I have 2 radiobuttons on the form and the optional
> fields are
> shown depending on the choice of the radiobutton.
>
> <span jwcid="@RadioGroup" selected="ognl:visit.intValue">
> <input jwcid="@Radio" value="ognl:@my.Visit@NEIN"
> onClick="reload()"/> nein
> <input jwcid="@Radio" value="ognl:@my.Visit@JA"
> onClick="reload()"/> ja
> </span><br/><br/>
> ...........
> <span jwcid="@Conditional" condition="ognl:nested"><!---
> page.isNested =
> true if (visit.intValue==1) -->
> <span jwcid="@FieldLabel" field="ognl:components.inputString2"/>
> <input jwcid="inputString2"/><br/><br/>
> </span>
>
> So, when a user click one of radiobuttons, the form should be
> submitted and
> the page should be reloaded. But I have a problem with the
> StaleLinkException: it is thrown when the form is rewinding
> because its
> parameters don't match the expected:
>
> Rewind of form Start/$Form expected allocated id #4 to be
> 'inputString2',
> but was '$ImageSubmit' (requested by component Start/$ImageSubmit).
>
> Does anybody knows how to solve this problem?
> Thank you,
> Vladimir Khalyavin, ProfITSoft Ltd.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>