|
BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport javax.servlet.jsp.tagext.BodyTagSupport com.bea.wlw.netui.tags.AbstractBaseTag com.bea.wlw.netui.tags.databinding.base.StructuredBaseTag com.bea.wlw.netui.tags.databinding.grid.GridComponent com.bea.wlw.netui.tags.databinding.grid.column.GridColumn com.bea.wlw.netui.tags.databinding.grid.column.FormattableColumn com.bea.wlw.netui.tags.databinding.grid.column.ExpressionColumn
public class ExpressionColumn
A column that can use expressions in addition to
formatters to format the value of a data cell. The expression
column enables combining data from different fields of the current
data item or even from different expression contexts into
a value for the cell. An expression column is not sortable
or filterable.
Attribute Descriptions | |||
---|---|---|---|
Attribute | Required | Runtime Expression Evaluation | Data Bindable |
title | No | No | No |
The text that will be rendered in the header for this column. | |||
value | No | No | Yes |
The expression value that can contain expressions that reference data in the current data item. The result of the expression evaluation will be rendered in the data cell. |
Grid
,
Serialized FormlastName
field and a firstName
field,
the following would render these together in a single cell:
<netui-data:expessionColumn value="{container.item.lastName}, {container.item.firstName}" title="Last Name, First Name" />
A column that can use data binding expressions to determine the value of a data cell. The expression column enables combining data from different fields of the current data item or even from different expression contexts into a value for the cell. An expression column is not sortable or filterable.
Field Summary |
---|
Fields inherited from class com.bea.wlw.netui.tags.databinding.base.StructuredBaseTag |
---|
EMPTY_STRING |
Fields inherited from class com.bea.wlw.netui.tags.AbstractBaseTag |
---|
ATTR_GENERAL, ATTR_GENERAL_EXPRESSION, ATTR_JAVASCRIPT, ATTR_STYLE, JAVASCRIPT_STATUS, NETUI_UNIQUE_CNT |
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface com.bea.wlw.netui.tags.html.HtmlConstants |
---|
ACCEPT, ACCESSKEY, ACTION, ALIGN, ALINK, ALT, ANCHOR, BACKGROUND, BASE, BGCOLOR, BODY, BORDER, BR, CAPTION, CELLPADDING, CELLSPACING, CHAR, CHAROFF, CHARSET, CHECKED, CLASS, COLS, COORDS, DIR, DISABLED, DIV, ENCTYPE, FOR, FORM, FORM_GET, FORM_POST, FRAME, HEIGHT, HREF, HREFLANG, HSPACE, HTML, ID, IMAGE, INPUT, INPUT_BUTTON, INPUT_CHECKBOX, INPUT_FILE, INPUT_HIDDEN, INPUT_IMAGE, INPUT_PASSWORD, INPUT_RADIO, INPUT_RESET, INPUT_SUBMIT, INPUT_TEXT, ISMAP, LABEL, LANG, LINK, LONGDESC, MAXLENGTH, METHOD, NAME, ONBLUR, ONCHANGE, ONCLICK, ONDBLCLICK, ONFOCUS, ONKEYDOWN, ONKEYPRESS, ONKEYUP, ONLOAD, ONMOUSEDOWN, ONMOUSEMOVE, ONMOUSEOUT, ONMOUSEOVER, ONMOUSEUP, ONRESET, ONSELECT, ONSUBMIT, ONUNLOAD, OPTION, READONLY, REL, REV, ROWS, RULES, SELECT, SHAPE, SIZE, SPAN, SRC, STYLE, SUMMARY, TABINDEX, TABLE, TARGET, TD, TEXT, TEXTAREA, TITLE, TR, TYPE, USEMAP, VALIGN, VALUE, VLINK, VSPACE, WIDTH |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
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 | |
---|---|
ExpressionColumn()
|
Method Summary | |
---|---|
String |
getTagName()
Get the name of this tag. |
String |
getTitle()
Get the title rendered in the header cell of this column. |
String |
getValue()
Get the value of this tag. |
protected void |
localRelease()
Reset all of the fields of this tag. |
String |
renderDataCell()
Render a cell for the "current" data item. |
String |
renderFooterCell()
Render the footer. |
String |
renderHeaderCell()
Render the header cell for this column. |
void |
setTitle(String title)
Set the title rendered in the header cell of this column. |
void |
setValue(String value)
Set the value of this tag. |
Methods inherited from class com.bea.wlw.netui.tags.databinding.grid.column.FormattableColumn |
---|
addFormatter, format, renderStartTag |
Methods inherited from class com.bea.wlw.netui.tags.databinding.grid.column.GridColumn |
---|
getColumns, getStyleClassPrefix, getValidContainerType, prepare, renderCloseCellTag, renderDataCellTag, renderEndTag, renderFooterCellTag, renderHeaderCellTag, renderOpenCellTag, setStyleClassPrefix |
Methods inherited from class com.bea.wlw.netui.tags.databinding.grid.GridComponent |
---|
getCurrentRenderState, getGrid, getGridContext |
Methods inherited from class com.bea.wlw.netui.tags.databinding.base.StructuredBaseTag |
---|
addContent, doEndTag, doStartTag, getContent, verifyAttributes, verifyStructure |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
getParent, setParent |
Constructor Detail |
---|
public ExpressionColumn()
Method Detail |
---|
public String getTagName()
getTagName
in class AbstractBaseTag
public void setTitle(String title)
title
- the title of the columnpublic String getTitle()
public void setValue(String value)
container
may be used
to access the "current" data item that is being rendered. For
example, the expression container.item
accesses
the current data item.
value
- the value of this tag. This attribute may
contain expression(s).{container.item}
may be used
to access the current data item that is being rendered.public String getValue()
public String renderHeaderCell()
renderHeaderCell
in class GridColumn
public String renderDataCell() throws javax.servlet.jsp.JspException
renderDataCell
in class GridColumn
javax.servlet.jsp.JspException
- if an error occurs that can not be reported in the pagepublic String renderFooterCell()
renderFooterCell
in class GridColumn
protected void localRelease()
localRelease
in class FormattableColumn
|
BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |