# com.bea.wlw.netui.tags.databinding.grid.column
BasicColumn Class

public class BasicColumn
extends `SortFilterColumn`

A BasicColumn simply renders data from the data set into the page. The data is referenced with the `name` attribute and the title is specified using the `title` attribute.

Required resources:

The JavaScript files `_grid.js` must be included in any JSP page with a grid that uses a filter-enabled BasicColumn. The Page Flow Wizard adds the `_grid.js` file to a project's /resources/grid directory, when you build a page flow over a database control. The JSP should contain: <script language="javascript" src="/resources/grid/_grid.js" type="text/javascript"></script>

Attribute Descriptions
Attribute | Required | Runtime Expression Evaluation | Data Bindable
--- | --- | --- | ---
filterable | No | Yes | No
A boolean specifying whether the anchors can be filtered.
filterAction | No | Yes | No
The name of the action that will perform the filter operation.
name | No | Yes | Yes
If specified, the value of the data is extracted from the Grid's current data item. Otherwise, the `title` attribute is used for the cell's content.
sortable | No | Yes | No
A boolean specifying whether the basic column's contents can be sorted.
sortAction | No | Yes | No
The name of the action that will perform the sort operation.
title | No | No | No
The text that will be rendered in the header for this column.

Related Topics

<netui-data:grid> Tag Sample

Hierarchy
  `Object`
  `TagSupport`
  `BodyTagSupport`
  `AbstractBaseTag`
  `StructuredBaseTag`
  `GridComponent`
  `GridColumn`
  `FormattableColumn`
  `SortFilterColumn`
  `BasicColumn`

All Implemented Interfaces
  `BodyTag`, `Formattable`, `IterationTag`, `Serializable`, `Tag`

## Field Summary

Fields from com.bea.wlw.netui.tags.databinding.base`.`StructuredBaseTag``
`EMPTY_STRING`

Fields from com.bea.wlw.netui.tags`.`AbstractBaseTag``
``ATTR_GENERAL`, `ATTR_GENERAL_EXPRESSION`, `ATTR_JAVASCRIPT`, `ATTR_STYLE`, `CLASS`, `ID`, `JAVASCRIPT_STATUS`, `NAME`, `NETUI_UNIQUE_CNT`, `ONCLICK`, `ONDBLCLICK`, `ONKEYDOWN`, `ONKEYPRESS`, `ONKEYUP`, `ONMOUSEDOWN`, `ONMOUSEMOVE`, `ONMOUSEOUT`, `ONMOUSEOVER`, `ONMOUSEUP`, `STYLE`, `TABINDEX``

Fields from javax.servlet.jsp.tagext`.`BodyTagSupport``
`bodyContent`

Fields from javax.servlet.jsp.tagext`.`TagSupport``
`id, pageContext`

Fields from interface javax.servlet.jsp.tagext`.`BodyTag``
`EVAL_BODY_BUFFERED, EVAL_BODY_TAG`

Fields from interface javax.servlet.jsp.tagext`.`IterationTag``
`EVAL_BODY_AGAIN`

Fields from interface javax.servlet.jsp.tagext`.`Tag``
`EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE`

## Constructor Summary

BasicColumn()

## Method Summary

`public `String`` | `getTagName`() Get the name of this tag.
`protected void` | `localRelease`() Reset all of the fields of this tag.
`public `String`` | `renderDataCell`() For each cell in a column that is rendered for an item in the Grid's dataset, this method is called to render the data for the "current" item.
`public `String`` | `renderFooterCell`() Render the footer.

Methods from `com.bea.wlw.netui.tags.databinding.grid.column.`SortFilterColumn``
``canFilter`, `canSort`, `computeFilterAction`, `computeSortAction`, `getFilterAction`, `getName`, `getSortAction`, `getTitle`, `getTitleText`, `isFilterable`, `isSortable`, `prepare`, `renderHeaderCell`, `setFilterable`, `setFilterAction`, `setName`, `setSortable`, `setSortAction`, `setTitle`, `verifyAttributes``

Methods from `com.bea.wlw.netui.tags.databinding.grid.column.`FormattableColumn``
``addFormatter`, `format`, `localRelease`, `renderStartTag``

Methods from `com.bea.wlw.netui.tags.databinding.grid.column.`GridColumn``
``getColumns`, `getStyleClassPrefix`, `getValidContainerType`, `localRelease`, `prepare`, `renderCloseCellTag`, `renderDataCellTag`, `renderEndTag`, `renderFooterCellTag`, `renderHeaderCell`, `renderHeaderCellTag`, `renderOpenCellTag`, `renderStartTag`, `setStyleClassPrefix``

Methods from `com.bea.wlw.netui.tags.databinding.grid.`GridComponent``
``getCurrentRenderState`, `getGrid`, `getGridContext`, `getValidContainerType`, `localRelease`, `prepare``

Methods from `com.bea.wlw.netui.tags.databinding.base.`StructuredBaseTag``
`addContent, doEndTag, doStartTag, getContent, getCurrentRenderState, getValidContainerType, localRelease, prepare, renderEndTag, renderStartTag, verifyAttributes, verifyStructure`

Methods from `com.bea.wlw.netui.tags.`AbstractBaseTag``
``addTagIdMapping`, `evaluateAttributeToString`, `filter`, `filter`, `getJavaScriptUtils`, `getNearestForm`, `getScriptReporter`, `getUserLocale`, `localRelease`, `registerTagError`, `release`, `renderAttribute`, `rewriteName`, `write``

Methods from `javax.servlet.jsp.tagext.`BodyTagSupport``
`doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent`

Methods from `javax.servlet.jsp.tagext.`TagSupport``
`doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue`

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `javax.servlet.jsp.tagext.`BodyTag``
`doInitBody, setBodyContent`

Methods from interface `com.bea.wlw.netui.tags.html.`Formattable``
``addFormatter``

Methods from interface `javax.servlet.jsp.tagext.`IterationTag``
`doAfterBody`

Methods from interface `javax.servlet.jsp.tagext.`Tag``
`doEndTag, doStartTag, getParent, release, setPageContext, setParent`

## Constructor Detail

### BasicColumn

    public BasicColumn()

## Method Detail

### getTagName() Method

    public String getTagName()

Get the name of this tag. This is used to identify the type of this tag for reporting tag errors.

Overrides
  `AbstractBaseTag.getTagName()`

#### Returns

a constant String representing the name of this tag.

### localRelease() Method

    protected void localRelease()

Reset all of the fields of this tag.

Overrides
  `SortFilterColumn.localRelease()`

### renderDataCell() Method

    public String renderDataCell()

For each cell in a column that is rendered for an item in the Grid's dataset, this method is called to render the data for the "current" item. Using the name attribute on this tag, the value associated with that name for the current data item is rendered in a table cell here. The String contents of this cell are added to the Columns content buffer.

Overrides
  `GridColumn.renderDataCell()`

#### Returns

the String contents of this table cell.

### renderFooterCell() Method

    public String renderFooterCell()

Render the footer. This footer contains no text.

Overrides
  `GridColumn.renderFooterCell()`

#### Returns

the emtpy string