Re: [Wicket-user] Controlling 'class' parameter for a link element
use a attributemodifier for that.so something like: link.add(new AttributeModifier("class","yourclass"))On 7/25/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote:hi,I am now struggling with a new problem : I need to programmatically set the class attribute of a html link ( element). I tried to extend theLink element, but unfortunately, the onComponentTag method is final.(for some reasons, I cannot use another clickable element). Any idea ? Thanks,Pierre-Yves-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Controlling 'class' parameter for a link element
Thanks to Justin, Franck, Eelco and Igor for the instant answers ! I am now going to spend a few hours on the next problem before bothering you again ! Pierre-Yves Eelco Hillenius a écrit : > link.add(new SimpleAttributeModifier("class", "myclass")); > > or use AttributeModifier if you need more dynamic control. > > Eelco > > > On 7/24/06, Pierre-Yves <[EMAIL PROTECTED]> wrote: >> hi, >> >> I am struggling with a new problem : I need to programmatically set the >> class attribute of a html link ( element). I tried to extends the Link >> element, but unfortunately, the onComponentTag method is final. (For some >> reasons, I cannot use another clickable element). Any idea ? >> >> Thanks, >> >> Pierre-Yves >> >> -- >> View this message in context: >> http://www.nabble.com/Controlling-%27class%27-parameter-for-a-link-element-tf1994040.html#a5472727 >> Sent from the Wicket - User forum at Nabble.com. >> >> >> - >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys -- and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Controlling 'class' parameter for a link element
link.add(new SimpleAttributeModifier("class", "myclass")); or use AttributeModifier if you need more dynamic control. Eelco On 7/24/06, Pierre-Yves <[EMAIL PROTECTED]> wrote: > > hi, > > I am struggling with a new problem : I need to programmatically set the > class attribute of a html link ( element). I tried to extends the Link > element, but unfortunately, the onComponentTag method is final. (For some > reasons, I cannot use another clickable element). Any idea ? > > Thanks, > > Pierre-Yves > > -- > View this message in context: > http://www.nabble.com/Controlling-%27class%27-parameter-for-a-link-element-tf1994040.html#a5472727 > Sent from the Wicket - User forum at Nabble.com. > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Controlling 'class' parameter for a link element
use an attribute modifier, there are plenty examples on the list. woogle for it at http://woogle.billen.dk/search.link.add(new SimpleAttributeModifier("class","error")); for simple cases -IgorOn 7/24/06, Pierre-Yves <[EMAIL PROTECTED]> wrote: hi,I am struggling with a new problem : I need to programmatically set theclass attribute of a html link ( element). I tried to extends the Linkelement, but unfortunately, the onComponentTag method is final. (For some reasons, I cannot use another clickable element). Any idea ?Thanks,Pierre-Yves--View this message in context: http://www.nabble.com/Controlling-%27class%27-parameter-for-a-link-element-tf1994040.html#a5472727Sent from the Wicket - User forum at Nabble.com.- Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Controlling 'class' parameter for a link element
link.add(new SimpleAttributeModifier("class", "YOUR-CLASS-NAME")); Frank On Mon, 2006-07-24 at 11:20 -0700, Pierre-Yves wrote: > hi, > > I am struggling with a new problem : I need to programmatically set the > class attribute of a html link ( element). I tried to extends the Link > element, but unfortunately, the onComponentTag method is final. (For some > reasons, I cannot use another clickable element). Any idea ? > > Thanks, > > Pierre-Yves > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Controlling 'class' parameter for a link element
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Use an AttributeModifier on the Link. Pierre-Yves wrote: > hi, > > I am struggling with a new problem : I need to programmatically set the > class attribute of a html link ( element). I tried to extends the Link > element, but unfortunately, the onComponentTag method is final. (For some > reasons, I cannot use another clickable element). Any idea ? > > Thanks, > > Pierre-Yves > - -- Justin Lee http://www.antwerkz.com AIM : evan chooly Skype : evanchooly -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.1 (Cygwin) iD8DBQFExUi6JnQfEGuJ90MRA0s0AJ991belf8UX9wKGW863i5BcLaeoegCbBILS S32kUFw0uZ4MeLeAfffLWeQ= =ce6r -END PGP SIGNATURE- - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Controlling 'class' parameter for a link element
hi, I am now struggling with a new problem : I need to programmatically set the class attribute of a html link ( element). I tried to extend the Link element, but unfortunately, the onComponentTag method is final. (for some reasons, I cannot use another clickable element). Any idea ? Thanks, Pierre-Yves - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Controlling 'class' parameter for a link element
hi, I am struggling with a new problem : I need to programmatically set the class attribute of a html link ( element). I tried to extends the Link element, but unfortunately, the onComponentTag method is final. (For some reasons, I cannot use another clickable element). Any idea ? Thanks, Pierre-Yves -- View this message in context: http://www.nabble.com/Controlling-%27class%27-parameter-for-a-link-element-tf1994040.html#a5472727 Sent from the Wicket - User forum at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user