Feature Requests item #1445584, was opened at 2006-03-08 14:25
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1445584&group_id=119783
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.2
Status: Open
Priority: 5
Submitted By: Ali Zaid Anwar (allochi)
Assigned to: Nobody/Anonymous (nobody)
Summary: Get anchor name to be used with Link
Initial Comment:
I want to have a link that do some action by overriding
onClick, but after the action is done, I don't want
only to refresh the page I want it to jump to an anchor in
the same page (the anchor name is set in the link tag).
while this is easy, it involved hard code the anchor
name in java code, so what I do is:
@Override
protected String getURL() {
String url = super.getURL() + "#someWhereInThePage";
return url;
}
What I would suggest is to check the link href
attribute, if the attribute has something behind # then
it should do the above in the getURL of the super
class, if the href has nothing or only #, it should
not, so simple, but I guess it's more wicket sense than
what I'm doing now :)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1445584&group_id=119783
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop