org.apache.myfaces.tobago.taglib.component
Class MessagesTag

java.lang.Object
  extended by javax.faces.webapp.UIComponentTag
      extended by org.apache.myfaces.tobago.taglib.component.TobagoTag
          extended by org.apache.myfaces.tobago.taglib.component.MessagesTag
All Implemented Interfaces:
JspTag, Tag, MessagesTagDeclaration, TobagoTagDeclaration, HasBinding, HasFor, HasId, HasIdBindingAndRendered, IsRendered

public class MessagesTag
extends TobagoTag
implements MessagesTagDeclaration


Field Summary
 
Fields inherited from class javax.faces.webapp.UIComponentTag
pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
MessagesTag()
           
 
Method Summary
 String getComponentType()
           
 String getFor()
           
 void release()
           
 void setConfirmation(String confirmation)
          Should the user confirm the message explicitly.
 void setFor(String forComponent)
          Id of the component, this is related to.
 void setGlobalOnly(String globalOnly)
          Flag indicating that only messages that are not associated to any particular UIComponent should be displayed.
 void setMaxNumber(String maxNumber)
          Sets the maximum number of messages to show.
 void setMaxSeverity(String maxSeverity)
          Sets the maximum severity to be shown.
 void setMinSeverity(String minSeverity)
          Sets the mininum severity to be shown.
 void setOrderBy(String orderBy)
          Sets the order of the messages.
protected  void setProperties(UIComponent component)
           
 void setShowDetail(String showDetail)
          Flag indicating whether the detail should be included
 void setShowSummary(String showSummary)
          Flag indicating whether the summary should be included
 
Methods inherited from class org.apache.myfaces.tobago.taglib.component.TobagoTag
doEndTag, doStartTag, getDisabled, getHeight, getHidden, getInline, getLabel, getReadonly, getRendererType, getTitle, getWidth, setDisabled, setHeight, setHidden, setInline, setLabel, setReadonly, setTitle, setWidth
 
Methods inherited from class javax.faces.webapp.UIComponentTag
encodeBegin, encodeChildren, encodeEnd, findComponent, getComponentInstance, getCreated, getDoEndValue, getDoStartValue, getFacesContext, getFacetName, getId, getParent, getParentUIComponentTag, isSuppressed, isValueReference, setBinding, setId, setPageContext, setParent, setRendered, setupResponseWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
doEndTag, doStartTag, getParent, setPageContext, setParent
 
Methods inherited from interface org.apache.myfaces.tobago.taglib.decl.HasId
setId
 
Methods inherited from interface org.apache.myfaces.tobago.taglib.decl.HasBinding
setBinding
 
Methods inherited from interface org.apache.myfaces.tobago.taglib.decl.IsRendered
setRendered
 

Constructor Detail

MessagesTag

public MessagesTag()
Method Detail

getComponentType

public String getComponentType()
Specified by:
getComponentType in class UIComponentTag

setProperties

protected void setProperties(UIComponent component)
Overrides:
setProperties in class TobagoTag

release

public void release()
Specified by:
release in interface Tag
Overrides:
release in class TobagoTag

getFor

public String getFor()

setFor

public void setFor(String forComponent)
Description copied from interface: HasFor
Id of the component, this is related to.

Specified by:
setFor in interface HasFor

setGlobalOnly

public void setGlobalOnly(String globalOnly)
Description copied from interface: MessagesTagDeclaration
Flag indicating that only messages that are not associated to any particular UIComponent should be displayed. That are messages without clientId.

Specified by:
setGlobalOnly in interface MessagesTagDeclaration

setShowSummary

public void setShowSummary(String showSummary)
Description copied from interface: MessagesTagDeclaration
Flag indicating whether the summary should be included

Specified by:
setShowSummary in interface MessagesTagDeclaration

setShowDetail

public void setShowDetail(String showDetail)
Description copied from interface: MessagesTagDeclaration
Flag indicating whether the detail should be included

Specified by:
setShowDetail in interface MessagesTagDeclaration

setMinSeverity

public void setMinSeverity(String minSeverity)
Description copied from interface: MessagesTagDeclaration
Sets the mininum severity to be shown. E. g. "warn" shows only "warn", "error" and "fatal".

Specified by:
setMinSeverity in interface MessagesTagDeclaration

setMaxSeverity

public void setMaxSeverity(String maxSeverity)
Description copied from interface: MessagesTagDeclaration
Sets the maximum severity to be shown. E. g. "warn" shows only "warn" and "info". When setting this attribute you usually shoud take care, that you have a second message tag to show the higher severity levels.

Specified by:
setMaxSeverity in interface MessagesTagDeclaration

setMaxNumber

public void setMaxNumber(String maxNumber)
Description copied from interface: MessagesTagDeclaration
Sets the maximum number of messages to show.

Specified by:
setMaxNumber in interface MessagesTagDeclaration

setOrderBy

public void setOrderBy(String orderBy)
Description copied from interface: MessagesTagDeclaration
Sets the order of the messages.

Specified by:
setOrderBy in interface MessagesTagDeclaration

setConfirmation

public void setConfirmation(String confirmation)
Description copied from interface: MessagesTagDeclaration
Should the user confirm the message explicitly.

Specified by:
setConfirmation in interface MessagesTagDeclaration


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