[Wicket-user] Multi-valued class attribute in onComponentTag()/wicket 1.2.2

2006-11-13 Thread Erik Brakkee
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

Re: [Wicket-user] Multi-valued class attribute in onComponentTag()/wicket 1.2.2

2006-11-13 Thread Erik van Oosten
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

Re: [Wicket-user] Multi-valued class attribute in onComponentTag()/wicket 1.2.2

2006-11-13 Thread Martijn Dashorst
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