Hi
Actually you can only handle Validate event for the components declared in
'MyComponent'. During submission process each text field triggers an event
that can be handled by the parent components. In your case, if you have
field components inside 'MyComponent' you will be only allowed to handle
validate event from them.

Have a look at the processSubmission method in the AbstractTextField
component, this is where the validate event is triggered.

Regards
Christophe.

2009/10/14 sandeepraj singh <sandeepraj.si...@atosorigin.com>

>
> Hi,
> I have a scenario like below
>
> Page A.tml
> ======
>
> <t:form>
> <t:MyComponent/>
> <input t:type="submit" t:clientId="btSubmit" type="button" value="btSubmit"
> t:id="btSubmit"/>
> </t:form>
>
>
> Now, in the above i have noticed the behaviour as below
> 1) I am able to catch the validate event in side MyComponent.java
> 2) I am able to catch , validate, validateform,success, failure, submit
> events in PageA.java
> 3) No other event except for validate is able to be caught in
> MyComponent.java
>
> If the above observation is correct. Could someone please explain me the
> logic behind the way this works
> I mean, why should ONLY VALIDATE be able to be caught in components and no
> other events.
> --
> View this message in context:
> http://www.nabble.com/Tapestry5-Form-Validate%2C-Success%2CFailure%2C-Select-Events-tp25886432p25886432.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