|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.opensubsystems.core.www.MessageTag
public class MessageTag
Custom tag to display messages defined using call to CallContext.getInstance().getMessages().addXYZ() on the UI processed using servlet derived from WebUIServlet. Place this tag in your JSP page at the place where you want to display informational or error messages generated by application for the user. This tag will generate DIV element with informational and error messages in it that you can format using CSS. The default css classes for this tag are included in <%=contextpath%>/core/css/message.css. If you do not specify your own css styles, you should include this default css file whenever you use this tag.
| Field Summary | |
|---|---|
protected java.lang.String |
m_strCssclass
Class for the message labels. |
protected java.lang.String |
m_strEmpty
Flag signaling to also include the message area if the area would be empty. |
protected java.lang.String |
m_strId
Id of the DIV where messages will be displayed. |
static java.lang.String |
MESSAGES_REQUEST_PARAM
Messages collected during processing of current request. |
| 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()
Constructor for custom tag. |
|
| Method Summary | |
|---|---|
int |
doEndTag()
|
int |
doStartTag()
|
java.lang.String |
getCssclass()
|
java.lang.String |
getEmpty()
|
java.lang.String |
getId()
|
boolean |
isEmptyArea()
|
void |
setCssclass(java.lang.String string)
|
void |
setEmpty(boolean bEmpty)
|
void |
setEmpty(java.lang.String strEmpty)
|
void |
setId(java.lang.String string)
|
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, findAncestorWithClass, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MESSAGES_REQUEST_PARAM
protected java.lang.String m_strId
protected java.lang.String m_strCssclass
protected java.lang.String m_strEmpty
| Constructor Detail |
|---|
public MessageTag()
| Method Detail |
|---|
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionpublic java.lang.String getId()
getId in class javax.servlet.jsp.tagext.TagSupportpublic java.lang.String getCssclass()
public void setId(java.lang.String string)
setId in class javax.servlet.jsp.tagext.TagSupportstring - - Id of the DIV where messages will be displayed. Subarea
where error messages are displayed will have id created
by appending error and subarea for information messages
will have id created by appending info.public void setCssclass(java.lang.String string)
string - - CSS class for the area where messages are displayed.
Subarea where error messages are displayed will have class
created by appending Error and subarea for information
messages will have class created by appending Info.public java.lang.String getEmpty()
public void setEmpty(java.lang.String strEmpty)
strEmpty - - If the message area should be included even if it is empty
this should say true or 1.public void setEmpty(boolean bEmpty)
bEmpty - - If the message area should be included even if it is empty
this should say true or 1.public boolean isEmptyArea()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||