You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by dd...@apache.org on 2007/03/29 07:08:59 UTC
svn commit: r523561 -
/portals/pluto/branches/pluto-1.1.x/pluto-site/src/site/fml/faq.fml
Author: ddewolf
Date: Wed Mar 28 22:08:57 2007
New Revision: 523561
URL: http://svn.apache.org/viewvc?view=rev&rev=523561
Log:
Adding examples of jsp portlet embed config
Modified:
portals/pluto/branches/pluto-1.1.x/pluto-site/src/site/fml/faq.fml
Modified: portals/pluto/branches/pluto-1.1.x/pluto-site/src/site/fml/faq.fml
URL: http://svn.apache.org/viewvc/portals/pluto/branches/pluto-1.1.x/pluto-site/src/site/fml/faq.fml?view=diff&rev=523561&r1=523560&r2=523561
==============================================================================
--- portals/pluto/branches/pluto-1.1.x/pluto-site/src/site/fml/faq.fml (original)
+++ portals/pluto/branches/pluto-1.1.x/pluto-site/src/site/fml/faq.fml Wed Mar 28 22:08:57 2007
@@ -97,71 +97,51 @@
Simple, use the Pluto Portal Drivers "PortalDriverFilter". This allows
you to embed a portlet directly into a jsp page. To use it, do the following:
</p>
+ <p>
<ul>
<li>Add the Portal Driver listener Configuration to your web.xml
- <pre>
-<![CDATA[
-<listener>
- <listener-class>org.apache.pluto.driver.PortalStartupListener</listener-class>
-</listener>
-]]>
- </pre>
+ <textarea style="border:0; width: 100%; background:transparent; color:#555555" rows="3" readonly="true">
+<listener>
+ <listener-class>org.apache.pluto.driver.PortalStartupListener</listener-class>
+</listener>
+ </textarea>
</li>
<li>Add the PortalDriverFilter configuration to your web.xml
- <pre>
-<![CDATA[
-<filter>
- <filter-name>plutoPortalDriver</filter-name>
- <filter-class>org.apache.pluto.driver.PortalDriverFilter</filter-class>
-</filter>
+ <textarea style="border:0; width: 100%; background:transparent; color:#555555" rows="15" readonly="true">
+<filter>
+ <filter-name>plutoPortalDriver</filter-name>
+ <filter-class>org.apache.pluto.driver.PortalDriverFilter</filter-class>
+</filter>
-<filter-mapping>
- <filter-name>plutoPortalDriver</filter-name>
- <url-pattern>/about.jsp</url-pattern>
-</filter-mapping>
+<filter-mapping>
+ <filter-name>plutoPortalDriver</filter-name>
+ <url-pattern>/about.jsp</url-pattern>
+</filter-mapping>
-<filter-mapping>
- <filter-name>plutoPortalDriver</filter-name>
- <url-pattern>/about.jsp/*</url-pattern>
-</filter-mapping>
-]]>
- </pre>
+<filter-mapping>
+ <filter-name>plutoPortalDriver</filter-name>
+ <url-pattern>/about.jsp/*</url-pattern>
+</filter-mapping>
+ </textarea>
</li>
<li>Include the portlet (and perhaps some controls?) in your jsp.
- <pre>
-<![CDATA[
-<%@ taglib uri="http://portals.apache.org/pluto" prefix="pluto" %>
+ <textarea style="border:0; width: 100%; background:transparent; color:#555555" rows="15" readonly="true">
+%@ taglib uri="http://portals.apache.org/pluto" prefix="pluto" %
-<!-- Use pluto portlet tag to render the portlet -->
-<pluto:portlet portletId="${portlet}">
-
- <!-- Assemble the rendering result -->
- <div class="portlet" id='<c:out value="${portlet}"/>'>
- <div class="header">
- <!-- Portlet Mode Controls -->
- <pluto:modeAnchor portletMode="view"/>
- <pluto:modeAnchor portletMode="edit"/>
- <pluto:modeAnchor portletMode="help"/>
- <!-- Window State Controls -->
- <pluto:windowStateAnchor windowState="minimized"/>
- <pluto:windowStateAnchor windowState="maximized"/>
- <pluto:windowStateAnchor windowState="normal"/>
- <a href="<pluto:url windowState="minimized"/>"><span class="min"></span></a>
- <a href="<pluto:url windowState="maximized"/>"><span class="max"></span></a>
- <a href="<pluto:url windowState="normal"/>"><span class="norm"></span></a>
- <!-- Portlet Title -->
- <h2 class="title"><pluto:title/></h2>
- </div>
- <div class="body">
- <pluto:render/>
- </div>
- </div>
-
-</pluto:portlet>
-]]>
- </pre>
+<pluto:portlet portletId="${portlet}">
+ <div class="portlet" id='>c:out value="${portlet}"/>'>
+ <div class="header">
+ <h2 class="title"><pluto:title/></h2>
+ </div>
+ <div class="body">
+ <pluto:render/>
+ </div>
+ </div>
+</pluto:portlet>
+ </textarea>
</li>
</ul>
+ </p>
</answer>
</faq>