From: daniel ccss [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 26, 2007 10:26 AM
To: MyFaces Discussion
Subject: Errors and Messages

 

Hi all,

I need to use a different style for showing messages and errors.

For my messages I use this in my bean
FacesContext.getCurrentInstance().addMessage(null, new
FacesMessage(message)); And this in the JSP  <h:messages
styleClass="messages"/> 

How can display errors in this way using a different style.

 

Look at the <h:messages> tag - there's an errorClass property.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kito D. Mann - Author, JavaServer Faces in Action
 <http://www.virtua.com/> http://www.virtua.com - JSF/Java EE consulting,
training, and mentoring
 <http://www.jsfcentral.com/> http://www.JSFCentral.com - JavaServer Faces
FAQ, news, and info



 

* Sign up for the JSF Central newsletter!
<http://oi.vresp.com/?fid=ac048d0e17> http://oi.vresp.com/?fid=ac048d0e17 *

 

 

 

Reply via email to