com.sun.rave.web.ui.renderer
Class MessageRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by com.sun.rave.web.ui.renderer.AbstractRenderer
          extended by com.sun.rave.web.ui.renderer.MessageRenderer

public class MessageRenderer
extends AbstractRenderer

This class is responsible for rendering the Message component.


Field Summary
 
Fields inherited from class com.sun.rave.web.ui.renderer.AbstractRenderer
BUNDLE, EVENTS_ATTRIBUTES, I18N_ATTRIBUTES
 
Constructor Summary
MessageRenderer()
           
 
Method Summary
protected  void renderEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, javax.faces.context.ResponseWriter writer)
          Renders the Message component.
 void renderMessage(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, javax.faces.context.ResponseWriter writer, javax.faces.application.FacesMessage fMsg)
          Renders the Message text
 
Methods inherited from class com.sun.rave.web.ui.renderer.AbstractRenderer
addBooleanAttributes, addCoreAttributes, addIntegerAttributes, addStringAttributes, decode, encodeBegin, encodeChildren, encodeEnd, getApplication, getAsObject, getAsString, getExternalContext, getFacesContext, getSubmittedValue, isDisabled, isPortlet, isReadOnly, renderAttributes, renderMarkup, renderStart, setSubmittedValue
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, getConvertedValue, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageRenderer

public MessageRenderer()
Method Detail

renderEnd

protected void renderEnd(javax.faces.context.FacesContext context,
                         javax.faces.component.UIComponent component,
                         javax.faces.context.ResponseWriter writer)
                  throws java.io.IOException
Renders the Message component.

Overrides:
renderEnd in class AbstractRenderer
Parameters:
context - FacesContext for the current request
component - UIComponent to be rendered
writer - ResponseWriter to which the element end should be rendered
Throws:
java.io.IOException - if an input/output error occurs

renderMessage

public void renderMessage(javax.faces.context.FacesContext context,
                          javax.faces.component.UIComponent component,
                          javax.faces.context.ResponseWriter writer,
                          javax.faces.application.FacesMessage fMsg)
                   throws java.io.IOException
Renders the Message text

Parameters:
context - The current FacesContext
component - The Message object to use
writer - The current ResponseWriter
fMsg - The FacesMessage message
Throws:
java.io.IOException - if an input/output error occurs