uCosminexus Portal Framework ポートレット開発ガイド

[目次][用語][索引][前へ][次へ]


3.25.2 ポートレットアプリケーションDD(portlet.xml)の作成

ポートレットアプリケーションDD(portlet.xml)とは,標準APIポートレットの名称やクラス名を設定するファイルです。ポートレットアプリケーションDDファイルのサンプルおよび注意事項を次に示します。なお,ポートレットアプリケーションDDで使用するタグは,Java Portlet Specification 1.0の仕様を参照してください。

<この項の構成>
(1) ポートレットアプリケーションDDの作成例
(2) ポートレットアプリケーションDD作成時の注意事項

(1) ポートレットアプリケーションDDの作成例

サンプルのポートレットアプリケーションDDを次に示します。

サンプルのポートレットアプリケーションDD

<?xml version="1.0" encoding="UTF-8" ?>
<portlet-app
  version="1.0"
  xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
  <portlet>
    <description>Sample Portlet</description>
    <portlet-name>SamplePortlet</portlet-name>
    <display-name>Sample Portlet</display-name>
    <portlet-class>portlets.SamplePortlet</portlet-class>
    <expiration-cache>-1</expiration-cache>
    <supports>
      <mime-type>text/html</mime-type>
      <portlet-mode>VIEW</portlet-mode>
    </supports>
    <supported-locale>en</supported-locale>
    <portlet-info>
      <title>Sample Portlet</title>
      <short-title>Sample</short-title>
      <keywords>Sample,Sample Portlet</keywords>
    </portlet-info>
  </portlet>
</portlet-app>

(2) ポートレットアプリケーションDD作成時の注意事項

ポートレットアプリケーションDDに設定するタグの注意事項を次に示します。

[目次][前へ][次へ]


[他社商品名称に関する表示]

All Rights Reserved. Copyright (C) 2009, 2013, Hitachi, Ltd.
All Rights Reserved. Copyright (C) 2009, 2013, Hitachi INS Software, Ltd.