logo       
Google Custom Search
    AddThis Social Bookmark Button

svn commit: r231234 - /lenya/docu/src/documentation/content/xdocs/1_4/refer: msg#00035

Subject: svn commit: r231234 - /lenya/docu/src/documentation/content/xdocs/1_4/reference/publets/index.xml
Author: andreas
Date: Wed Aug 10 06:51:07 2005
New Revision: 231234

URL: http://svn.apache.org/viewcvs?rev=231234&view=rev
Log:
added more publet docs

Modified:
    lenya/docu/src/documentation/content/xdocs/1_4/reference/publets/index.xml

Modified: 
lenya/docu/src/documentation/content/xdocs/1_4/reference/publets/index.xml
URL: 
http://svn.apache.org/viewcvs/lenya/docu/src/documentation/content/xdocs/1_4/reference/publets/index.xml?rev=231234&r1=231233&r2=231234&view=diff
==============================================================================
--- lenya/docu/src/documentation/content/xdocs/1_4/reference/publets/index.xml 
(original)
+++ lenya/docu/src/documentation/content/xdocs/1_4/reference/publets/index.xml 
Wed Aug 10 06:51:07 2005
@@ -77,5 +77,27 @@
 
     </section>
     
+    <section>
+      <title>Implementing Usecases in Publets</title>
+      <p>
+        To declare usecases, add a patch file for <code>cocoon.xconf</code>, 
for instance <code>publet/config/usecases.xconf</code>:
+      </p>
+<source xml:space="preserve"><![CDATA[<xconf xpath="/cocoon/usecases"
+       unless="/cocoon/usecases/component-instance[@name = 'mypublet.edit']">
+  <component-instance name="mypublet.edit"
+                      logger="lenya.usecases.edit
+                      class="org.myproject.lenya.mypublet.usecases.Edit">
+    <view template="publets/mypublet/usecases/edit.jx" menu="false"/>
+  </component-instance>
+</xconf>]]></source>
+
+      <p>
+        As you can see in the view declaration, the JX templates are typically 
stored in the <code>mypublet/usecases</code>
+        directory. The Java source files go into the 
<code>mypublet/java/src</code> directory, they are compiled
+        automatically by the Lenya build process.
+      </p>
+
+    </section>
+    
   </body>
 </document>



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>