Hi Daniel,

In such a case, you have to not use getCSSClass, but override
newMessageDisplayComponent instead.

You have a sample here:
https://github.com/sebfz1/wicket-jquery-ui/blob/master/wicket-jquery-ui/src/main/java/com/googlecode/wicket/jquery/ui/panel/JQueryFeedbackPanel.java
https://github.com/sebfz1/wicket-jquery-ui/blob/master/wicket-jquery-ui/src/main/java/com/googlecode/wicket/jquery/ui/panel/JQueryFeedbackPanel.html

Hope this help,
Sebastien.


On Wed, Jul 17, 2013 at 10:54 PM, Daniel Watrous <dwmaill...@gmail.com>wrote:

> Hi,
>
> I'm working on a modification of the FeedbackPanel to work better with my
> theme. I would like to prevent the class for the actual message from being
> appended to. Right now MessageListView is a private final class and
> the populateItem adds an AttributeModifier to both the label and the
> listItem.
>
> I know I can override getCSSClass, but that still sets it for both the
> label and listItem.
>
> I can't extend just MessageListView since it's private and final. Even if I
> could subclass that, the FeedbackPanel constructor is called before my
> subclass of FeedbackPanel, so that it has already used the original
> MessageListView.
>
> Can you think of a clean way to eliminate the AttributeListener on
> listItem?
>
> Daniel
>

Reply via email to