If you want to do it in the calling code, use a normal Link and do a
redirect to the bookmarkable page afterwords.
Frank
On Sun, Jun 15, 2008 at 12:03 PM, Eyal Golan <[EMAIL PROTECTED]> wrote:
> Hi,
> I want to "override" the onClick of a BookmarkablePageLink.
> What I actually want is to subclass a BookmarkablePageLink so whenever the
> user clicks, I will do something an then will call the actual obClick.
>
> after checking in the API I saw that:
> /**
> * THIS METHOD IS NOT USED! Bookmarkable links do not have a click
> handler. It is here to
> * satisfy the interface only, as bookmarkable links will be dispatched
> by the handling servlet.
> *
> * @see org.apache.wicket.markup.html.link.Link#onClick()
> */
> public final void onClick()
> {
> // Bookmarkable links do not have a click handler.
> // Instead they are dispatched by the request handling servlet.
> }
>
> So how do I do a specific task whenever it is clicked?
>
> thanks
>
> --
> Eyal Golan
> [EMAIL PROTECTED]
>
> Visit: http://jvdrums.sourceforge.net/
> LinkedIn: http://www.linkedin.com/in/egolan74
>