Author: mmcallis
Date: 2008-02-13 03:11:26 -0500 (Wed, 13 Feb 2008)
New Revision: 9951
Modified:
docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml
Log:
5.2.1.5. Building your Portlet minor revisions
Modified: docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml
===================================================================
---
docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml 2008-02-13
05:05:58 UTC (rev 9950)
+++
docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml 2008-02-13
08:11:26 UTC (rev 9951)
@@ -515,13 +515,13 @@
</screen>
</para>
<para>
- To display certain content or a file, use the
<computeroutput>cms</computeroutput> content-type, with the
<computeroutput><content-uri></computeroutput> element being the
path to the file in the CMS. This behavior is pluggable, and it is possible to plug in
almost any kind of content.
+ To display certain content or a file, use the
<computeroutput>cms</computeroutput> content-type, with the
<computeroutput><content-uri></computeroutput> element being the
path to the file in the CMS. This behavior is pluggable: you can plug in almost any type
of content.
</para>
</sect3>
<sect3 id="first_portlet_build">
<title>Building your Portlet</title>
<para>
- A pre-compiled
<filename>HelloWorldPortlet/helloworldportlet.war</filename> file is created
after extracting the <ulink
url="http://anonsvn.jboss.org/repos/portletswap/portlets/2_6/bundles...
file. To manually build the <filename>helloworldportlet.war</filename> file:
+ A pre-compiled
<filename>HelloWorldPortlet/helloworldportlet.war</filename> file is created
after extracting the <filename>HelloWorldPorlet.zip</filename> file. To
manually build the <filename>helloworldportlet.war</filename> file:
</para>
<para>
<orderedlist>
@@ -545,18 +545,18 @@
</orderedlist>
</para>
<para>
- Expanding the <filename>helloworldportlet.war</filename> allows you to
deploy the portlet as an expanded directory, which makes development easier. This gives
you access to the XML descriptors, resource files, JSF, and JSP pages. To expand the
<filename>helloworldportlet.war</filename> file:
+ Expanding the <filename>helloworldportlet.war</filename> allows you to
deploy the portlet as an expanded directory, which makes development easier. As well, it
gives you access to the XML descriptors, resource files, JSF, and JSP pages. To expand the
<filename>helloworldportlet.war</filename> file:
</para>
<para>
<orderedlist>
<listitem>
<para>
- If you do not have the
<filename>HelloWorldPortlet/helloworldportlet.war</filename> file, change into
the run the <filename>HelloWorldPortlet/</filename> directory and run the
<command>ant deploy</command> command to create it.
+ If you do not have the
<filename>HelloWorldPortlet/helloworldportlet.war</filename> file, change into
the <filename>HelloWorldPortlet/</filename> directory, and run the
<command>ant deploy</command> command. This creates a
<filename>helloworldportlet.war</filename> file.
</para>
</listitem>
<listitem>
<para>
- Change into the <filename>HelloWorldPortlet/</filename> directory
and run the <command>ant explode</command> command:
+ To expand the war file, change into the
<filename>HelloWorldPortlet/</filename> directory, and run the
<command>ant explode</command> command:
</para>
<para>
<mediaobject>
@@ -579,7 +579,7 @@
</mediaobject>
</para>
<para>
- The expanded directory and the XML descriptors are located in the
<filename>HelloWorldPortlet/output/lib/exploded/helloworldportlet.war/</filename>
directory. Touching the <filename>web.xml</filename> file will let any live
JBoss AS instance know that it needs to hot re-deploy the web application.
+ The expanded war file and the XML descriptors are located in the
<filename>HelloWorldPortlet/output/lib/exploded/helloworldportlet.war/</filename>
directory.
</para>
</sect3>
<sect3>
@@ -594,6 +594,8 @@
warUrl=.../tmp/deploy/tmp35219helloworldportlet-exp.war/]]></programlisting>
Pointing your browser to <ulink
url="http://localhost:8080/portal/">http://localhost:8080/portal/</ulink>,
should yield a view of our HelloWorldPortlet, added to the default page of
Portal:
+
+ <!-- Touching the <filename>web.xml</filename> file will let any
live JBoss AS instance know that it needs to hot re-deploy the web application. -->
<mediaobject>
<imageobject>
<imagedata align="center"
fileref="images/tutorials/first_portlet/output.png"
valign="middle"/>