Link:
protected final void onComponentTag(final ComponentTag tag)
{
// Default handling for tag
super.onComponentTag(tag);
// Set href to link to this link's linkClicked method
CharSequence url = "">
String maybeAnchor = tag.getAttributes().getString("href");
if(maybeAnchor != null && maybeAnchor.startsWith("#"))
{
// it is anchor append it to url:
url = "" + maybeAnchor;
}
On 5/11/06, Ali Zaid
<[EMAIL PROTECTED]> wrote:
Hay Guys;
I was testing RC3 and I have noticed that anchors are not implemented,
I think I file a request for this, let me explain
if I have a link that say
<a href="" wicket:id="newClinetLink" >new Client</a>
when redirect to the new client page it should jump to that anchor,
the way I do it now is
@Override
protected CharSequence getURL() {
return super.getURL() + "#clientPanel";
}
I think link should be able to read the what's in href and do that
automatically ;), I think this is more wicket way than have to inser
some html thing in java.
--
Regards, Ali
-----
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D
-------------------------------------------------------
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?cmdlnk&kid0709&bid&3057&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
