svnno****@sourc*****
svnno****@sourc*****
2008年 7月 15日 (火) 18:45:14 JST
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 @@ ]]> </source> +<div class="original"> <p> In Jetspeed-1 there is some really bad architecture interfering with easily writing portlets. Here in our action, we are actually implementing the <b>View</b> portion of our code by populating the @@ -832,9 +833,21 @@ <b>buildNormalContext</b> method should be ported to the <b>doView</b> method of the Portlet API. Note how the actual portlet must be passed in as the first parameter to the buildNormalContext method. </p> +</div> +<p> +Jetspeed 1 には,簡単にポートレットを作成するのを妨げる,良くない構造がいくつかありました.ここで我々は,実際に <b>context.put</b> ステートメントを持つ Velocity コンテキストを実装することにより,コードの <b>View</b> の一部分を実装しています.<b>buildNormalContext</b> で実装したすべてのコードは,ポートレット API の <b>doView</b> メソッドに移植しなくてはならない事に注意してください.実際のポートレットを,どのようにして 1 番目のパラメータとして,buildNormalContext メソッドに渡さなければならないのかに注意してください. +</p> + +<div class="original"> <p>The actual action code implemented as <b>do..</b> methods on your action class will need to be ported to the <b>processAction</b> method on the Portlet API. </p> +</div> + +<p>アクションクラス中に,<b>do</b> で始まるメソッドとして実装される実際のコードは,ポートレット API の <b>processAction</b> メソッドへ移植する必要があります. +</p> + +<div class="original"> <source> <![CDATA[ public void doInsert(RunData rundata, Context context) @@ -842,6 +855,16 @@ { ]]> </source> +</div> + +<source> +<![CDATA[ + public void doInsert(RunData rundata, Context context) + throws Exception + { +]]> +</source> + <p>The <b>doInsert</b> method is linked by Turbine to an action in the Velocity template with the <b>eventSubmit_</b> prefix: </p> <source>