public class ListDisplayTag extends ListDisplayTagBase
DataResult
contained in its parent tag,
iteration the ColumnTags
render the headers of the ListView, while subsequent iterations render the
data contained within the
DataResult
.
The ListTag has the following optional attributes:
filterBy
set
hiddenvars
exportColumns
renderDisabled
mixins
button
button2
buttonAcl
button2Acl
domainClass
title
paging
type
reflink
reflinkkey
reflinkkeyarg0
description
transparent
When using a child SetTag
,
the set
and hiddenvars
become REQUIRED.
The filterBy
attribute specifies the column name with which
to filter the data.
The paging
attribute determines whether or not paging buttons should be
shown.
The type
attribute sepcifies whether the list is a normal full list
or a half-table
reflink
will cause a link to display in the lower right corner of the
table while reflinkkey
is the localization message we wish to show
that will be the key of the link. reflinkkeyarg0
is an optional
argument to be passed to
the LocalizationService. description
is what will appear
in non-paged lists in the lower left corner in the "1 of 1 description
displayed." transparent
if set to true will make it so that the
table has no borders, and all the rows are white.
Example usage of the ListDisplayTag with no sets:
... <rhn:listdisplay> <rhn:column header="l10n.jsp.messagekey"> display this value </rhn:column> <rhn:column header="l10n.jsp.messagekey1"> display this value too </rhn:column> </rhn:listdisplay> ...The following shows how to define a ListView with a set column.
... <rhn:listdisplay set="${requestScope.set}" hiddenvars="${requestScope.keep}"> <rhn:set value="${current.id}"/> <rhn:column header="l10n.jsp.messagekey1"> display this value </rhn:column> </rhn:listdisplay> ...
ColumnTag
,
ListTag
,
SetTag
,
RhnSet
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.lang.String |
ADD_TO_SSM_KEY |
protected int |
rowCnt
row count determines whether we're an even or odd row
|
static java.lang.String |
SELECT_ALL_KEY |
static java.lang.String |
UNSELECT_ALL_KEY |
static java.lang.String |
UPDATE_LIST_KEY |
FILTER_DISPATCH, FILTER_MAXLENGTH
Constructor and Description |
---|
ListDisplayTag()
Public constructor
|
Modifier and Type | Method and Description |
---|---|
int |
doAfterBody() |
int |
doEndTag() |
int |
doStartTag() |
java.lang.String |
getButton() |
java.lang.String |
getButton2() |
java.lang.String |
getButton2Acl() |
java.lang.String |
getButtonAcl() |
java.lang.String |
getDescription() |
java.lang.String |
getDomainClass()
domainClass is used by the page loader to display what
domain object it is loading.
|
java.lang.String |
getMixins() |
java.lang.String |
getReflink() |
java.lang.String |
getReflinkkey() |
java.lang.String |
getReflinkkeyarg0() |
RhnSet |
getSet()
Get the set
|
java.lang.String |
getTableId() |
protected java.lang.String |
getTrElement(java.lang.Object o) |
java.lang.String |
getType()
Gets the type of the list
|
protected void |
incrementChecked()
Increment the count of the number of checked checkboxes.
|
boolean |
isExport()
If the User requested an Export or not.
|
boolean |
isPaging()
Returns true if this is a paging list.
|
boolean |
isTransparent() |
void |
release() |
void |
setButton(java.lang.String buttonIn) |
void |
setButton2(java.lang.String button2In) |
void |
setButton2Acl(java.lang.String button2AclIn) |
void |
setButtonAcl(java.lang.String buttonAclIn) |
void |
setButtonsAttr(java.lang.String attrNameValue)
Set the name:value pair for the request attribute controlling display
of any optional buttons
|
void |
setDescription(java.lang.String stringIn) |
void |
setDomainClass(java.lang.String domainClassIn) |
void |
setMixins(java.lang.String mixinsIn) |
void |
setPaging(boolean topageornottopage)
Sets this list as either a paging or non-paging list.
|
void |
setReflink(java.lang.String stringIn)
sets the reflink to be used
|
void |
setReflinkkey(java.lang.String stringIn)
Sets the refLinkKey to be used
|
void |
setReflinkkeyarg0(java.lang.String stringIn)
Sets the first argument for the reflinkkey
|
void |
setSet(RhnSet s)
Set the set for this listview.
|
void |
setTableId(java.lang.String tableIdIn) |
void |
setTransparent(boolean booleanIn) |
void |
setType(java.lang.String stringIn)
Sets the type of the list
|
protected void |
showButtons()
Tells the ListDisplayTag to show Update List and Select All buttons.
|
createExportWriter, getColumnCount, getExportColumns, getHiddenvars, getIterator, getNumberOfColumns, getPageList, getTitle, incrColumnCount, incrNumberOfColumns, renderDisabled, renderFilterBox, renderHeadExtraAddons, renderPanelHeading, renderTitle, setColumnCount, setExportColumns, setFilterBy, setHiddenvars, setNumberOfColumns, setRenderDisabled, setTitle, setupPageList
doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
protected int rowCnt
public static final java.lang.String UPDATE_LIST_KEY
public static final java.lang.String SELECT_ALL_KEY
public static final java.lang.String UNSELECT_ALL_KEY
public static final java.lang.String ADD_TO_SSM_KEY
public java.lang.String getTableId()
public void setTableId(java.lang.String tableIdIn)
tableIdIn
- The tableId to set.public java.lang.String getDomainClass()
public void setButtonsAttr(java.lang.String attrNameValue) throws javax.servlet.jsp.JspException
attrNameValue
- name/value pair separated by ":"javax.servlet.jsp.JspException
- indicates attrNameValue is in the wrong formatpublic void setDomainClass(java.lang.String domainClassIn)
domainClassIn
- The domainClass to set.public java.lang.String getButton()
public void setButton(java.lang.String buttonIn)
buttonIn
- The button to set.public java.lang.String getButton2()
public void setButton2(java.lang.String button2In)
button2In
- The button2 to set.public java.lang.String getButton2Acl()
public void setButton2Acl(java.lang.String button2AclIn)
button2AclIn
- The button2Acl to set.public java.lang.String getButtonAcl()
public void setButtonAcl(java.lang.String buttonAclIn)
buttonAclIn
- The buttonAcl to set.public java.lang.String getMixins()
public void setMixins(java.lang.String mixinsIn)
mixinsIn
- The mixins to set.public void setSet(RhnSet s)
s
- The set to set.public RhnSet getSet()
public boolean isPaging()
public void setPaging(boolean topageornottopage)
topageornottopage
- true for a paging list, false otherwise.public void setType(java.lang.String stringIn)
setType
in class ListDisplayTagBase
stringIn
- desired alignment for the listpublic java.lang.String getType()
getType
in class ListDisplayTagBase
public void setReflink(java.lang.String stringIn)
stringIn
- the reflink to be usedpublic java.lang.String getReflink()
public void setReflinkkey(java.lang.String stringIn)
stringIn
- the reflinkkey to be usedpublic java.lang.String getReflinkkey()
public void setReflinkkeyarg0(java.lang.String stringIn)
stringIn
- the reflinkkeyarg0 to be usedpublic java.lang.String getReflinkkeyarg0()
public void setDescription(java.lang.String stringIn)
stringIn
- trans-unit id of the description we wish to usepublic java.lang.String getDescription()
public boolean isTransparent()
public void setTransparent(boolean booleanIn)
booleanIn
- sets transparentprotected java.lang.String getTrElement(java.lang.Object o)
protected void incrementChecked()
protected void showButtons()
public boolean isExport()
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 int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public int doAfterBody() throws javax.servlet.jsp.JspException
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class ListDisplayTagBase