The only reason why I like the setAnchor over overriding the getUrl() method is that it gives it a more standard feel to add anchors.  Overriding getUrl() to me signifies that you really want to do something more complicated to the URL than just adding an anchor.  Just my two cents.

On 5/11/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
yeah

<a href="" wicket:id="blah">

you need that # so the link renders like a link when you preview in the browser.

-Igor


On 5/11/06, Philip A. Chapman <[EMAIL PROTECTED]> wrote:
You might want to check for content after the #.  As a general rule, I put "#" in the href of my template's <a> tags.  I picked that up from examples and such.  I think it'd work fine to have the # hanging on the end, but there's no need for it.


On Thu, 2006-05-11 at 08:21 -0600, Vincent Jenks wrote:
+1 - I think that's pretty cool!

Couldn't that be done w/ an ExternalLink?  AttributeModifier?

On 5/11/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> Yeah, I like that idea. So, if the contents of the url start with #,
> we append that to the url... that's the idea, right?
>
> What do other people think/ votes?
>
> Eelco
>
>
> 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

> >
>
>
> -------------------------------------------------------
> 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

>


-------------------------------------------------------
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
-- 
Philip A. Chapman

Desktop and Web Application Development:
Java, .NET, PostgreSQL, MySQL, MSSQL
Linux, Windows 2000, Windows XP

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQBEY2VwAdpynRSGw3URAvbBAJ9pFQxk7MKs7AgmZcLMDj7oD2agfQCcCsrI
ybI6wST1Z1xCxPWPfhVVEWQ=
=TINi
-----END PGP SIGNATURE-----




Reply via email to