org.apache.myfaces.renderkit.html
Class HtmlMessageRendererBase

java.lang.Object
  |
  +--javax.faces.render.Renderer
        |
        +--org.apache.myfaces.renderkit.html.HtmlRenderer
              |
              +--org.apache.myfaces.renderkit.html.HtmlMessageRendererBase
Direct Known Subclasses:
HtmlMessageRenderer, HtmlMessageRenderer, HtmlMessagesRendererBase

public abstract class HtmlMessageRendererBase
extends HtmlRenderer

Version:
$Revision: 1.12 $ $Date: 2005/01/26 13:27:16 $ $Log: HtmlMessageRendererBase.java,v $ Revision 1.12 2005/01/26 13:27:16 mmarinschek The x:message tags are now extended to use the column-name as a label for all inputs in an x:dataTable, without having to specify additional information. Revision 1.11 2005/01/22 19:47:44 mmarinschek Message rendering updated - if a validation exception needs to be rendered, the id of the component is replaced with a label. Revision 1.10 2004/12/23 13:03:09 mmarinschek id's not rendered (or not conditionally rendered); changes in jslistener to support both ie and firefox now Revision 1.9 2004/10/13 11:51:01 matze renamed packages to org.apache Revision 1.8 2004/09/02 17:23:25 tinytoony fix for the span-element for other than the output-text Revision 1.7 2004/08/09 08:43:29 manolito bug #1004867 - h:message has duplicate attributes Revision 1.6 2004/07/01 22:00:57 mwessendorf ASF switch Revision 1.5 2004/04/05 09:11:03 manolito extended exception messages Revision 1.4 2004/04/01 12:43:18 manolito html nesting bug fixed Revision 1.3 2004/03/31 14:51:47 manolito summaryFormat and detailFormat support Revision 1.2 2004/03/31 13:25:24 manolito locale variable renamed Revision 1.1 2004/03/30 17:47:36 manolito Message and Messages refactored Revision 1.1 2004/03/30 13:24:58 manolito refactoring: HtmlComponentTag moved to share and renamed to HtmlComponentTagBase
Author:
Manfred Geiler (latest modification by $Author: mmarinschek $)

Constructor Summary
HtmlMessageRendererBase()
           
 
Method Summary
protected abstract  java.lang.String getDetail(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent message, javax.faces.application.FacesMessage facesMessage, java.lang.String msgClientId)
           
protected  java.lang.String getFor(javax.faces.component.UIComponent component)
           
protected  java.lang.String[] getStyleAndStyleClass(javax.faces.component.UIComponent message, javax.faces.application.FacesMessage.Severity severity)
           
protected abstract  java.lang.String getSummary(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent message, javax.faces.application.FacesMessage facesMessage, java.lang.String msgClientId)
           
protected  java.lang.String getTitle(javax.faces.component.UIComponent component)
           
protected  boolean isShowDetail(javax.faces.component.UIComponent component)
           
protected  boolean isShowSummary(javax.faces.component.UIComponent component)
           
protected  boolean isTooltip(javax.faces.component.UIComponent component)
           
protected  void renderMessage(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent message)
           
protected  void renderSingleFacesMessage(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent message, javax.faces.application.FacesMessage facesMessage, java.lang.String messageClientId)
           
 
Methods inherited from class org.apache.myfaces.renderkit.html.HtmlRenderer
encodeChildren
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, decode, encodeBegin, encodeEnd, getConvertedValue, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlMessageRendererBase

public HtmlMessageRendererBase()
Method Detail

getSummary

protected abstract java.lang.String getSummary(javax.faces.context.FacesContext facesContext,
                                               javax.faces.component.UIComponent message,
                                               javax.faces.application.FacesMessage facesMessage,
                                               java.lang.String msgClientId)

getDetail

protected abstract java.lang.String getDetail(javax.faces.context.FacesContext facesContext,
                                              javax.faces.component.UIComponent message,
                                              javax.faces.application.FacesMessage facesMessage,
                                              java.lang.String msgClientId)

renderMessage

protected void renderMessage(javax.faces.context.FacesContext facesContext,
                             javax.faces.component.UIComponent message)
                      throws java.io.IOException
java.io.IOException

renderSingleFacesMessage

protected void renderSingleFacesMessage(javax.faces.context.FacesContext facesContext,
                                        javax.faces.component.UIComponent message,
                                        javax.faces.application.FacesMessage facesMessage,
                                        java.lang.String messageClientId)
                                 throws java.io.IOException
java.io.IOException

getStyleAndStyleClass

protected java.lang.String[] getStyleAndStyleClass(javax.faces.component.UIComponent message,
                                                   javax.faces.application.FacesMessage.Severity severity)

getFor

protected java.lang.String getFor(javax.faces.component.UIComponent component)

getTitle

protected java.lang.String getTitle(javax.faces.component.UIComponent component)

isTooltip

protected boolean isTooltip(javax.faces.component.UIComponent component)

isShowSummary

protected boolean isShowSummary(javax.faces.component.UIComponent component)

isShowDetail

protected boolean isShowDetail(javax.faces.component.UIComponent component)