Re: [Wicket-user] Connecting to a document fragment through a PageLink

2006-06-10 Thread Scott Sauyet
Eelco Hillenius wrote: >> Unfortunately, this was just one little nice-to-have enhancement I >> thought I'd throw in while I was making changes. It works fine until I >> put the code into it's production environment, which means it's being >> called as part of a Plumtree portal. And there somethi

Re: [Wicket-user] Connecting to a document fragment through a PageLink

2006-06-10 Thread Eelco Hillenius
> Unfortunately, this was just one little nice-to-have enhancement I > thought I'd throw in while I was making changes. It works fine until I > put the code into it's production environment, which means it's being > called as part of a Plumtree portal. And there something falls apart > when I do

Re: [Wicket-user] Connecting to a document fragment through a PageLink

2006-06-10 Thread Scott Sauyet
Eelco Hillenius wrote: >> Somewhere I have to start naming these intermediate objects; the end of >> my statements are starting to look like Lisp code! :-) > > Of course, you don't *have* to use annonymous classes. Make a reusable > class, and see how much more readable your code will be :) I kn

Re: [Wicket-user] Connecting to a document fragment through a PageLink

2006-06-09 Thread Eelco Hillenius
> Somewhere I have to start naming these intermediate objects; the end of > my statements are starting to look like Lisp code! :-) Of course, you don't *have* to use annonymous classes. Make a reusable class, and see how much more readable your code will be :) > It works, and I guess that's what

Re: [Wicket-user] Connecting to a document fragment through a PageLink

2006-06-09 Thread Scott Sauyet
Eelco Hillenius wrote: > I think it is quite easy? If we implement that feature request it > would be easier as it would be build in. But so many hours in a day... > I actually forgot part of the code: [ ... ] Okay, now it was easy! [1] Thanks. Here's what I did: contents.add(new PageLink

Re: [Wicket-user] Connecting to a document fragment through a PageLink

2006-06-09 Thread Eelco Hillenius
I think it is quite easy? If we implement that feature request it would be easier as it would be build in. But so many hours in a day... I actually forgot part of the code: new Link("mylink") { protected CharSequence getURL() { String anchor = getMarkupAttributes().getString("href"); Cha

Re: [Wicket-user] Connecting to a document fragment through a PageLink

2006-06-09 Thread Scott Sauyet
Eelco Hillenius wrote: > 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: Thank you. I will take a look at it as soon as I can. Your code doesn't work out of the box for me, as I'm right

Re: [Wicket-user] Connecting to a document fragment through a PageLink

2006-06-09 Thread Eelco Hillenius
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"),