Josh,

If you use default FeedbackPanel that's already done for you, as
following method shows...

protected String getCSSClass(final FeedbackMessage message)
        {
                return "feedbackPanel" + message.getLevelAsString();
        }

So, all you have to do is add CSS  for  'li.feedbackPanelERROR',
'li.feedbackPanelERRORDEBUG'... and so on... If you need other CSS
classes for specific panel then you could override that method.

Regards,

Ernesto

On Thu, Jul 15, 2010 at 10:29 AM, Josh Kamau <joshnet2...@gmail.com> wrote:
> Hi guys;
>
> I would like to change the CSS style of my feedback component depending on
> whether its error or info.
>
> How do do that? How do i modify the css class or id attribute of a
> component.
>
> Regards.
>
> Josh.
>

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

Reply via email to