Hi,
Josh Canfield wrote:
Hi Chris, check out
http://tapestry.apache.org/tapestry5/tapestry-core/guide/mixins.html
You could implement the hypothetical "DefaultFromCookie" mixin.
Josh
Yes, that seems like it was intended for something similar to what I'd
like to do. I haven't looked deeply into the mixins, but I'm pretty sure
that they provide the bits i need in order to "load" the default from a
cookie.
I would also like to make the "save" of the cookie values happen in this
manner. But currently I'm a bit lost on how to trigger the code that
saves. Perhaps "event bubbling" does make certain of the form related
events available in the component, but if I understand the "one liner"
documentation the events are propagated from components towards the
page, not the other way around??
As I think I've read that the Form component "instructs" its components
to retrieve values and perform single field validation, I'm pretty sure
that there are some events going "into" the components, I just haven't
been able to figure out how to listen for them.
Could some1 offer an explanation of how the build in "Field" components
does their validation etc. or perhaps an example ;)
--
Chris
On Feb 18, 2008 11:52 AM, Chris Poulsen <[EMAIL PROTECTED]> wrote:
Btw. is it possible to hook up the "save to cookie"-step to an event
directly in the component? (No point in having to manually call the
saveToCookie() methods of the components from the page, if there is a
reasonable event to act on).
--
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]