Author: bdaw
Date: 2007-04-30 07:20:53 -0400 (Mon, 30 Apr 2007)
New Revision: 7145
Modified:
docs/trunk/referenceGuide/en/modules/configuration.xml
docs/trunk/referenceGuide/en/modules/migration.xml
docs/trunk/referenceGuide/en/modules/tutorials.xml
Log:
corrected formating messed in pdf version
Modified: docs/trunk/referenceGuide/en/modules/configuration.xml
===================================================================
--- docs/trunk/referenceGuide/en/modules/configuration.xml 2007-04-30 10:52:14 UTC (rev
7144)
+++ docs/trunk/referenceGuide/en/modules/configuration.xml 2007-04-30 11:20:53 UTC (rev
7145)
@@ -145,26 +145,26 @@
</ulink>
.
<programlisting><![CDATA[
- <?xml version='1.0' encoding='utf-8'?>
- <!DOCTYPE hibernate-configuration PUBLIC
- "-//Hibernate/Hibernate Configuration DTD//EN"
-
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
- <hibernate-configuration>
- <session-factory>
- <property
name="connection.datasource">java:PortalDS</property>
- <property name="show_sql">false</property>
- <property
name="cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
- <property
name="cache.use_query_cache">true</property>
-
- <!-- Force the dialect instead of using autodetection -->
- <!--
- <property
name="dialect">org.hibernate.dialect.PostgreSQLDialect</property>
- -->
-
- <!-- Mapping files -->
- <mapping resource="conf/hibernate/user/domain.hbm.xml"/>
- </session-factory>
- </hibernate-configuration>
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE hibernate-configuration PUBLIC
+"-//Hibernate/Hibernate Configuration DTD//EN"
+"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+<hibernate-configuration>
+<session-factory>
+<property name="connection.datasource">java:PortalDS</property>
+<property name="show_sql">false</property>
+<property
name="cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
+<property name="cache.use_query_cache">true</property>
+
+<!-- Force the dialect instead of using autodetection -->
+<!--
+<property
name="dialect">org.hibernate.dialect.PostgreSQLDialect</property>
+-->
+
+<!-- Mapping files -->
+<mapping resource="conf/hibernate/user/domain.hbm.xml"/>
+</session-factory>
+</hibernate-configuration>
]]></programlisting>
</para>
</sect2>
Modified: docs/trunk/referenceGuide/en/modules/migration.xml
===================================================================
--- docs/trunk/referenceGuide/en/modules/migration.xml 2007-04-30 10:52:14 UTC (rev 7144)
+++ docs/trunk/referenceGuide/en/modules/migration.xml 2007-04-30 11:20:53 UTC (rev 7145)
@@ -129,15 +129,15 @@
you will find following configuration:
<programlisting>
<![CDATA[
- <window>
- <window-name>CMSWindow</window-name>
- <content>
- <content-type>cms</content-type>
- <content-uri>/default/index.html</content-uri>
- </content>
- <region>center</region>
- <height>0</height>
- </window>
+<window>
+ <window-name>CMSWindow</window-name>
+ <content>
+ <content-type>cms</content-type>
+ <content-uri>/default/index.html</content-uri>
+ </content>
+ <region>center</region>
+ <height>0</height>
+</window>
]]>
</programlisting>
</para>
Modified: docs/trunk/referenceGuide/en/modules/tutorials.xml
===================================================================
--- docs/trunk/referenceGuide/en/modules/tutorials.xml 2007-04-30 10:52:14 UTC (rev 7144)
+++ docs/trunk/referenceGuide/en/modules/tutorials.xml 2007-04-30 11:20:53 UTC (rev 7145)
@@ -124,7 +124,8 @@
public class HelloWorldPortlet extends GenericPortlet
{
- protected void doView(RenderRequest rRequest, RenderResponse rResponse) throws
PortletException, IOException, UnavailableException
+ protected void doView(RenderRequest rRequest, RenderResponse rResponse)
+ throws PortletException, IOException, UnavailableException
{
rResponse.setContentType("text/html");
PrintWriter writer = rResponse.getWriter();
@@ -194,7 +195,8 @@
<?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"
-
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1...
http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1...
+
http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
version="1.0">
<portlet>
<portlet-name>HelloWorldPortlet</portlet-name>
@@ -459,8 +461,10 @@
<emphasis>hot-deploy</emphasis>
:
<programlisting><![CDATA[
-18:25:56,366 INFO [Server] JBoss (MX MicroKernel) [4.0.3SP1 (build:
CVSTag=JBoss_4_0_3_SP1 date=200510231054)] Started in 1m:3s:688ms
-18:26:21,147 INFO [TomcatDeployer] deploy, ctxPath=/helloworldportlet,
warUrl=.../tmp/deploy/tmp35219helloworldportlet-exp.war/]]></programlisting>
+18:25:56,366 INFO [Server] JBoss (MX MicroKernel) [4.0.3SP1 (build:
+ CVSTag=JBoss_4_0_3_SP1 date=200510231054)] Started in 1m:3s:688ms
+18:26:21,147 INFO [TomcatDeployer] deploy, ctxPath=/helloworldportlet,
+
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:
@@ -529,7 +533,8 @@
public class HelloWorldJSPPortlet extends GenericPortlet
{
- protected void doView(RenderRequest rRequest, RenderResponse rResponse) throws
PortletException, IOException, UnavailableException
+ protected void doView(RenderRequest rRequest, RenderResponse rResponse)
+ throws PortletException, IOException, UnavailableException
{
rResponse.setContentType("text/html");
@@ -538,17 +543,20 @@
if(sYourName != null)
{
rRequest.setAttribute("yourname", sYourName);
- PortletRequestDispatcher prd =
getPortletContext().getRequestDispatcher("/WEB-INF/jsp/view2.jsp");
+ PortletRequestDispatcher prd = getPortletContext()
+ .getRequestDispatcher("/WEB-INF/jsp/view2.jsp");
prd.include(rRequest, rResponse);
}
else
{
- PortletRequestDispatcher prd =
getPortletContext().getRequestDispatcher("/WEB-INF/jsp/view.jsp");
+ PortletRequestDispatcher prd = getPortletContext()
+ .getRequestDispatcher("/WEB-INF/jsp/view.jsp");
prd.include(rRequest, rResponse);
}
}
- public void processAction(ActionRequest aRequest, ActionResponse aResponse) throws
PortletException, IOException, UnavailableException
+ public void processAction(ActionRequest aRequest, ActionResponse aResponse)
+ throws PortletException, IOException, UnavailableException
{
String sYourname = (String) aRequest.getParameter("yourname");
@@ -557,17 +565,21 @@
aResponse.setRenderParameter("yourname", sYourname);
}
- protected void doHelp(RenderRequest rRequest, RenderResponse rResponse) throws
PortletException, IOException, UnavailableException
+ protected void doHelp(RenderRequest rRequest, RenderResponse rResponse)
+ throws PortletException, IOException, UnavailableException
{
rResponse.setContentType("text/html");
- PortletRequestDispatcher prd =
getPortletContext().getRequestDispatcher("/WEB-INF/jsp/help.jsp");
+ PortletRequestDispatcher prd = getPortletContext()
+ .getRequestDispatcher("/WEB-INF/jsp/help.jsp");
prd.include(rRequest, rResponse);
}
- protected void doEdit(RenderRequest rRequest, RenderResponse rResponse) throws
PortletException, IOException, UnavailableException
+ protected void doEdit(RenderRequest rRequest, RenderResponse rResponse)
+ throws PortletException, IOException, UnavailableException
{
rResponse.setContentType("text/html");
- PortletRequestDispatcher prd =
getPortletContext().getRequestDispatcher("/WEB-INF/jsp/edit.jsp");
+ PortletRequestDispatcher prd = getPortletContext()
+ .getRequestDispatcher("/WEB-INF/jsp/edit.jsp");
prd.include(rRequest, rResponse);
}
}]]>
@@ -590,7 +602,8 @@
<listitem>
<para>
<programlisting><![CDATA[
-public void processAction(ActionRequest aRequest, ActionResponse aResponse) throws
PortletException, IOException, UnavailableException
+public void processAction(ActionRequest aRequest, ActionResponse aResponse)
+ throws PortletException, IOException, UnavailableException
{
String sYourname = (String) aRequest.getParameter("yourname");
@@ -613,7 +626,8 @@
<listitem>
<para>
<programlisting><![CDATA[
-protected void doView(RenderRequest rRequest, RenderResponse rResponse) throws
PortletException, IOException, UnavailableException
+protected void doView(RenderRequest rRequest, RenderResponse rResponse)
+ throws PortletException, IOException, UnavailableException
]]></programlisting>
In this case, our doView, is responsible for dispatching to the
appropriate jsp
<emphasis>view.jsp</emphasis>
@@ -655,7 +669,8 @@
<?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"
-
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1...
http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1...
+
http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
version="1.0">
<portlet>
<portlet-name>HelloWorldJSPPortlet</portlet-name>
@@ -717,17 +732,19 @@
<portlet:defineObjects/>
<div align="center">
- This is a simple HelloWorld JSP Portlet. Type in a name and it will dispatch to the
view2.jsp to print out your name.
+ This is a simple HelloWorld JSP Portlet. Type in a name and it will dispatch
+ to the view2.jsp to print out your name.
<br/>
- <form action="<portlet:actionURL><portlet:param name="page"
value="mainview"/></portlet:actionURL>"
- method="POST">
+ <form action="<portlet:actionURL><portlet:param name="page"
value="mainview"/>
+ </portlet:actionURL>" method="POST">
Name:<br/>
<input type="text" name="yourname"/>
</form>
<br/>
You can also link to other pages, using a renderURL, like <a
- href="<portlet:renderURL><portlet:param name="yourname"
value="Roy
Russo"></portlet:param></portlet:renderURL>">this</a>.
+ href="<portlet:renderURL><portlet:param name="yourname"
value="Roy Russo">
+ </portlet:param></portlet:renderURL>">this</a>.
</div>]]></programlisting>
<itemizedlist>
<listitem>
@@ -749,7 +766,10 @@
</listitem>
<listitem>
<para>
- <programlisting><![CDATA[<form
action="<portlet:actionURL><portlet:param name="page"
value="mainview"/></portlet:actionURL>"
method="POST">]]></programlisting>
+ <programlisting><![CDATA[
+<form action="<portlet:actionURL><portlet:param name="page"
value="mainview"/>
+ </portlet:actionURL>" method="POST">]]>
+ </programlisting>
We create an HTML form, but generate the URL it will post to,
using the portlet tag library. In
this case, notice how we are creating an
<emphasis>actionURL</emphasis>
@@ -761,7 +781,9 @@
<listitem>
<para>
<programlisting><![CDATA[
-<a href="<portlet:renderURL><portlet:param name="yourname"
value="Roy
Russo"></portlet:param></portlet:renderURL>">]]></programlisting>
+<a href="<portlet:renderURL><portlet:param name="yourname"
value="Roy Russo">
+</portlet:param></portlet:renderURL>">]]>
+ </programlisting>
Likewise, we are able to create a link to our
<emphasis>doView</emphasis>
, by simply creating it with a
@@ -832,8 +854,11 @@
<emphasis>hot-deploy</emphasis>
:
<programlisting><![CDATA[
-15:54:34,234 INFO [Server] JBoss (MX MicroKernel) [4.0.4.CR2 (build:
CVSTag=JBoss_4_0_4_CR2 date=200603311500)] Started in 1m:9s:766ms
-15:55:04,062 INFO [TomcatDeployer] deploy, ctxPath=/helloworldjspportlet,
warUrl=.../tmp/deploy/tmp57782helloworldjspportlet-exp.war/]]></programlisting>
+15:54:34,234 INFO [Server] JBoss (MX MicroKernel) [4.0.4.CR2 (build:
+ CVSTag=JBoss_4_0_4_CR2 date=200603311500)]
+ Started in 1m:9s:766ms
+15:55:04,062 INFO [TomcatDeployer] deploy, ctxPath=/helloworldjspportlet,
+
warUrl=.../tmp/deploy/tmp57782helloworldjspportlet-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:
@@ -913,7 +938,8 @@
<?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"
-
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1...
http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1...
+
http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
version="1.0">
<portlet>
<portlet-name>HelloWorldJSFPortlet</portlet-name>
@@ -1051,13 +1077,22 @@
<emphasis>hot-deploy</emphasis>
:
<programlisting><![CDATA[
-22:30:03,093 INFO [TomcatDeployer] deploy, ctxPath=/helloworldjsfportlet,
warUrl=.../tmp/deploy/tmp5571helloworldjsfportlet-exp.war/
-22:30:03,312 INFO [FacesConfigurator] Reading standard config
org/apache/myfaces/resource/standard-faces-config.xml
-22:30:03,390 INFO [FacesConfigurator] Reading config
jar:file:/C:/jboss-4.0.4.CR2/server/default/tmp/deploy/tmp5504jboss-portal.sar-contents/lib/jsf-facelets.jar!/META-INF/faces-config.xml
-22:30:03,406 INFO [FacesConfigurator] Reading config
jar:file:/C:/jboss-4.0.4.CR2/server/default/tmp/deploy/tmp5504jboss-portal.sar-contents/lib/tomahawk.jar!/META-INF/faces-config.xml
+22:30:03,093 INFO [TomcatDeployer] deploy, ctxPath=/helloworldjsfportlet,
+ warUrl=.../tmp/deploy/tmp5571helloworldjsfportlet-exp.war/
+22:30:03,312 INFO [FacesConfigurator] Reading standard config
+ org/apache/myfaces/resource/standard-faces-config.xml
+22:30:03,390 INFO [FacesConfigurator] Reading config
+ jar:file:/C:/jboss-4.0.4.CR2/server/default/tmp/deploy/
+ tmp5504jboss-portal.sar-contents/lib/jsf-facelets.jar!/
+ META-INF/faces-config.xml
+22:30:03,406 INFO [FacesConfigurator] Reading config jar:file:/C:/jboss-4.0.4.CR2/
+ server/default/tmp/deploy/tmp5504jboss-portal.sar-contents/
+ lib/tomahawk.jar!/META-INF/faces-config.xml
22:30:03,468 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
22:30:03,484 ERROR [LocaleUtils] Locale name null or empty, ignoring
-22:30:03,640 INFO [MyFacesGenericPortlet] PortletContext
'C:\jboss-4.0.4.CR2\server\default\.\tmp\deploy\tmp5571helloworldjsfportlet-exp.war\'
initialized.]]></programlisting>
+22:30:03,640 INFO [MyFacesGenericPortlet] PortletContext
'C:\jboss-4.0.4.CR2\server\
+ default\.\tmp\deploy\tmp5571helloworldjsfportlet-exp.war\'
+ initialized.]]></programlisting>
Pointing your browser to
<ulink
url="http://localhost:8080/portal/">http://localhost:8080/portal/</ulink>
, should yield a view of our HelloWorldJSFPortlet: