Hi Scott,

It's doable, but not implemented as something standard in Wicket.
There is a feature request for it here:
http://sourceforge.net/tracker/index.php?func=detail&aid=1491239&group_id=119783&atid=684978

Basically, you can make a custom link that reads the href attribute
(href="#anAnchor"), and that appends that attribute to the URL.
Something like this:

                String anchor = getMarkupAttributes().getString("href");
                CharSequence url = urlFor(ILinkListener.INTERFACE);
                if (anchor != null) {
                        url = url.toString() + "#" + anchor;
                }
                return url;

should work I think.

Eelco


On 6/8/06, Scott Sauyet <[EMAIL PROTECTED]> wrote:
> I would like my PageLink to connect to a specific location in the called
> page, e.g., to
>
>      http://localhost:8080/myapp/?path=1#my-fragment
>
> Is this doable?  I've been away from Wicket for a little while and think
> I've forgotten something simple.
>
>    -- Scott
>
>
>
>
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to