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 Form| Constructor 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, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValuepublic int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionpublic 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.Tagrelease in class javax.servlet.jsp.tagext.BodyTagSupportpublic void setFormatMessage(boolean formatMessageIn)
formatMessageIn - The formatMessage to set.