On Tue, 2010-08-10 at 16:08 +0200, Leszek Gawron wrote:

> On 2010-08-10 15:11, Joe Hudson wrote:
> > Thank you very much for the response but my issue is not a simple as 
> > this....
> >
> > Say I have a page with navigation links and the page doesn't "know" about 
> > the navigation links because they are controlled by functionality provided 
> > in the superclass.  What I am trying to do is deal with the case where the 
> > user clicks a link of that type and intercept that event.  Does anyone have 
> > any advice?  Thanks.
> 
> Do you need to intercept the event or just as user for permission to 
> leave the page? If the latter:
> 
> https://cwiki.apache.org/WICKET/composite-behaviors.html


You can also find an implemented version of this behaviour here:

http://code.google.com/p/koodaripalvelut-wicket/

You would want the change detector project.



If your requirements are more conplex and you need to add a behavior to
that link specifically, (to do something on the server, you should just
add a AjaxEventBehaviour for that button, or simply do a
replace(Component) on your child page.

Reply via email to