org.apache.myfaces.component.html.ext
Class AbstractHtmlMessages

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIMessages
              extended by javax.faces.component.html.HtmlMessages
                  extended by org.apache.myfaces.component.html.ext.AbstractHtmlMessages
All Implemented Interfaces:
javax.faces.component.StateHolder, EventAware, ForceIdAware, MessageProperties, UniversalProperties, UserRoleAware
Direct Known Subclasses:
HtmlMessages

public abstract class AbstractHtmlMessages
extends javax.faces.component.html.HtmlMessages
implements UserRoleAware, MessageProperties, ForceIdAware, EventAware, UniversalProperties

MyFaces extension to the standard messages tag: see showInputLabel attribute. Unless otherwise specified, all attributes accept static values or EL expressions.

Since:
1.1.7
Version:
$Revision: 691856 $ $Date: 2008-09-03 21:40:30 -0500 (Wed, 03 Sep 2008) $
Author:
Thomas Spiegl (latest modification by $Author: lu4242 $), Manfred Geiler

Field Summary
static java.lang.String COMPONENT_TYPE
           
static java.lang.String DEFAULT_RENDERER_TYPE
           
 
Fields inherited from class javax.faces.component.html.HtmlMessages
COMPONENT_FAMILY
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Fields inherited from interface org.apache.myfaces.component.UserRoleAware
ENABLED_ON_USER_ROLE_ATTR, VISIBLE_ON_USER_ROLE_ATTR
 
Constructor Summary
AbstractHtmlMessages()
           
 
Method Summary
 java.lang.String getClientId(javax.faces.context.FacesContext context)
           
 boolean getForceSpan()
           
abstract  java.lang.String getGlobalSummaryFormat()
          Like summaryFormat, but applies to global messages (i.e.
 boolean isRendered()
           
 
Methods inherited from class javax.faces.component.html.HtmlMessages
getDir, getErrorClass, getErrorStyle, getFamily, getFatalClass, getFatalStyle, getInfoClass, getInfoStyle, getLang, getLayout, getStyle, getStyleClass, getTitle, getWarnClass, getWarnStyle, isTooltip, restoreState, saveState, setDir, setErrorClass, setErrorStyle, setFatalClass, setFatalStyle, setInfoClass, setInfoStyle, setLang, setLayout, setStyle, setStyleClass, setTitle, setTooltip, setWarnClass, setWarnStyle
 
Methods inherited from class javax.faces.component.UIMessages
isGlobalOnly, isShowDetail, isShowSummary, setGlobalOnly, setShowDetail, setShowSummary
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.myfaces.component.UserRoleAware
getEnabledOnUserRole, getVisibleOnUserRole, setEnabledOnUserRole, setVisibleOnUserRole
 
Methods inherited from interface org.apache.myfaces.component.html.ext.MessageProperties
getDetailFormat, getSummaryFormat, isForceSpan, isReplaceIdWithLabel, setDetailFormat, setForceSpan, setReplaceIdWithLabel, setSummaryFormat
 
Methods inherited from interface org.apache.myfaces.component.ForceIdAware
isForceId, isForceIdIndex, setForceId, setForceIdIndex
 
Methods inherited from interface org.apache.myfaces.component.EventAware
getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup
 
Methods inherited from interface org.apache.myfaces.component.UniversalProperties
getDir, getLang, getTitle
 

Field Detail

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values

DEFAULT_RENDERER_TYPE

public static final java.lang.String DEFAULT_RENDERER_TYPE
See Also:
Constant Field Values
Constructor Detail

AbstractHtmlMessages

public AbstractHtmlMessages()
Method Detail

getClientId

public java.lang.String getClientId(javax.faces.context.FacesContext context)
Overrides:
getClientId in class javax.faces.component.UIComponentBase

isRendered

public boolean isRendered()
Overrides:
isRendered in class javax.faces.component.UIComponentBase

getForceSpan

public boolean getForceSpan()

getGlobalSummaryFormat

public abstract java.lang.String getGlobalSummaryFormat()
Like summaryFormat, but applies to global messages (i.e. messages not associated with a component). If no globalSummaryFormat is given, the summaryFormat is used for global messages. Example: "{0}:"



Copyright © 2011 The Apache Software Foundation. All Rights Reserved.