Of course you can always override them in CSS as well.
/* FEEDBACK MESSAGES */
.feedbackMessages {
padding-left: 0;
padding-top: 0;
text-align: left;
margin-left: 0;
margin-top: 0;
padding-bottom: 1em;
}
.feedbackMessages div {
padding: 0.5em;
font-size: xx-small;
border: none;
}
.feedbackMessages div.feedbackPanelERROR {
background-color: lightsalmon;
border: 1px solid darkred;
}
.feedbackMessages div.feedbackPanelWARNING {
background-color: #FFB90F;
border: 1px solid darkgoldenrod;
}
.feedbackMessages div.feedbackPanelINFO {
background-color: lightgreen;
border: 1px solid darkgreen;
}
~ Thank you,
Paul Bors
-----Original Message-----
From: Sebastien [mailto:[email protected]]
Sent: Wednesday, July 17, 2013 5:21 PM
To: [email protected]
Subject: Re: FeedbackPanel customization
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
<[email protected]>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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]