Easiest thing for you to do is to create a custom component that does
this. Something like

public class MyBookmarkableLink extends WebMarkupContainer {

  private final Class pageClass;
  private final PageParameters parameters;

  ...

  protected void onComponentTag(final ComponentTag tag) {
    String url = urlFor(pageClass, parameters);
    tag.put("onclick", "window.location.href='" + url + "';return false;");
  }
}


Eelco

On 5/28/07, Alexey Maksimov <[EMAIL PROTECTED]> wrote:
> Hi,
>
> how to make a bookmarkable link in wicket to render as
> <a href="#" ...></a> ?
> I actually want to put a specific javascript in onclick(),
> that should work without reloading a page.
>
> Thanks in advance,
> Alexey.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to