How about having a new annotation ?? @OnEvents( { @OnEvent(...), @OnEvent(...) })
On Wed, Aug 3, 2011 at 4:22 AM, nillehammer <tapestry.nilleham...@winfonet.eu> wrote: > You could implement one method that is called by your two event handlers. > E.g. > > @OnEvent(EventConstants.ACTIVATE) > final void callEventHandlerFromActivate() { > this.doTheWork(); > } > > @OnEvent("yourAjaxEvent") > final void callEventHandlerFromMyAjaxEvent() { > this.doTheWork(); > } > > private final void doTheWork() { > ... > } > > > ----- > http://www.winfonet.eu > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Specifying-several-event-constants-for-the-OnEvent-annotation-tp4659025p4660584.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 > > -- regards Taha Hafeez Siddiqi (tawus) http://tawus.wordpress.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org