The data renderer page displays the content to render within the column.

Dojo-Grid Column Content

By default, the data renderer page is called for each column when the grid items are iterated. The following parameters are passed to the data renderer page:

Parameter

Description

field

The string identifier of the column to render as defined in the ColumnConfiguration object.

colIndex

The zero-based index of the column.

[bean]

The object(s) containing the data for the grid item. They will vary depending on the data being rendered. For an order, the item is a single orderItemMap bean.

The following is an example from the /include/order/columnRenderer.jsp file:

<dsp: getvalueof var="field" param="field"/>
<dsp: getvalueof var="colIndex" param="colIndex"/>
<dsp: getvalueof var="orderItemMap" param="orderItemMap"/>

<c: choose>
<c: when test="${field == 'id'}">
  "id": "${orderItemMap.id}",
</c: when>

<c: when test="${field == 'viewLink'}">
  <fmt: bundle basename="atg.commerce.csr.Messages">
    "viewLink": "<a href=\"#\" class=\"blueU\" title=\"
    <fmt: message key="view-order"/>\"
    onclick=\"atg.commerce.csr.order.viewExistingOrder(\'${orderItemMap.id}\',\
    '${orderItemMap.state}\');return false;\">${orderItemMap.id}</a>"
  </fmt: bundle>
</c: when>

...
HTML Table Column Content

The data renderer page displays the content to render within the column. By default, the data renderer page is called for each column heading and data cell. The following parameters are passed to the data renderer page:

Parameter

Description

field

The string identifier of the column to render as defined in the ColumnConfiguration object

customerItemMap

The current customer item being rendered

resourceBundle

The resource bundle that defines the resource keys

resourceKey

The key that maps to the resource string

isPopup

Identifies if the search table is a pop up. For example, the customer search from the Shopping Cart page is a pop up table

isHeading

Identifies if a heading should be rendered


Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices