svnno****@sourc*****
svnno****@sourc*****
2007年 12月 5日 (水) 14:19:34 JST
Revision: 25 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=jetspeed-japan&view=rev&rev=25 Author: karma Date: 2007-12-05 14:19:33 +0900 (Wed, 05 Dec 2007) Log Message: ----------- fix how to use html tag valid Modified Paths: -------------- jetspeed-2-trans/trunk/ja/xdocs/guides/guide-simple-jsf-portlet.xml -------------- next part -------------- Modified: jetspeed-2-trans/trunk/ja/xdocs/guides/guide-simple-jsf-portlet.xml =================================================================== --- jetspeed-2-trans/trunk/ja/xdocs/guides/guide-simple-jsf-portlet.xml 2007-12-03 02:29:58 UTC (rev 24) +++ jetspeed-2-trans/trunk/ja/xdocs/guides/guide-simple-jsf-portlet.xml 2007-12-05 05:19:33 UTC (rev 25) @@ -29,20 +29,24 @@ </properties> <body> <section name="[Jetspeed Simple JSF Portlet Guide]Jetspeed Simple JSF Portlet ガイド"> - <p><div class="original"> + <div class="original"> + <p> This guide provides a tutorial for creating a very simple JSF portlet with one template in the portlet view mode. - </div> </p> + </div> <p> このガイドはportlet視点モードの1個のテンプレートで簡単にJSF portletを 作成するチュートリアルを提供します。 </p> <subsection name="1. [The Portlet Class]ポートレットクラス"> + <div class="original"> <p> - <div class="original"> Create the file JSFSimplest.java in a directory called jsf-simplest/WEB-INF/classes: + </p> + </div> + <div class="original"> <source> public class JSFSimplest extends org.apache.portals.bridges.jsf.FacesPortlet { @@ -55,9 +59,9 @@ } </source> </div> - </p> <p> jsf-simplest/WEB-INF ディレクトリでportlet.xmlを作成してください。 + </p> <source> public class JSFSimplest extends org.apache.portals.bridges.jsf.FacesPortlet { @@ -69,27 +73,31 @@ } } </source> + <div class="original"> + <p> + Compile the class in the jsf-simplest/WEB-INF/classes directory using the command, </p> - <p> + </div> <div class="original"> - Compile the class in the jsf-simplest/WEB-INF/classes directory using the command, <source> javac -cp portlet-api-1.0.jar:portals-bridges-jsf-1.0.jar:portals-bridges-common-1.0.jar JSFSimplest.java </source> </div> - </p> <p> コマンドを使用して、jsf-simplest/WEB-INF/classes ディレクトリで クラスをコンパイルしてください。 + </p> <source> javac -cp portlet-api-1.0.jar:portals-bridges-jsf-1.0.jar:portals-bridges-common-1.0.jar JSFSimplest.java </source> - </p> </subsection> <subsection name="2. [The portlet.xml]portlet.xml"> + <div class="original"> <p> + Create the file portlet.xml in the jsf-simplest/WEB-INF directory. + </p> + </div> <div class="original"> - Create the file portlet.xml in the jsf-simplest/WEB-INF directory. <source><![CDATA[ <?xml version="1.0" encoding="UTF-8"?> <portlet-app id="jsfsimplest" version="1.0"> @@ -115,9 +123,9 @@ </portlet-app>]]> </source> </div> - </p> <p> jsf-simplest/WEB-INF ディレクトリでportlet.xmlを作成してください。 + </p> <source><![CDATA[ <?xml version="1.0" encoding="UTF-8"?> <portlet-app id="jsfsimplest" version="1.0"> @@ -142,12 +150,14 @@ </portlet> </portlet-app>]]> </source> - </p> </subsection> <subsection name="3. [The web.xml]web.xml"> + <div class="original"> <p> + Create the file web.xml in the jsf-simplest/WEB-INF directory. + </p> + </div> <div class="original"> - Create the file web.xml in the jsf-simplest/WEB-INF directory. <source><![CDATA[ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" @@ -175,10 +185,10 @@ </servlet-mapping> </web-app>]]> </source> - </div> - </p> + </div> <p> jsf-simplest/WEB-INF ディレクトリでweb.xmlを作成してください。 + </p> <source><![CDATA[ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" @@ -206,12 +216,14 @@ </servlet-mapping> </web-app>]]> </source> - </p> </subsection> <subsection name="4. [The View]視点"> + <div class="original"> <p> - <div class="original"> Create the view.jsp file in the jsf-simplest/WEB-INF/view directory. + </p> + </div> + <div class="original"> <source><![CDATA[ <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <%@ taglib uri="/WEB-INF/tld/portlet.tld" prefix='portlet'%> @@ -227,9 +239,9 @@ </f:view>]]> </source> </div> - </p> <p> jsf-simplest/WEB-INF/view ディレクトリでview.jspを作成してください。 + </p> <source><![CDATA[ <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <%@ taglib uri="/WEB-INF/tld/portlet.tld" prefix='portlet'%> @@ -244,12 +256,14 @@ <% } %>! </f:view>]]> </source> - </p> </subsection> <subsection name="5. [The faces-config.xml]faces-config.xm"> + <div class="original"> <p> - <div class="original"> Create a faces-config.xml file in the jsf-simplest/WEB-INF directory. + </p> + </div> + <div class="original"> <source><![CDATA[ <?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE faces-config PUBLIC @@ -267,8 +281,8 @@ </faces-config>]]> </source> - </div> </p> + </div> <p> jsf-simplest/WEB-INF ディレクトリでfaces-config.xmlを作成してください。 <source><![CDATA[ @@ -289,14 +303,16 @@ </faces-config>]]> </source> - </p> </subsection> <subsection name="6. [The Dependency JARs]依存するJAR"> + <div class="original"> <p> - <div class="original"> Copy the dependencies to the WEB-INF/lib directory. These jars should be in your Maven repository. If so executing these commands in the lib directory will set up the dependencies for you. + </p> + </div class="original"> + <div class="original"> <source> ln -s ~/.maven/repository/commons-beanutils/jars/commons-beanutils-1.7.0.jar ln -s ~/.maven/repository/commons-collections/jars/commons-collections-3.1.jar @@ -308,12 +324,12 @@ ln -s ~/.maven/repository/xerces/jars/xerces-2.4.0.jar ln -s ~/.maven/repository/xml-apis/jars/xml-apis-2.0.2.jar </source> - </div> - </p> + </div> <p> WEB-INF/lib ディレクトリへ依存するJARをコピーしてください。 これらのjarが Maven リポジトリになければなりません。 lib ディレクトリにてこれらのコマンドを実行するとセットアップされます。 + </p> <source> ln -s ~/.maven/repository/commons-beanutils/jars/commons-beanutils-1.7.0.jar ln -s ~/.maven/repository/commons-collections/jars/commons-collections-3.1.jar @@ -325,46 +341,48 @@ ln -s ~/.maven/repository/xerces/jars/xerces-2.4.0.jar ln -s ~/.maven/repository/xml-apis/jars/xml-apis-2.0.2.jar </source> - </p> </subsection> <subsection name="7. [The WAR file]WARファイル"> + <div class="original"> <p> + From the directory jsf-simplest combine the files above into a war file using the command, + </p> + </div> <div class="original"> - From the directory jsf-simplest combine the files above into a war file using the command, <source> jar cvf ../jsfsimplest.war . </source> </div> - </p> <p> コマンドを使用することでjsf-simplest ディレクトリはWARファイル化されます。 + </p> <source> jar cvf ../jsfsimplest.war . </source> - </p> </subsection> <subsection name="8. [Deploy the WAR file]WARファイルを配備"> + <div class="original"> <p> - <div class="original"> Copy the war file to <code>$CATALINA_HOME/webapps/jetspeed/WEB-INF/deploy</code>. Jetspeed-2 will deploy the webapp. + </p> </div> - </p> <p> <code>$CATALINA_HOME/webapps/jetspeed/WEB-INF/deploy</code> へWARファイルをコピーします。 Jetspeed-2はwebappを配備します。 </p> </subsection> <subsection name="9. [The PSML]PSML"> - <p><div class="original"> + <div class="original"> + <p> Create the PSML page using the Jetspeed portlet chooser. Login and click on the edit page icon. Click on the add portlet icon. Checkbox and add the JSFSimplestPortlet to your page. Your user must have the permission to edit pages. The user <code>admin</code> password <code>admin</code> has permission to edit all pages. + </p> </div> - </p> <p> Jetspeed portlet chooser を使用して、PSMLページを作成してください。 ログイン後に編集ページアイコンをクリックしてください。