An itemView specifies a JSP fragment that renders a page of information for a particular asset type in a given mode.

Item descriptor Definition

The itemView item descriptor is defined in ViewMapping.xml as follows:

<item-descriptor name="itemView" display-property="name" query-cache-size="10">
  <table name="vmap_iv" type="primary" id-column-name="id">
    <property name="id" data-type="string"/>
    <property name="name"/>
    <property name="description"/>
    <property name="uri"/>
    <property name="applicationName" column-name="app_name"/>
    <property name="mode" column-name="mode_id" required="true"
      item-type="mapMode"/>
  </table>

  <!-- attributes property -->
  <table name="vmap_iv2ivad_rel" type="multi" id-column-name="view_id"
    multi-column-name="name">
    <property name="attributes"
      component-item-type="itemViewAttributeDefinition"
      column-name="attr_id" data-type="map" cascade="update,delete"/>
  </table>
</item-descriptor>
itemView Properties

itemView properties include the following:

Property

Description

name

The name of the itemView.

description

Optional description of the itemView.

uri

The URI of the JSP fragment that renders this view.

applicationName

Name of the Web application where this view resides. The value is the display name defined for the application in its web.xml file.

mode

The map mode to use for this view. For more information, see Map Modes.

attributes

Optional key/value pairs that define an attribute of this itemView.

Example

The following table shows property settings for the itemView Standard RepositoryItem Editor:

Property

Setting

id

2

name

Standard RepositoryItem Editor

description

Repository Item Edit View - 1-column layout

uri

/html/views/item/gsa/oneColumnEdit.jsp

applicationName

Publishing Portlets

mode

edit

attributes

{title=Replacement view title, textAbove=Text above the form}