I thought about this option and it's possible, BUT, I still prefer using a
BookmarkablePageLink as it is easier and nicer (to me anyway). I have
PageParameters that are set to the Link (yes I know, I can set them to the
page).
The default linksTo is good for me.
So,
any idea or should I really use a simple Link ?
On Sun, Jun 15, 2008 at 1:08 PM, Frank Bille <[EMAIL PROTECTED]> wrote:
> 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
> >
>
--
Eyal Golan
[EMAIL PROTECTED]
Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74