editing error message from server

Hai all, i want to know whether it is possible to change the style of the error message. style means Font, Size, Color of the text that are validated in server and sent to browser using FacesMessage message=new FacesMessage(......);
[286 byte] By [Subrat.Ranjan.Raya] at [2007-11-26 19:17:48]
# 1
Use the style or styleClass attribute of your h:message tag.i.e:<h:message for="componentID" styleClass="cssClass" />CowKing
IamCowKinga at 2007-7-9 21:32:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Hai King,i am using h:messages tag and the messages are not editable for server-side messahes. please check it and tell.
Subrat.Ranjan.Raya at 2007-7-9 21:32:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

With h:messages you cannot set individual message style classes. If you need that much control, you probably should be using h:message anyways.

What you can do with h:messages, is set a different style class for different error severities. Use the errorClass, fatalClass, warnClass, and infoClass attributes.

So say you were to throw a validation error in one of your custom validation classes. You could set the message severity to something reasonable, and use the appropriate attribute on h:messages to change the style class for it.

CowKing

IamCowKinga at 2007-7-9 21:32:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Thanks King my problem is solved.
Subrat.Ranjan.Raya at 2007-7-9 21:32:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...