Well then, make the condition pesistent.
Or perhaps we need a component like ListEdit (which is a variation on
ForEach), that acts like a conditional, but records the condition as a
hidden field and uses the hidden field when rewinding (effectively, the
property is persistent, but persistent in the form).
Howard
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 11, 2002 5:14 AM
Subject: [Tapestry-developer] Conditional produces different results at
render and rewind time when binded to a non-persistent condition
> A Conditional component produces different results
> at render and rewind time when the condition isn't
> persistent and the condition is set like this:
>
> ...
> PageWithCondition nextPage = (PageWithCondition) cycle.getPage
> ("PageWithCondition");
> nextPage.setCondition(true);
> cycle.setPage(nextPage);
> return;
>
>
> This behaviour is really confusing when such a Conditional
> (with a non persistent condition) wraps a ValidField in a Form.
>
> Then the ValidField gets rendered, but the rewind drops it, the
> property of the ValidField is not set and a StaleLinkException is thrown.
>
>
> Michael
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Tapestry-developer mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/tapestry-developer
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer