-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>> onPrepare() is called before data binding, but it is called
>> again after data binding. So simple initialization code in
>> onPrepare() would overwrite the form data with the default.
> 
> This isn't correct. It's called once per request. And Tapestry
> uses redirect-after-post, so the form submission and the form
> rendering are never in the same request (unless you're doing the
> submission though AJAX).

Thanks for pointing this out.

But since I am using AJAX - does anyone have a recommendation for
where to put the initializations?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+j0UgACgkQbmZsMyUPuXSm6wCg5u/kipZWwTLRoctYo9t01cEy
4wgAoMV7c0msm2Xp5YeEcnDX3tJWKsIF
=NdrG
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to