-
Notifications
You must be signed in to change notification settings - Fork 3
Publisher API
Dmitry Gusev edited this page May 23, 2013
·
1 revision
Publisher API implements publisher-subscriber pattern for Tapestry5 pages/components.
This may be useful for AJAX requests when you need to update zones in response to some event, but those zones located in other components on the same page.
Note that sometime you can do this without publisher API using event bubbling here, but in this case all handlers should be in parent hierarchy of original event handler.
You can also use @InjectComponent and call all handlers directly, but with Publisher API your code becomes less coupled.
Here's how this will be implemented using Publisher API: