I guess it wouldn't be too hard to satisfy both camps?  if setLink() isn't called, look in the template to see if an anchor was indicated.  if setLink() was called, use the passed value.  Is that too much black magic?

On Thu, 2006-05-11 at 19:16 +0300, Ali Zaid wrote:
Hay Guys;

Glad you like the idea, as for adding a setter, I don't think it's any
different than overridding the method as above, as wicket always does,
it uses what in HTML, and this will help in design time too.

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="" 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
> > > > Wicket-user@lists.sourceforge.net
> > > >
> 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
> > > Wicket-user@lists.sourceforge.net
> > >
> 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
> > Wicket-user@lists.sourceforge.net
> > 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_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-- 
Philip A. Chapman

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

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to