Hi Erik, You should look at aTag.getAttributes as if it is a Map. If you do an 'add' you replace the existing value.
You can either do a get first and add your value, or use the behavior wicket.AttributeModifier. Regards, Erik. Erik Brakkee schreef: > Hi, > > > I want to add an additional "class" value to the class attritbute of a > tag in onComponentTag(): > > aTag.getAttributes().add("class", "newvalue"); > > Looking at the javadocs, this seems to be supported. Nevertheless, > while rendering only the first value is rendered (see > ValueMap.getCharSequence()). > > Now what is the point of supporting multiple attributes in the add() > method and not supporting them while rendering? I am confused.... > > Cheers > Erik > > ------------------------------------------------------------------------- > 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&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ ------------------------------------------------------------------------- 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&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user