THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
This short snippet demonstrates a bit about how Tapestry operates. Pages and services within the application are injected with the @Inject annotation. The method names, onValidateFromForm()
and onSuccessFromForm()
, inform Tapestry about when each method is to be invoked. This naming convention identifies the event that is handled, ("validate" and "success") and the id of the component from which the event is triggered (the "form" component
Wiki Markup |
---|
{footnote}The component id can be omitted, leaving the method name {{onSuccess()}}, but that may cause confusion on a page that has multiple Form components triggering events, so it's best to be specific about the source of the event.{footnote} |
...