Author: mmcallis
Date: 2008-07-09 23:52:14 -0400 (Wed, 09 Jul 2008)
New Revision: 11397
Modified:
docs/branches/JBoss_Portal_Branch_2_7/referenceGuide/en/modules/tutorials.xml
Log:
- code highlighting
- minor changes to screen/command examples to avoid mangled output
Modified: docs/branches/JBoss_Portal_Branch_2_7/referenceGuide/en/modules/tutorials.xml
===================================================================
---
docs/branches/JBoss_Portal_Branch_2_7/referenceGuide/en/modules/tutorials.xml 2008-07-10
03:32:55 UTC (rev 11396)
+++
docs/branches/JBoss_Portal_Branch_2_7/referenceGuide/en/modules/tutorials.xml 2008-07-10
03:52:14 UTC (rev 11397)
@@ -1901,7 +1901,7 @@
</filename>
directory into the JBoss AS or JBoss EAP
<filename>deploy/</filename>
- directory. On Linux, run the <command>touch $JBOSS_HOME/server/
<replaceable>configuration</replaceable>/deploy/helloworldjsfsunriportlet.war/WEB-INF/web.xml</command>
command to re-deploy the HelloWorldJSFSunRIPortlet.
+ directory. On Linux, run the <command>touch
$JBOSS_HOME/server/<replaceable>configuration</replaceable>/deploy/helloworldjsfsunriportlet.war/WEB-INF/web.xml</command>
command to re-deploy the HelloWorldJSFSunRIPortlet.
</para>
<para>
Re-deploying the HelloWorldJSFSunRIPortlet produces output to the JBoss
AS
@@ -2041,8 +2041,7 @@
Specification. You may define more than one portlet application in this
file:
</para>
- <para>
- <screen><![CDATA[
+ <programlisting role="XML"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<portlet-app
xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -2065,15 +2064,14 @@
</portlet-info>
</portlet>
</portlet-app>]]>
- </screen>
- </para>
+ </programlisting>
<para>
<variablelist>
<varlistentry>
<term>
- <screen><![CDATA[
+ <programlisting><![CDATA[
<portlet-class>org.apache.myfaces.portlet.MyFacesGenericPortlet</portlet-class>]]>
- </screen>
+</programlisting>
</term>
<listitem>
<para>
@@ -2090,12 +2088,12 @@
</varlistentry>
<varlistentry>
<term>
- <screen><![CDATA[
+ <programlisting><![CDATA[
<init-param>
<name>default-view</name>
<value>/WEB-INF/jsp/index.jsp</value>
</init-param>]]>
- </screen>
+</programlisting>
</term>
<listitem>
<para>
@@ -2106,11 +2104,11 @@
</varlistentry>
<varlistentry>
<term>
- <screen><![CDATA[
+ <programlisting><![CDATA[
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
-</supports>]]></screen>
+</supports>]]></programlisting>
</term>
<listitem>
<para>
@@ -2154,8 +2152,7 @@
<filename>HelloWorldJSFMyFaces42Portlet/WEB-INF/faces-config.xml</filename>
file:
</para>
- <para>
- <screen><![CDATA[
+ <programlisting role="XML"><![CDATA[
<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
@@ -2175,8 +2172,7 @@
</navigation-case>
</navigation-rule>
</faces-config>]]>
- </screen>
- </para>
+ </programlisting>
<para>
Without the
<filename>faces-config.xml</filename>
@@ -2197,13 +2193,12 @@
<filename>HelloWorldJSFMyFaces42Portlet/WEB-INF/web.xml</filename>
file:
</para>
- <para>
- <screen><![CDATA[
+ <programlisting role="XML"><![CDATA[
<context-param>
<param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
<param-value>true</param-value>
</context-param>]]>
- </screen>
+ </programlisting>
</para>
<para>
These extra parameters let the application server know that the portlet
@@ -2385,16 +2380,9 @@
</filename>
directory into the JBoss AS or JBoss EAP
<filename>deploy/</filename>
- directory. On Linux, run the following command to re-deploy the
- HelloWorldJSFMyFaces42Portlet:
+ directory. On Linux, run the <command>touch
$JBOSS_HOME/server/<replaceable>configuration</replaceable>/deploy/helloworldjsfmyfacesportlet.war/WEB-INF/web.xml</command>
command to re-deploy the
+ HelloWorldJSFMyFaces42Portlet.
</para>
- <para>
- <screen>
- touch $JBOSS_HOME/server/
- <replaceable>configuration</replaceable>
- /deploy/helloworldjsfmyfacesportlet.war/WEB-INF/web.xml
- </screen>
- </para>
</sect3>
</sect2>
<!-- sect2>