Re: [Wicket-user] Custom AttributeModifier - Add attribute even when not pre-existing?
Or use the constructor with the boolean argument and provide true. Eelco On 12/19/06, Martijn Dashorst [EMAIL PROTECTED] wrote: Use SimpleAttributeModifier instead, or in the case of appending the value to your attribute, use AttributeAppender Martijn On 12/19/06, Jonathan Sharp [EMAIL PROTECTED] wrote: I wrote a custom AttributeModifier as below and it works great if there's an existing CSS class attached to a tag. Is there another method I could implement? c.add(new AttributeModifier(class, new Model(cls)) { private static final long serialVersionUID = 1L; protected String newValue(final String currentValue, final String replacementValue) { System.out.println(Current, New: + currentValue + , + replacementValue); return + replacementValue + + currentValue; } }); Cheers, -js - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket Wicket 1.2.3 is as easy as 1-2-3. Download Wicket now! http://wicketframework.org - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Custom AttributeModifier - Add attribute even when not pre-existing?
I wrote a custom AttributeModifier as below and it works great if there's an existing CSS class attached to a tag. Is there another method I could implement? c.add(new AttributeModifier(class, new Model(cls)) { private static final long serialVersionUID = 1L; protected String newValue(final String currentValue, final String replacementValue) { System.out.println(Current, New: + currentValue + , + replacementValue); return + replacementValue + + currentValue; } }); Cheers, -js - 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Custom AttributeModifier - Add attribute even when not pre-existing?
Use SimpleAttributeModifier instead, or in the case of appending the value to your attribute, use AttributeAppender Martijn On 12/19/06, Jonathan Sharp [EMAIL PROTECTED] wrote: I wrote a custom AttributeModifier as below and it works great if there's an existing CSS class attached to a tag. Is there another method I could implement? c.add(new AttributeModifier(class, new Model(cls)) { private static final long serialVersionUID = 1L; protected String newValue(final String currentValue, final String replacementValue) { System.out.println(Current, New: + currentValue + , + replacementValue); return + replacementValue + + currentValue; } }); Cheers, -js - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket Wicket 1.2.3 is as easy as 1-2-3. Download Wicket now! http://wicketframework.org - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user