From svnnotify @ sourceforge.jp Tue Jul 15 18:45:14 2008 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Tue, 15 Jul 2008 18:45:14 +0900 Subject: [Jetspeed-japan-trans] [50] update translate Message-ID: <1216115114.039929.28677.nullmailer@users.sourceforge.jp> Revision: 50 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=jetspeed-japan&view=rev&rev=50 Author: karma Date: 2008-07-15 18:45:13 +0900 (Tue, 15 Jul 2008) Log Message: ----------- update translate Modified Paths: -------------- jetspeed-2-trans/trunk/ja/xdocs/j1-migration.xml -------------- next part -------------- Modified: jetspeed-2-trans/trunk/ja/xdocs/j1-migration.xml =================================================================== --- jetspeed-2-trans/trunk/ja/xdocs/j1-migration.xml 2008-06-27 10:03:43 UTC (rev 49) +++ jetspeed-2-trans/trunk/ja/xdocs/j1-migration.xml 2008-07-15 09:45:13 UTC (rev 50) @@ -825,6 +825,7 @@ ]]> +

In Jetspeed-1 there is some really bad architecture interfering with easily writing portlets. Here in our action, we are actually implementing the View portion of our code by populating the @@ -832,9 +833,21 @@ buildNormalContext method should be ported to the doView method of the Portlet API. Note how the actual portlet must be passed in as the first parameter to the buildNormalContext method.

+
+

+Jetspeed 1 には,簡単にポートレットを作成するのを妨げる,良くない構造がいくつかありました.ここで我々は,実際に context.put ステートメントを持つ Velocity コンテキストを実装することにより,コードの View の一部分を実装しています.buildNormalContext で実装したすべてのコードは,ポートレット API の doView メソッドに移植しなくてはならない事に注意してください.実際のポートレットを,どのようにして 1 番目のパラメータとして,buildNormalContext メソッドに渡さなければならないのかに注意してください. +

+ +

The actual action code implemented as do.. methods on your action class will need to be ported to the processAction method on the Portlet API.

+
+ +

アクションクラス中に,do で始まるメソッドとして実装される実際のコードは,ポートレット API の processAction メソッドへ移植する必要があります. +

+ +
+
+ + + + +

The doInsert method is linked by Turbine to an action in the Velocity template with the eventSubmit_ prefix:

From svnnotify @ sourceforge.jp Thu Jul 31 21:21:30 2008 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Thu, 31 Jul 2008 21:21:30 +0900 Subject: [Jetspeed-japan-trans] [51] update translate Message-ID: <1217506890.448217.18889.nullmailer@users.sourceforge.jp> Revision: 51 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=jetspeed-japan&view=rev&rev=51 Author: karma Date: 2008-07-31 21:21:30 +0900 (Thu, 31 Jul 2008) Log Message: ----------- update translate Modified Paths: -------------- jetspeed-2-trans/trunk/ja/xdocs/j1-migration.xml -------------- next part -------------- Modified: jetspeed-2-trans/trunk/ja/xdocs/j1-migration.xml =================================================================== --- jetspeed-2-trans/trunk/ja/xdocs/j1-migration.xml 2008-07-15 09:45:13 UTC (rev 50) +++ jetspeed-2-trans/trunk/ja/xdocs/j1-migration.xml 2008-07-31 12:21:30 UTC (rev 51) @@ -865,36 +865,105 @@ ]]> +

The doInsert method is linked by Turbine to an action in the Velocity template with the eventSubmit_ prefix:

+
+ +

+Turbine は,doInsert メソッドと,eventSubmit_ プレフィックスを持つ Velocity テンプレートのアクションと関連付けます. +

+ +
]]> +
+ + + +]]> + + +

Here is the equivalent in the Portlet API (Jetspeed-2):

+
+ +

+ここにポートレット API (Jetspeed 2) での同等のものがあります. +

+ +
+
+ + + + + +

The Portlet API provides two parameters to the processAction method: the ActionRequest and ActionResponse.

+
+ +

+ポートレット API は,processAction メソッドに 2 つのパラメータを用意しています. +

- + +

Request parameters are accessed via RunData in Jetspeed-1:

+
+

+ Jetspeed 1 では,リクエストパラメータは RunData 経由でアクセスします. +

+
+
+ + + +

With the Portlet API, portlet request parameters are accessed via the ActionRequest:

+
+

+ ポートレット API では,ポートレットのリクエストパラメータは,ActionRequest 経由でアクセスします. +

+
+
+ + + +

With the Portlet API, you can check the Portlet Mode or Window State:

+
+

+ ポートレット API では,ポートレットモードとウィンドウの状態をチェック出来ます. +

+
+
+ + + +

The basic Portlet API does not have a way to map actions to methods as in Jetspeed-1. If you would like this kind of behavior, we recommend using the Spring MVC Portlet framework Here we demonstrate using portlet request parameters per form to map to specific actions:

+
+

+ 基本的なポートレット API には,Jetspeed 1 のように,アクションとメソッドをマッピングする方法がありません.もし,このような振る舞いをしたいのであれば,Spring MVC Portlet framework を使うことをおすすめします.ここで,フォームからのポートレットのリクエストパラメータを使って,特定のアクションにマップする実例を挙げます. +

+
+
+ + +

The Portlet API provides built-in support for persistence of Portlet state in the session.