Anyone??

On 9/26/07, daniel ccss <[EMAIL PROTECTED]> wrote:
>
> Thanks, but how can I have two <h:messages one for errors and one for
> messages??
>
> On 9/26/07, Kito D. Mann <[EMAIL PROTECTED] > wrote:
> >
> >    *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 - 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 *
> >
> >
> >
> >
> >
> >
> >
>
>

Reply via email to