Did you add that to your page or component? add(TextTemplateHeaderContributor.forCss( Spinner.class, "Spinner.css", new Model( (Serializable) cssMap ) ));
(notice the add call) If you want to see this in action, take a look at wicket-contrib-yui(-examples) in the wicket-stuff repo (https://svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-yui) and check out the Slider component. Eelc On 11/17/06, Manuel Alejandro de Brito Fontes <[EMAIL PROTECTED]> wrote: > > Hi, I'm trying to do something similar like this > (http://chillenious.wordpress.com/tag/wicket/page/2/) but > instead of a "dynamic" javascript, i want to modify a css style. > The next code is similar to the previous page: > > Map<String, CharSequence> cssMap = new MiniMap<String, CharSequence>( 1 ); > cssMap.put( "fieldWidth", txtWidth ); > > TextTemplateHeaderContributor.forCss( Spinner.class, > "Spinner.css", new Model( (Serializable) cssMap ) ); > > That works perfect, because if I print the content of the template, the > ${fieldWidth} is replaced by 12. > System.out.println(TextTemplateHeaderContributor.forCss( > Spinner.class, "Spinner.css", new Model( (Serializable) cssMap ) )); > > > > > But I don't see the code in the header. I'm missing something?. > > I'm using 2.0-SNAPSHOT (checkout from today) > > > > > Thanks in advice. > > > > > > > > ------------------------------------------------------------------------- > 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 > [email protected] > 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 [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
