Jeff Lubetkin <jefflub <at> zillow.com> writes:

> 
> Done.  http://wiki.apache.org/jakarta-tapestry/FormClientPersistence
> 
> I did that pretty quickly, so please let me know if you have any
> questions.
> 
> jeff
> 

But the question remains - why should PageLink EVER return state?  
How could the next page even read it?

Any takers?

Jeff, your solution is a beautifully simple workaround - 
@Persist("client:form") instructs Tapestry to send the data out (hidden 
on the page) and only return it when there's a POST (eg. by submit 
button on a form) but not a GET (eg. when PageLink, DirectLink, or 
ExternalLink is called). Jeff, have I got it right?

I've tried it and it looks like a very neat improvement on FormLinkRenderer - 
Jeff's solution writes the state only once to the html, whereas 
FormLinkRenderer writes it to the html once per link!)

Geoff



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

Reply via email to