I think it would require a custom renderer, but I don't think it's as difficult as you suspect.
You'd need to subclass either org.apache.myfaces.renderkit.html.HtmlMessagesRenderer or org.apache.myfaces.renderkit.html.HtmlMessageRenderer and override renderSingleFacesMessage (actually in org.apache.myfaces.renderkit.html.HtmlMessageRendererBase). The new method would just be stripping out all of the styling information and outputting the javascript. Then you specify your new renderer class in the faces-config file. I've never written a custom renderer myself, but the process looks pretty simple. I suppose another way to do it would be to retrieve the messages out of the request map, and iterate over them manually, but that seems like a lot more difficult task. A custom renderer seems easier and more maintainable. On 11/10/05, Warren Bell <[EMAIL PROTECTED]> wrote: > I would like to take messages and place them into some JavaScript less the > HTML. Is there a way to render messages as text only, or would I have to > create a custom rederer? Writing a custom renderer will not happen, I am way > to new to JSF. > > Thanks, > > Warren Bell > >