On Thu, Feb 12, 2009 at 3:05 AM, Inge Solvoll <inge.tapes...@gmail.com> wrote:
> Hi!
>
> I have a component that needs to listen to events from a form that resides
> in the containing page. The component takes care of viewing a list of
> selectable items, and this list and its PrimaryKeyEncoder needs to be
> initialized through the prepare event of the containing form.
>
> In my mind, it seems perfectly logical that form events like PREPARE and
> SUBMIT would trigger methods (onPrepare, onSubmit) in components inside the
> form component on the page. But in my setup now, only the onPrepare and
> onSubmit methods of the page is called.
>
> Where am I getting this wrong? Aren't components supposed to get access to
> form events from their containers?

Events propogate up, not down. So the events are triggered by the
Form, and move up to its container (the page).

>
> Regards
>
> Inge
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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

Reply via email to