Or use the AttributeAppender Martijn
On 11/13/06, Erik van Oosten <[EMAIL PROTECTED]> wrote: > 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 > -- <a href="http://www.thebeststuffintheworld.com/vote_for/wicket">Vote</a> for <a href="http://www.thebeststuffintheworld.com/stuff/wicket">Wicket</a> at the <a href="http://www.thebeststuffintheworld.com/">Best Stuff in the World!</a> ------------------------------------------------------------------------- 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