Changing CSS classes

2010-07-15 Thread Josh Kamau
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.

Re: Changing CSS classes

2010-07-15 Thread Ernesto Reinaldo Barreiro
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