com.jalios.jcms.taglib
Class MessagesTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.jalios.jcms.taglib.MessagesTag
- All Implemented Interfaces:
- Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
- Direct Known Subclasses:
- MessageTag
public class MessagesTag
- extends javax.servlet.jsp.tagext.TagSupport
display messages not related to a specific id or not manage by previous MessageTag
- Author:
- Ludovic SMADJA
- See Also:
- Serialized Form
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 |
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 |
jcmsContext
protected JcmsJspContext jcmsContext
level
protected JcmsMessage.Level level
infoClass
protected String infoClass
infoStyle
protected String infoStyle
warnClass
protected String warnClass
warnStyle
protected String warnStyle
errorClass
protected String errorClass
errorStyle
protected String errorStyle
styleClass
protected String styleClass
style
protected String style
MessagesTag
public MessagesTag()
setStyleClass
public void setStyleClass(String styleClass)
setStyle
public void setStyle(String style)
setLevel
public void setLevel(String level)
setInfoClass
public void setInfoClass(String infoClass)
setInfoStyle
public void setInfoStyle(String infoStyle)
setWarnClass
public void setWarnClass(String warnClass)
setWarnStyle
public void setWarnStyle(String warnStyle)
setErrorClass
public void setErrorClass(String errorClass)
setErrorStyle
public void setErrorStyle(String errorStyle)
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Specified by:
doStartTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
generateDisplay
protected void generateDisplay(List<JcmsMessage> linkedMsgList)
throws javax.servlet.jsp.JspException
- Throws:
javax.servlet.jsp.JspException
formatMessage
protected String formatMessage(JcmsMessage jcmsMessage)
isSelected
protected boolean isSelected(JcmsMessage jcmsMessage)
getJcmsMessages
protected List<JcmsMessage> getJcmsMessages()
addStyleAndClassToDiv
protected void addStyleAndClassToDiv(StringBuffer sb,
JcmsMessage.Level msgLevel)
doEndTag
public int doEndTag()
- Specified by:
doEndTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
Copyright © 2001-2010 Jalios SA. All Rights Reserved.