public class ListTag
extends javax.servlet.jsp.tagext.BodyTagSupport
pageList
and noDataText
. The
pageList
is a
DataResult
which contains the data to display. If the pageList
is null
or empty, the ListTag will skip the body and display the message defined
by the noDataText
attribute.
Both the pageList
and noDataText
attributes are
REQUIRED.
The ListTag should include at least one
ListDisplayTag
Example usage of the ListTag:
<rhn:list pageList="${requestScope.pageList}" noDataText="l10n.jsp.messagekey"> <rhn:listdisplay> ... </rhn:listdisplay> </rhn:list>
ColumnTag
,
ListDisplayTag
,
SetTag
,
Serialized FormConstructor and Description |
---|
ListTag()
Public constructor
|
Modifier and Type | Method and Description |
---|---|
int |
doStartTag() |
java.lang.String |
getLegend() |
DataResult |
getPageList()
Get the pageList for this tag
|
void |
release() |
void |
setFormatMessage(boolean formatMessageIn) |
void |
setLegend(java.lang.String l) |
void |
setNoDataText(java.lang.String noDataTextIn)
Set the string to print if there is no data in the
list
|
void |
setPageList(DataResult list)
Set the pagelist for this tag
|
doAfterBody, doEndTag, doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public java.lang.String getLegend()
public void setLegend(java.lang.String l)
l
- The legend to set.public void setPageList(DataResult list)
list
- the list to displaypublic DataResult getPageList()
public void setNoDataText(java.lang.String noDataTextIn)
noDataTextIn
- The string to print if there is
no data.public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.BodyTagSupport
public void setFormatMessage(boolean formatMessageIn)
formatMessageIn
- The formatMessage to set.