org.apache.tapestry5.corelib.components.Trigger.xdoc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tapestry-core Show documentation
Show all versions of tapestry-core Show documentation
Central module for Tapestry, containing interfaces to the Java
Servlet API and all core services and components.
In this example, we are showing how to trigger an event from the template of a page. When the following page is rendered
the both instances of the component Trigger publish an arbitrary event.
Inside the handler method for the event addAdditionalScriptLinks we add a link to a JavaScript file.
The handler method for the event provideAdditionalMarkup provides some additional markup.
The MarkupWriter is passed as the event context.