Item views specify the item view JSP fragment that renders a page of information for a particular asset type in a given mode.

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

<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>

Item views have the following key properties:

Property

Use

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.

attributes

Optional key/value pairs that define an attribute of this item view. For more information, see View Mapping Attributes.

description

Informational description of the item view.

mode

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

name

The name of the item view.

uri

The URI of the JSP fragment that renders this view.

See Creating View Mapping Repository Items for the basic procedure for creating an itemView.

The following example shows the Standard RepositoryItem Editor item view:

Property

Value

applicationName

Publishing Portlets

attributes

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

description

Repository Item Edit View - 1-column layout

id

2

mode

edit

name

Standard RepositoryItem Editor

uri

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

 
loading table of contents...