[ https://issues.apache.org/jira/browse/WICKET-2610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891623#action_12891623 ]
Erich Schreiner edited comment on WICKET-2610 at 7/23/10 10:42 AM: ------------------------------------------------------------------- I suggest to use an extended version of OddEvenListItem. Its default behaviour is as currently, but it offers an overloaded constructor that allows to switch it to "append" mode. (see attached patch) This could be used in your own code or in conjunction with an extended IMarkupSettings that could provide a global "append css" flag. The same would apply to class org.wicket.markup.repeater.OddEvenItem was (Author: ews): I suggest to use an extended version of OddEvenListItem. Its default behaviour is as currently, but it offers an overloaded constructor that allows to switch it to "append" mode. This could be used in your own code or in conjunction with an extended IMarkupSettings that could provide a global "append css" flag. > OddEvenListItem should append css attribute instead of replacing/adding it > -------------------------------------------------------------------------- > > Key: WICKET-2610 > URL: https://issues.apache.org/jira/browse/WICKET-2610 > Project: Wicket > Issue Type: Improvement > Components: wicket > Affects Versions: 1.4.4 > Reporter: Martin Simons > Priority: Minor > Fix For: 1.5-M1 > > Attachments: OddEvenListItem.java.patch > > > Title says it all: Right now OddEvenListItem simply adds the class attribute > without checking whether another one already exists, essentially overwriting > any style definition the designer might have added. Instead, the odd/even > classes should be appended as in AttributeAppender behavior. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.