com.jalios.jcms.taglib
Class MessagesTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by 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

Field Summary
protected  String errorClass
           
protected  String errorStyle
           
protected  String infoClass
           
protected  String infoStyle
           
protected  JcmsJspContext jcmsContext
           
protected  JcmsMessage.Level level
           
protected  String style
           
protected  String styleClass
           
protected  String warnClass
           
protected  String 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
MessagesTag()
           
 
Method Summary
protected  void addStyleAndClassToDiv(StringBuffer sb, JcmsMessage.Level msgLevel)
           
 int doEndTag()
           
 int doStartTag()
           
protected  String formatMessage(JcmsMessage jcmsMessage)
           
protected  void generateDisplay(List<JcmsMessage> linkedMsgList)
           
protected  List<JcmsMessage> getJcmsMessages()
           
protected  boolean isSelected(JcmsMessage jcmsMessage)
           
 void setErrorClass(String errorClass)
           
 void setErrorStyle(String errorStyle)
           
 void setInfoClass(String infoClass)
           
 void setInfoStyle(String infoStyle)
           
 void setLevel(String level)
           
 void setStyle(String style)
           
 void setStyleClass(String styleClass)
           
 void setWarnClass(String warnClass)
           
 void setWarnStyle(String warnStyle)
           
 
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

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
Constructor Detail

MessagesTag

public MessagesTag()
Method Detail

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.