Ok I think I found the answer: Event bubbling

Now my bigger problem is that I can't give the Form component inside the
Wizard component a dynamic id, because component ids are static.

What I was trying: (doesn't work)

Wizard.tml
------------

<t:Form t:id="${formId}">
...
</t:Form>

Wizard.java
-------------

public String getFormId() {
   return clientId+"Form";
}

boolean onSuccess() {  // --> Event bubbling
   return false;
}

Page.tml
----------

<t:Wizard t:id="wizard">
...
</t:Wizard>

Page.class
------------

void onSuccessFromWizardForm() { 
   ...
}


I hope this shows what I am trying.

Nathan



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/catch-events-from-Form-in-component-tp5717772p5717775.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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

Reply via email to