It's a nice feature... for Tapestry. We don't need such use of annotations because we have 'just Java objects' to do stuff like that. For instance, Wicket's equivalent of:
@EventListener(elements = "myFavoriteDiv", events = "onMouseOver") public void watchText() { // do something } is: myFavoriteDiv.add(new AjaxEventBehavior("onmouseover") { protected void onEvent(final AjaxRequestTarget target) { // do something } }); If you ask me, that's more object oriented, and I like the fact that it is plain Java (thus no Java 5 needed). Also, an advantage of using objects over annotations is that AjaxEventBehavior can be extended and easily customized for reusable behaviors. Annotations weren't build with that in mind. Wicket 1.3 - when we start on that - will still be Java 1.4 based, like any 1.x will be. Wicket 2.0 (see trunk) is based on Java 5. We might use annotations if we have a good reason to do so, but currently we mainly use Java 5's generics support to allow you to create typed models and components. Eelco On 01 Aug 2006 12:51:47 -0700, Sean Sullivan <[EMAIL PROTECTED]> wrote: > > This is an innovative feature in Tapestry 4.1: > > http://tapestry.apache.org/tapestry4.1/ajax/EventListener.html > > Is the Wicket framework going to adopt annotations? Will annotations be > included with Wicket 1.3? > > Sean > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Wicket-develop mailing list > Wicket-develop@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-develop > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop