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

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 String COMPONENT_TYPE
           
static String DEFAULT_RENDERER_TYPE
           
 
Fields inherited from class javax.faces.component.UIMessages
COMPONENT_FAMILY
 
Fields inherited from interface org.apache.myfaces.component.UserRoleAware
ENABLED_ON_USER_ROLE_ATTR, VISIBLE_ON_USER_ROLE_ATTR
 
Constructor Summary
AbstractHtmlMessages()
           
 
Method Summary
 String getClientId(javax.faces.context.FacesContext context)
           
 boolean getForceSpan()
           
abstract  String getGlobalSummaryFormat()
          Like summaryFormat, but applies to global messages (i.e.
 boolean isRendered()
           
 
Methods inherited from class javax.faces.component.html.HtmlMessages
getErrorClass, getErrorStyle, getFatalClass, getFatalStyle, getInfoClass, getInfoStyle, getLayout, getStyle, getStyleClass, getTitle, getWarnClass, getWarnStyle, isTooltip, restoreState, saveState, setErrorClass, setErrorStyle, setFatalClass, setFatalStyle, setInfoClass, setInfoStyle, setLayout, setStyle, setStyleClass, setTitle, setTooltip, setWarnClass, setWarnStyle
 
Methods inherited from class javax.faces.component.UIMessages
getFamily, 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, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
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 String COMPONENT_TYPE
See Also:
Constant Field Values

DEFAULT_RENDERER_TYPE

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

AbstractHtmlMessages

public AbstractHtmlMessages()
Method Detail

getClientId

public 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 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 © 2012 The Apache Software Foundation. All Rights Reserved.