Why not just split out the autolinking behaviour into a subclass that uses Link.isenabled() to implement the autolinking?
-Igor > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:wicket-user- > [EMAIL PROTECTED] On Behalf Of Eelco Hillenius > Sent: Thursday, September 29, 2005 12:25 AM > To: wicket-user@lists.sourceforge.net > Subject: Re: [Wicket-user] hi and ... question :-) > > Yep, we've looked into your RFE but didn't fix it yet, as we did not > agree on how to fix it then. I think we do now. I'll take another look > at this tomorrow hopefully. > > Eelco > > On 9/29/05, Gili <[EMAIL PROTECTED]> wrote: > > > > First, +1 for making autolink off by default. I think just about > every > > newbie out there got whacked by this unexpected behavior. > > > > The ability to override Link.isEnabled() is nice, but still > doesn't fix > > the autolink issue. New users will expect myLink.setEnabled(true) to > > work without any surprises... as it should. > > > > Also, remember the RFE I filed a while back that showed how we > could > > keep autolink enabled by default but make setEnabled(true) work as > > expected? How about that? > > > > Gili > > > > Eelco Hillenius wrote: > > > I just made Link.isEnabled non final so that users can more easily > > > customize on/off behaviour. I had a problem with this myself today, > > > but it should also make it easier to tackle your issue. > > > > > > Eelco > > > > > > > > > On 9/28/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > > > >>I think autoenabled should default to false. Too many users are having > > >>problems with this. Votes? > > >> > > >>Eelco > > >> > > >> > > >>On 9/28/05, Dipu <[EMAIL PROTECTED]> wrote: > > >> > > >>>try setting Link.setAutoEnable(false) > > >>> > > >>> > > >>>----- Original Message ----- > > >>>From: "Dorel Vaida" <[EMAIL PROTECTED]> > > >>>To: <wicket-user@lists.sourceforge.net> > > >>>Sent: Wednesday, September 28, 2005 12:53 PM > > >>>Subject: Re: [Wicket-user] hi and ... question :-) > > >>> > > >>> > > >>> > > >>>>Eelco Hillenius wrote: > > >>>> > > >>>> > > >>>>>You can make the links 'stable' by working with bookmarkable pages. > > >>>>>For the public part of your menu, that's probably a good idea > anyway. > > >>>>> > > >>>>>Eelco > > >>>>> > > >>>>> > > >>>> > > >>>>Well, it happens that three of the menus point to the exact same > Class as > > >>>>the page class. And when One of them is selected, the link disapears > from > > >>>>the other two as well ! I imagine this is because wicket assumes > that a > > >>>>page has one class but I'd want to use the same page class and > render the > > >>>>content dynamically from the database. So I'll have 3 menus (links) > > >>>>pointing to the same page class but with different params. But, as I > said, > > >>>>when one of them is selected, the other two anchors are disabled > (not > > >>>>rendered as it seems fro mthe source). And ... I don't want that :-) > > >>>> > > >>>> > > >>>>>On 9/28/05, Dorel Vaida <[EMAIL PROTECTED]> wrote: > > >>>>> > > >>>>> > > >>>>>>Hi, there > > >>>>>>This is my first post to the list so I'd like to say hello to > everybody > > >>>>>>:-) > > >>>>>> > > >>>>>>I have 1 question regarding wicket, though: > > >>>>>> > > >>>>>>I'm generating my menu links from the database. The problem I face > is > > >>>>>>that the generated (by wicket) link is different every time so the > > >>>>>>styles for anchors (<a href="" />) are pretty messed up at each > display, > > >>>>>>they do not reflect the actual link status (visited etc.). What > can I do > > >>>>>>about this ? > > >>>>>> > > >>>>>>Thanks > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>------------------------------------------------------- > > >>>>>>This SF.Net email is sponsored by: > > >>>>>>Power Architecture Resource Center: Free content, downloads, > discussions, > > >>>>>>and more. http://solutions.newsforge.com/ibmarch.tmpl > > >>>>>>_______________________________________________ > > >>>>>>Wicket-user mailing list > > >>>>>>Wicket-user@lists.sourceforge.net > > >>>>>>https://lists.sourceforge.net/lists/listinfo/wicket-user > > >>>>>> > > >>>>>> > > >>>>> > > >>>>> > > >>>>>------------------------------------------------------- > > >>>>>This SF.Net email is sponsored by: > > >>>>>Power Architecture Resource Center: Free content, downloads, > discussions, > > >>>>>and more. http://solutions.newsforge.com/ibmarch.tmpl > > >>>>>_______________________________________________ > > >>>>>Wicket-user mailing list > > >>>>>Wicket-user@lists.sourceforge.net > > >>>>>https://lists.sourceforge.net/lists/listinfo/wicket-user > > >>>>> > > >>>>> > > >>>> > > >>>> > > >>>> > > >>>>------------------------------------------------------- > > >>>>This SF.Net email is sponsored by: > > >>>>Power Architecture Resource Center: Free content, downloads, > discussions, > > >>>>and more. http://solutions.newsforge.com/ibmarch.tmpl > > >>>>_______________________________________________ > > >>>>Wicket-user mailing list > > >>>>Wicket-user@lists.sourceforge.net > > >>>>https://lists.sourceforge.net/lists/listinfo/wicket-user > > >>>> > > >>> > > >>> > > >>> > > >>>------------------------------------------------------- > > >>>This SF.Net email is sponsored by: > > >>>Power Architecture Resource Center: Free content, downloads, > discussions, > > >>>and more. http://solutions.newsforge.com/ibmarch.tmpl > > >>>_______________________________________________ > > >>>Wicket-user mailing list > > >>>Wicket-user@lists.sourceforge.net > > >>>https://lists.sourceforge.net/lists/listinfo/wicket-user > > >>> > > >> > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: > > > Power Architecture Resource Center: Free content, downloads, > discussions, > > > and more. http://solutions.newsforge.com/ibmarch.tmpl > > > _______________________________________________ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > -- > > http://www.desktopbeautifier.com/ > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: > > Power Architecture Resource Center: Free content, downloads, > discussions, > > and more. http://solutions.newsforge.com/ibmarch.tmpl > > _______________________________________________ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user