com.jalios.jcms.taglib
Class MessageTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.jalios.jcms.taglib.MessagesTag
          extended by com.jalios.jcms.taglib.MessageTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class MessageTag
extends MessagesTag

add message tag use to display message associated to a specific id

Since:
JCMS 6.3
Author:
Ludovic SMADJA
See Also:
Serialized Form

Field Summary
protected  String componentId
           
protected  JcmsJspContext jcmsContext
           
 
Fields inherited from class com.jalios.jcms.taglib.MessagesTag
errorClass, errorStyle, infoClass, infoStyle, level, style, styleClass, warnClass, warnStyle
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
MessageTag()
           
 
Method Summary
 int doStartTag()
           
protected  String formatMessage(JcmsMessage jcmsMessage)
           
protected  boolean isSelected(JcmsMessage jcmsMessage)
           
 void setComponentId(String componentId)
           
 
Methods inherited from class com.jalios.jcms.taglib.MessagesTag
addStyleAndClassToDiv, doEndTag, generateDisplay, getJcmsMessages, setErrorClass, setErrorStyle, setInfoClass, setInfoStyle, setLevel, setStyle, setStyleClass, setWarnClass, setWarnStyle
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jcmsContext

protected JcmsJspContext jcmsContext

componentId

protected String componentId
Constructor Detail

MessageTag

public MessageTag()
Method Detail

setComponentId

public void setComponentId(String componentId)

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class MessagesTag
Throws:
javax.servlet.jsp.JspException

isSelected

protected boolean isSelected(JcmsMessage jcmsMessage)
Overrides:
isSelected in class MessagesTag

formatMessage

protected String formatMessage(JcmsMessage jcmsMessage)
Overrides:
formatMessage in class MessagesTag


Copyright © 2001-2010 Jalios SA. All Rights Reserved.