If you attach Links to other elements, like span, an onclick handler is generated. If you want to do the same, you should make a custom component that implements ILinkListener and override onComponentTag like this (simplified):
protected final void onComponentTag(final ComponentTag tag) { super.onComponentTag(tag); CharSequence url = getURL(); if (!isEnabled()) { tag.remove("onclick"); } else { tag.put("onclick", "location.href='" + url + "';"); } } Eelco On 9/13/06, Frank Bille <[EMAIL PROTECTED]> wrote: > Do you mean how to disable the link so it's not a link anymore? > > Link.setEnabled(false). > > The <a>something</a> is not valid html as far as I remember. > > Frank > > > > On 9/13/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote: > > > > > How du I make a Link Component (an hyperlink) render as > > <a>Link Name</a> without the href att > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user