This wiki does not contain official documentation and is currently deprecated and read only. Please try reading the documentation on the Liferay Developer Network, the new site dedicated to Liferay documentation. DISCOVER Build your web site, collaborate with your colleagues, manage your content, and more. DEVELOP Build applications that run inside Liferay, extend the features provided out of the box with Liferay's APIs. DISTRIBUTE Let the world know about your app by publishing it in Liferay's marketplace. PARTICIPATE Become a part of Liferay's community, meet other Liferay users, and get involved in the open source project. « Volver a 開発者マニュアル
ポートレットの構成
ポートレットには最低でも次の3つの要素から構成されています:
- Javaソースコード
- 設定ファイル
- クライアント側のファイル(例:.jsp、.css、.js、画像)
LiferayプログインSDKを利用してプラグインを開発する場合は、次のフォルダ構成でファイルを作成します:
/PORTLET-NAME/
build.xml
/docroot/
/css/
/js/
/WEB-INF/
/src/ (not created by default)
liferay-display.xml
liferay-plugin-package.properties
liferay-portlet.xml
portlet.xml
web.xml
icon.png
view.jsp前のページで作成されたポートレットはLiferayにデプロイ可能なポートレットです。
新しいポートレットはデフォルトでMVCPortletフレームワークを利用するように構成されます。 MVCPortletフレームワークは以下の特徴をもちます:
- 軽量フレームワークであります
- 複雑なポートレット処理を隠蔽します
- ポートレットのページ毎にJSPを作成します
- デフォルトでは、ポートレットモード毎にJSPを作成します(例:編集モードはedit.jsp、ヘルプモードはhelp.jsp)
Javaのソースコードはdocroot/WEB-INF/srcフォルダに配置します。
設定ファイルはdocroot/WEB-INFフォルダに配置します。
21465 Accesos