Author: julien(a)jboss.com
Date: 2008-03-03 16:23:00 -0500 (Mon, 03 Mar 2008)
New Revision: 10184
Added:
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/WEB-INF/tags/portal/2columns.tag
Removed:
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/WEB-INF/tags/portal/layout1.tag
Modified:
modules/portlet/trunk/docs/user-guide/en/modules/simpleportal.xml
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/admin.jsp
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/demo.jsp
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/demo1.jsp
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/demo2.jsp
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/demo3.jsp
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/wikipedia.jsp
Log:
updates
Modified: modules/portlet/trunk/docs/user-guide/en/modules/simpleportal.xml
===================================================================
--- modules/portlet/trunk/docs/user-guide/en/modules/simpleportal.xml 2008-03-03 15:41:53
UTC (rev 10183)
+++ modules/portlet/trunk/docs/user-guide/en/modules/simpleportal.xml 2008-03-03 21:23:00
UTC (rev 10184)
@@ -148,7 +148,7 @@
<portal:portleturl windowState="maximized" mode="edit"/>
...
</portal:portlet>]]></programlisting>
- <para>The portlet url tag has two optional attributes. The
<literal>windowState</literal> attribute allow
+ <para>The portlet url tag has two optional attributes. The
<literal>windowState</literal> attribute allows
to change the window state in the url and the
<literal>mode</literal> attribute controls the mode in
the url.</para>
</sect3>
@@ -259,17 +259,33 @@
</sect2>
<sect2>
<title>Extended tag library</title>
- <para>todo</para>
+ <para>This chapter talks about an extension of the simple portal tag
library that allows the display of portlets
+ pretty much as they are in classic portals. The extension is built on top the
simple portal tag library
+ and uses a feature of JSP 2.0 which is the tag library extension written using
JSP. There is a good article
+ to read about it <ulink
url="http://www.onjava.com/pub/a/onjava/2004/05/12/jsp2part4.html&qu...
+ <sect3>
+ <title>The extended portlet tag</title>
+ <para>The extended portlet is a JSP tag file located in the folder
<filename>/WEB-INF/tags/portal</filename>
+ of the simple portal war file.</para>
+ <programlisting><![CDATA[
+<%@ page contentType="text/html" %>
+<%@ page language="java" %>
+<%@ taglib prefix="xportal" tagdir="/WEB-INF/tags/portal" %>
+...
+ <xportal:portlet name="GoogleMap"
applicationName="samples-google-portlet"/>
+...
+]]></programlisting>
+ <para>You can consider this extension pretty much like a JSP include
except that it is more powerful. The
+ main interest is that this file can be edited and tweaked for your
needs.</para>
+ </sect3>
</sect2>
</sect1>
<sect1>
<title>Portlet debugging</title>
+ <para>todo</para>
</sect1>
<sect1>
<title>Administration</title>
+ <para>todo</para>
</sect1>
- <sect1>
- <title>Extensions</title>
- <para>Talk about mixing JSP with templating framework or other
taglib</para>
- </sect1>
</chapter>
Copied:
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/WEB-INF/tags/portal/2columns.tag
(from rev 10175,
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/WEB-INF/tags/portal/layout1.tag)
===================================================================
---
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/WEB-INF/tags/portal/2columns.tag
(rev 0)
+++
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/WEB-INF/tags/portal/2columns.tag 2008-03-03
21:23:00 UTC (rev 10184)
@@ -0,0 +1,17 @@
+<%@ tag body-content="scriptless" %>
+<%@ attribute name="leftcol" fragment="true"
required="false" %>
+<%@ attribute name="rightcol" fragment="true"
required="false" %>
+
+<%@ taglib uri="/WEB-INF/portal.tld" prefix="portal" %>
+
+ <div class="third-width float-left">
+ <jsp:invoke fragment="leftcol"/>
+ </div>
+ <div class="two-third-width float-left">
+ <jsp:invoke fragment="rightcol"/>
+ </div>
+
+
+
+
+
Deleted:
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/WEB-INF/tags/portal/layout1.tag
===================================================================
---
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/WEB-INF/tags/portal/layout1.tag 2008-03-03
15:41:53 UTC (rev 10183)
+++
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/WEB-INF/tags/portal/layout1.tag 2008-03-03
21:23:00 UTC (rev 10184)
@@ -1,17 +0,0 @@
-<%@ tag body-content="scriptless" %>
-<%@ attribute name="leftcol" fragment="true"
required="false" %>
-<%@ attribute name="rightcol" fragment="true"
required="false" %>
-
-<%@ taglib uri="/WEB-INF/portal.tld" prefix="portal" %>
-
- <div class="third-width float-left">
- <jsp:invoke fragment="leftcol"/>
- </div>
- <div class="two-third-width float-left">
- <jsp:invoke fragment="rightcol"/>
- </div>
-
-
-
-
-
Modified:
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/admin.jsp
===================================================================
---
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/admin.jsp 2008-03-03
15:41:53 UTC (rev 10183)
+++
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/admin.jsp 2008-03-03
21:23:00 UTC (rev 10184)
@@ -1,6 +1,6 @@
<%@ page contentType="text/html" %>
<%@ page language="java" %>
-<%@ taglib prefix="jbp" tagdir="/WEB-INF/tags/portal" %>
+<%@ taglib prefix="xportal" tagdir="/WEB-INF/tags/portal" %>
<%@ taglib uri="/WEB-INF/portal.tld" prefix="portal" %>
<%@ page isELIgnored="false" %>
@@ -8,7 +8,7 @@
<portal:page>
- <jbp:portlet name="AdminPortlet"
applicationName="simple-portal"/>
+ <xportal:portlet name="AdminPortlet"
applicationName="simple-portal"/>
</portal:page>
<%@ include file="/layouts/footer.jsp" %>
\ No newline at end of file
Modified: modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/demo.jsp
===================================================================
---
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/demo.jsp 2008-03-03
15:41:53 UTC (rev 10183)
+++
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/demo.jsp 2008-03-03
21:23:00 UTC (rev 10184)
@@ -1,6 +1,6 @@
<%@ page contentType="text/html" %>
<%@ page language="java" %>
-<%@ taglib prefix="jbp" tagdir="/WEB-INF/tags/portal" %>
+<%@ taglib prefix="xportal" tagdir="/WEB-INF/tags/portal" %>
<%@ taglib uri="/WEB-INF/portal.tld" prefix="portal" %>
<%@ page isELIgnored="false" %>
@@ -8,20 +8,20 @@
<portal:page>
<portal:pageparam namespaceURI="urn:jboss:portal:simple:google"
localName="zipcode" value="80201"/>
- <jbp:layout1>
+ <xportal:2columns>
<jsp:attribute name="leftcol">
- <jbp:portlet name="RemoteControl"
applicationName="samples-remotecontroller-portlet"/>
- <jbp:portlet name="Foo" applicationName="bar"/>
- <jbp:portlet name="ExceptionPortlet"
applicationName="samples-basic-portlet"/>
- <jbp:portlet name="Cart"
applicationName="samples-shoppingcart-portlet"/>
+ <xportal:portlet name="RemoteControl"
applicationName="samples-remotecontroller-portlet"/>
+ <xportal:portlet name="Foo"
applicationName="bar"/>
+ <xportal:portlet name="ExceptionPortlet"
applicationName="samples-basic-portlet"/>
+ <xportal:portlet name="Cart"
applicationName="samples-shoppingcart-portlet"/>
</jsp:attribute>
<jsp:attribute name="rightcol">
- <jbp:portlet name="GoogleMap"
applicationName="samples-google-portlet"/>
- <jbp:portlet name="GoogleWeather"
applicationName="samples-google-portlet"/>
- <jbp:portlet name="Catalog"
applicationName="samples-shoppincart-portlet"/>
- <jbp:portlet name="JSPPortlet"
applicationName="samples-jsp-portlet"/>
+ <xportal:portlet name="GoogleMap"
applicationName="samples-google-portlet"/>
+ <xportal:portlet name="GoogleWeather"
applicationName="samples-google-portlet"/>
+ <xportal:portlet name="Catalog"
applicationName="samples-shoppincart-portlet"/>
+ <xportal:portlet name="JSPPortlet"
applicationName="samples-jsp-portlet"/>
</jsp:attribute>
- </jbp:layout1>
+ </xportal:2columns>
</portal:page>
<%@ include file="/layouts/footer.jsp" %>
\ No newline at end of file
Modified:
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/demo1.jsp
===================================================================
---
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/demo1.jsp 2008-03-03
15:41:53 UTC (rev 10183)
+++
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/demo1.jsp 2008-03-03
21:23:00 UTC (rev 10184)
@@ -1,6 +1,6 @@
<%@ page contentType="text/html" %>
<%@ page language="java" %>
-<%@ taglib prefix="jbp" tagdir="/WEB-INF/tags/portal" %>
+<%@ taglib prefix="xportal" tagdir="/WEB-INF/tags/portal" %>
<%@ taglib uri="/WEB-INF/portal.tld" prefix="portal" %>
<%@ page isELIgnored="false" %>
@@ -8,14 +8,14 @@
<portal:page>
<portal:pageparam namespaceURI="urn:jboss:portal:simple:google"
localName="zipcode" value="80201"/>
- <jbp:layout1>
+ <xportal:2columns>
<jsp:attribute name="leftcol">
- <jbp:portlet name="Cart"
applicationName="samples-shoppingcart-portlet" id="cart-portlet"/>
+ <xportal:portlet name="Cart"
applicationName="samples-shoppingcart-portlet" id="cart-portlet"/>
</jsp:attribute>
<jsp:attribute name="rightcol">
- <jbp:portlet name="Catalog"
applicationName="samples-shoppingcart-portlet"/>
+ <xportal:portlet name="Catalog"
applicationName="samples-shoppingcart-portlet"/>
</jsp:attribute>
- </jbp:layout1>
+ </xportal:2columns>
</portal:page>
<%@ include file="/layouts/footer.jsp" %>
\ No newline at end of file
Modified:
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/demo2.jsp
===================================================================
---
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/demo2.jsp 2008-03-03
15:41:53 UTC (rev 10183)
+++
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/demo2.jsp 2008-03-03
21:23:00 UTC (rev 10184)
@@ -1,6 +1,6 @@
<%@ page contentType="text/html" %>
<%@ page language="java" %>
-<%@ taglib prefix="jbp" tagdir="/WEB-INF/tags/portal" %>
+<%@ taglib prefix="xportal" tagdir="/WEB-INF/tags/portal" %>
<%@ taglib uri="/WEB-INF/portal.tld" prefix="portal" %>
<%@ page isELIgnored="false" %>
@@ -8,18 +8,18 @@
<portal:page>
<portal:pageparam namespaceURI="urn:jboss:portal:simple:google"
localName="zipcode" value="80201"/>
- <jbp:layout1>
+ <xportal:2columns>
<jsp:attribute name="leftcol">
- <jbp:portlet name="RemoteControl"
applicationName="samples-remotecontroller-portlet"/>
+ <xportal:portlet name="RemoteControl"
applicationName="samples-remotecontroller-portlet"/>
</jsp:attribute>
<jsp:attribute name="rightcol">
- <jbp:portlet name="GoogleMap"
applicationName="samples-google-portlet"/>
- <jbp:portlet name="GoogleWeather"
applicationName="samples-google-portlet"/>
+ <xportal:portlet name="GoogleMap"
applicationName="samples-google-portlet"/>
+ <xportal:portlet name="GoogleWeather"
applicationName="samples-google-portlet"/>
</jsp:attribute>
- </jbp:layout1>
+ </xportal:2columns>
</portal:page>
<%@ include file="/layouts/footer.jsp" %>
\ No newline at end of file
Modified:
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/demo3.jsp
===================================================================
---
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/demo3.jsp 2008-03-03
15:41:53 UTC (rev 10183)
+++
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/demo3.jsp 2008-03-03
21:23:00 UTC (rev 10184)
@@ -1,6 +1,6 @@
<%@ page contentType="text/html" %>
<%@ page language="java" %>
-<%@ taglib prefix="jbp" tagdir="/WEB-INF/tags/portal" %>
+<%@ taglib prefix="xportal" tagdir="/WEB-INF/tags/portal" %>
<%@ taglib uri="/WEB-INF/portal.tld" prefix="portal" %>
<%@ page isELIgnored="false" %>
@@ -9,18 +9,18 @@
<portal:page>
<portal:pageparam namespaceURI="urn:jboss:portal:simple:google"
localName="zipcode" value="80201"/>
- <jbp:layout1>
+ <xportal:2columns>
<jsp:attribute name="leftcol">
- <jbp:portlet name="Foo" applicationName="bar"/>
+ <xportal:portlet name="Foo"
applicationName="bar"/>
</jsp:attribute>
<jsp:attribute name="rightcol">
- <jbp:portlet name="ExceptionPortlet"
applicationName="samples-basic-portlet"/>
- <jbp:portlet name="HeaderPortlet"
applicationName="samples-basic-portlet" id="header-portlet"/>
- <jbp:portlet name="FailDuringInitPortlet"
applicationName="samples-basic-portlet" id="header-portlet"/>
+ <xportal:portlet name="ExceptionPortlet"
applicationName="samples-basic-portlet"/>
+ <xportal:portlet name="HeaderPortlet"
applicationName="samples-basic-portlet" id="header-portlet"/>
+ <xportal:portlet name="FailDuringInitPortlet"
applicationName="samples-basic-portlet" id="header-portlet"/>
</jsp:attribute>
- </jbp:layout1>
+ </xportal:2columns>
</portal:page>
<%@ include file="/layouts/footer.jsp" %>
\ No newline at end of file
Modified:
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/wikipedia.jsp
===================================================================
---
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/wikipedia.jsp 2008-03-03
15:41:53 UTC (rev 10183)
+++
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/demo/wikipedia.jsp 2008-03-03
21:23:00 UTC (rev 10184)
@@ -1,6 +1,6 @@
<%@ page contentType="text/html" pageEncoding="UTF-8" %>
<%@ page language="java" %>
-<%@ taglib prefix="jbp" tagdir="/WEB-INF/tags/portal" %>
+<%@ taglib prefix="xportal" tagdir="/WEB-INF/tags/portal" %>
<%@ taglib uri="/WEB-INF/portal.tld" prefix="portal" %>
<%@ page isELIgnored="false" %>
@@ -10,7 +10,7 @@
<portal:pageparam namespaceURI="urn:jboss:portal:simple:google"
localName="zipcode" value="32080"/>
<div class="wiki-content full-width">
<div class="third-width float-right">
- <jbp:portlet name="GoogleMap"
applicationName="samples-google-portlet"/>
+ <xportal:portlet name="GoogleMap"
applicationName="samples-google-portlet"/>
</div>
<h2 class="title">St. Augustine, Florida</h2>