Note that I need to set CSS styles on the label (<span>) and not the
list item (<li>) and hence cannot override getCSSClass() because it is
applied to both.

On Sat, Oct 20, 2012 at 2:58 PM, Alec Swan <alecs...@gmail.com> wrote:
> Hello,
>
> This Wiki page explains how to add custom CSS styles to Feedback
> messages in 1.4+:
> https://cwiki.apache.org/WICKET/css-enabled-feedback-panel.html
>
> Basically, it suggests that you override
> FeedbackPanel#newMessageDisplayComponent(..) method and add the custom
> CSS class to the component before returning it.
>
> However, this approach does not work in 1.5 because
> FeedbackPanel.MessageListView#populateItem calls
> FeedbackPanel#newMessageDisplayComponent(..) and then immediately adds
> an AttributeModifier that replaces CSS class that was set inside
> newMessageDisplayComponent().
>
> Is this a bug or Wiki is wrong?
> Is there any workaround without creating a custom FeedbackPanel?
>
> Thanks,
>
> Alec

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to