I don't see why we can't have both, but really, I think we need to set
anchors in setResponsePage() too, it will be good for forms too.
On 5/11/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
What about both? Btw, I'm not sure whether anchor is the best name, as
any <a> tag technically is an anchor. That said, I wouldn't know an
alternative.
So, what we could do is use that property if it is set. If it is not
set we look at whether the attribute value starts with #, and when
that's not the case, we don't do anything.
Personally, if I have to choose between the two, I like the variant of
having it in the markup file better, as that is where your anchor
targets are defined in the first place. But I can think of cases where
you would want to do it programatically too.
Eelco
On 5/11/06, Andrew Berman <[EMAIL PROTECTED]> wrote:
> I'd rather have a setter added to Link called setAnchor which appends the
> #anchor automatically to the url.
>
>
> On 5/11/06, Vincent Jenks < [EMAIL PROTECTED]> 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="#clientPanel" 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
> >
> 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
--
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?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user