Author: bdaw
Date: 2007-04-30 08:30:06 -0400 (Mon, 30 Apr 2007)
New Revision: 7148
Modified:
docs/trunk/referenceGuide/en/modules/ajax.xml
docs/trunk/referenceGuide/en/modules/clustering.xml
docs/trunk/referenceGuide/en/modules/cmsPortlet.xml
docs/trunk/referenceGuide/en/modules/contentIntegration.xml
docs/trunk/referenceGuide/en/modules/ipc.xml
docs/trunk/referenceGuide/en/modules/security.xml
docs/trunk/referenceGuide/en/modules/themeandlayouts.xml
docs/trunk/referenceGuide/en/modules/wsrp.xml
docs/trunk/referenceGuide/en/modules/xmldescriptors.xml
Log:
corrected formating to make code samples fit in the page in pdf version
Modified: docs/trunk/referenceGuide/en/modules/ajax.xml
===================================================================
--- docs/trunk/referenceGuide/en/modules/ajax.xml 2007-04-30 11:40:01 UTC (rev 7147)
+++ docs/trunk/referenceGuide/en/modules/ajax.xml 2007-04-30 12:30:06 UTC (rev 7148)
@@ -29,7 +29,8 @@
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;"/>
- <!-- inject the theme, default to the Renaissance theme if nothing is selected for
the portal or the page -->
+ <!-- inject the theme, default to the Renaissance theme if
+ nothing is selected for the portal or the page -->
<p:theme themeName="renaissance"/>
<!-- insert header content that was possibly set by portlets on the page -->
<p:headerContent/>
@@ -55,9 +56,11 @@
</tr>
</table>
<div id="content-container">
- <!-- insert the content of the 'left' region of the page, and
assign the css selector id 'regionA' -->
+ <!-- insert the content of the 'left' region of the page,
+ and assign the css selector id 'regionA' -->
<p:region regionName='left' regionID='regionA'/>
- <!-- insert the content of the 'center' region of the page, and
assign the css selector id 'regionB' -->
+ <!-- insert the content of the 'center' region of the page,
+ and assign the css selector id 'regionB' -->
<p:region regionName='center' regionID='regionB'/>
<hr class="cleaner"/>
</div>
@@ -89,10 +92,14 @@
<renderSet name="divRenderer">
<set content-type="text/html">
<ajax-enabled>true</ajax-enabled>
-
<region-renderer>org.jboss.portal.theme.impl.render.div.DivRegionRenderer</region-renderer>
-
<window-renderer>org.jboss.portal.theme.impl.render.div.DivWindowRenderer</window-renderer>
-
<portlet-renderer>org.jboss.portal.theme.impl.render.div.DivPortletRenderer</portlet-renderer>
-
<decoration-renderer>org.jboss.portal.theme.impl.render.div.DivDecorationRenderer</decoration-renderer>
+ <region-renderer>org.jboss.portal.theme.impl.render.div.DivRegionRenderer
+ </region-renderer>
+ <window-renderer>org.jboss.portal.theme.impl.render.div.DivWindowRenderer
+ </window-renderer>
+ <portlet-renderer>org.jboss.portal.theme.impl.render.div.DivPortletRenderer
+ </portlet-renderer>
+
<decoration-renderer>org.jboss.portal.theme.impl.render.div.DivDecorationRenderer
+ </decoration-renderer>
</set>
</renderSet>
]]></programlisting>
Modified: docs/trunk/referenceGuide/en/modules/clustering.xml
===================================================================
--- docs/trunk/referenceGuide/en/modules/clustering.xml 2007-04-30 11:40:01 UTC (rev
7147)
+++ docs/trunk/referenceGuide/en/modules/clustering.xml 2007-04-30 12:30:06 UTC (rev
7148)
@@ -126,12 +126,15 @@
<!--
| Uncomment in clustered mode : use transactional replicated cache
-->
- <property
name="cache.provider_class">org.jboss.portal.core.hibernate.JMXTreeCacheProvider</property>
- <property
name="cache.object_name">portal:service=TreeCacheProvider,type=hibernate</property>
+ <property
name="cache.provider_class">org.jboss.portal.core.hibernate.JMXTreeCacheProvider
+ </property>
+ <property
name="cache.object_name">portal:service=TreeCacheProvider,type=hibernate
+ </property>
<!--
| Comment in clustered mode
- <property
name="cache.provider_configuration_file_resource_path">conf/hibernate/instance/ehcache.xml</property>
+ <property name="cache.provider_configuration_file_resource_path">
+ conf/hibernate/instance/ehcache.xml</property>
<property
name="cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
-->
]]></programlisting>
@@ -146,7 +149,8 @@
name="portal:service=TreeCache,type=hibernate">
<depends>jboss:service=Naming</depends>
<depends>jboss:service=TransactionManager</depends>
- <attribute
name="TransactionManagerLookupClass">org.jboss.cache.JBossTransactionManagerLookup</attribute>
+ <attribute name="TransactionManagerLookupClass">
+ org.jboss.cache.JBossTransactionManagerLookup</attribute>
<attribute name="IsolationLevel">REPEATABLE_READ</attribute>
<attribute name="CacheMode">REPL_SYNC</attribute>
<attribute name="ClusterName">portal.hibernate</attribute>
@@ -155,7 +159,8 @@
<mbean
code="org.jboss.portal.core.hibernate.JBossTreeCacheProvider"
name="portal:service=TreeCacheProvider,type=hibernate">
- <depends
optional-attribute-name="CacheName">portal:service=TreeCache,type=hibernate</depends>
+ <depends
optional-attribute-name="CacheName">portal:service=TreeCache,type=hibernate
+ </depends>
</mbean>
]]></programlisting>
More information can be found <ulink
url="http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossCacheHibernate&qu...;.
@@ -216,7 +221,8 @@
<mbean code="org.jboss.services.binding.ServiceBindingManager"
name="jboss.system:service=ServiceBindingManager">
<attribute name="ServerName">ports-01</attribute>
- <attribute
name="StoreURL">${jboss.home.url}/docs/examples/binding-manager/sample-bindings.xml</attribute>
+ <attribute name="StoreURL">
+ ${jboss.home.url}/docs/examples/binding-manager/sample-bindings.xml</attribute>
<attribute
name="StoreFactoryClassName">org.jboss.services.binding.XMLServicesStoreFactory</attribute>
</mbean>
]]></programlisting>
@@ -227,8 +233,10 @@
<mbean code="org.jboss.services.binding.ServiceBindingManager"
name="jboss.system:service=ServiceBindingManager">
<attribute name="ServerName">ports-02</attribute>
- <attribute
name="StoreURL">${jboss.home.url}/docs/examples/binding-manager/sample-bindings.xml</attribute>
- <attribute
name="StoreFactoryClassName">org.jboss.services.binding.XMLServicesStoreFactory</attribute>
+ <attribute name="StoreURL">
+ ${jboss.home.url}/docs/examples/binding-manager/sample-bindings.xml</attribute>
+ <attribute name="StoreFactoryClassName">
+ org.jboss.services.binding.XMLServicesStoreFactory</attribute>
</mbean>]]></programlisting>
</para>
<para>Setup a database that will be shared by the two nodes and obviously we
cannot use
@@ -278,7 +286,8 @@
Configuring the PortalCMSCacheLoader
CacheLoader configuratoon for 1.2.4SP2
-->
-<attribute
name="CacheLoaderClass">org.jboss.portal.cms.hibernate.state.PortalCMSCacheLoader</attribute>
+<attribute
name="CacheLoaderClass">org.jboss.portal.cms.hibernate.state.PortalCMSCacheLoader
+</attribute>
<attribute name="CacheLoaderConfig"
replace="false"></attribute>
<attribute name="CacheLoaderPassivation">false</attribute>
<attribute name="CacheLoaderPreload"></attribute>
@@ -385,7 +394,8 @@
</itemizedlist>
<para>
<programlisting><![CDATA[
-public void processAction(ActionRequest req, ActionResponse resp) throws
PortletException, IOException
+public void processAction(ActionRequest req, ActionResponse resp)
+ throws PortletException, IOException
{
...
if ("addItem".equals(action))
@@ -394,7 +404,8 @@
ShoppingCart cart = (PortletSession)session.getAttribute("cart");
cart.addItem(item);
- // Perform an explicit set in order to signal to the container that the object
state has changed
+ // Perform an explicit set in order to signal to the container that the object
+ // state has changed
session.setAttribute("cart", cart);
}
...
Modified: docs/trunk/referenceGuide/en/modules/cmsPortlet.xml
===================================================================
--- docs/trunk/referenceGuide/en/modules/cmsPortlet.xml 2007-04-30 11:40:01 UTC (rev
7147)
+++ docs/trunk/referenceGuide/en/modules/cmsPortlet.xml 2007-04-30 12:30:06 UTC (rev
7148)
@@ -164,8 +164,12 @@
<xmbean/>
<attribute name="Prefix">content</attribute>
<attribute
name="TargetWindowRef">default.default.CMSPortletWindow</attribute>
- <depends optional-attribute-name="Factory"
proxy-type="attribute">portal:commandFactory=Delegating</depends>
- <depends optional-attribute-name="CMSService"
proxy-type="attribute">portal:service=CMS</depends>
+ <depends optional-attribute-name="Factory"
proxy-type="attribute">
+ portal:commandFactory=Delegating
+ </depends>
+ <depends optional-attribute-name="CMSService"
proxy-type="attribute">
+ portal:service=CMS
+ </depends>
</mbean>
...]]>
</programlisting>
Modified: docs/trunk/referenceGuide/en/modules/contentIntegration.xml
===================================================================
--- docs/trunk/referenceGuide/en/modules/contentIntegration.xml 2007-04-30 11:40:01 UTC
(rev 7147)
+++ docs/trunk/referenceGuide/en/modules/contentIntegration.xml 2007-04-30 12:30:06 UTC
(rev 7148)
@@ -129,7 +129,8 @@
<para>First the <emphasis>doDispatch(RenderRequest req,
RenderResponse resp)</emphasis> is overriden in order
to branch the requeset flow to a method that will take care of displaying the
editor.</para>
<programlisting><![CDATA[
-protected void doDispatch(RenderRequest req, RenderResponse resp) throws
PortletException, PortletSecurityException, IOException
+protected void doDispatch(RenderRequest req, RenderResponse resp)
+ throws PortletException, PortletSecurityException, IOException
{
if (EDIT_CONTENT_MODE.equals(req.getPortletMode()))
{
@@ -177,7 +178,8 @@
// Get the portion of the path that is significant for us
String filePath = file.getCanonicalPath();
- return filePath.length() >= rootPath.length() ?
filePath.substring(rootPath.length()) : null;
+ return filePath.length() >=
+ rootPath.length() ? filePath.substring(rootPath.length()) : null;
}
]]></programlisting>
<programlisting><![CDATA[
@@ -207,7 +209,8 @@
<para>The editor is probably the longest part of the portlet. It tries
to stay simple though and goes directly
to the point.</para>
<programlisting><![CDATA[
-protected void doEditContent(RenderRequest req, RenderResponse resp) throws
PortletException, PortletSecurityException, IOException
+protected void doEditContent(RenderRequest req, RenderResponse resp)
+ throws PortletException, PortletSecurityException, IOException
{
// Get the uri value optionally provided by the portal
String uri = req.getParameter("content.uri");
@@ -220,7 +223,8 @@
}
else
{
- // Otherwise try to get the current directory we are browsing, if no current dir
exist we use the root
+ // Otherwise try to get the current directory we are browsing,
+ // if no current dir exist we use the root
String currentDir = req.getParameter("current_dir");
if (currentDir == null)
{
@@ -232,7 +236,8 @@
// Get the parent path
String parentPath = getContentURI(workingDir.getParentFile());
- // Get the children of the selected file, we use a filter to retain only text files
and avoid WEB-INF dir
+ // Get the children of the selected file, we use a filter
+ // to retain only text files and avoid WEB-INF dir
File[] children = workingDir.listFiles(filter);
// Configure the response
@@ -254,7 +259,8 @@
if (child.isDirectory())
{
choseDirURL.setParameter("current_dir", getContentURI(child));
- writer.print("<li><a href=\"" + choseDirURL +
"\">" + child.getName() + "</a></li>");
+ writer.print("<li><a href=\"" + choseDirURL +
"\">" + child.getName() +
+ "</a></li>");
}
}
writer.print("</ul><br/>");
@@ -270,7 +276,8 @@
if (child.isFile())
{
selectFileURL.setParameter("content.uri", getContentURI(child));
- writer.print("<li><a href=\"" + selectFileURL +
"\">" + child.getName() + "</a></li>");
+ writer.print("<li><a href=\"" + selectFileURL +
"\">" + child.getName() +
+ "</a></li>");
}
}
writer.print("</ul><br/>");
@@ -285,7 +292,8 @@
<para>Last but not least the portlet needs to implement the
<emphasis>doView(RenderRequest req, RenderResponse resp)</emphasis>
method in order to display the file that the portal window wants to
show.</para>
<programlisting><![CDATA[
-protected void doView(RenderRequest req, RenderResponse resp) throws PortletException,
PortletSecurityException, IOException
+protected void doView(RenderRequest req, RenderResponse resp)
+ throws PortletException, PortletSecurityException, IOException
{
// Get the URI provided by the portal
String uri = req.getParameter("uri");
@@ -343,7 +351,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>
Modified: docs/trunk/referenceGuide/en/modules/ipc.xml
===================================================================
--- docs/trunk/referenceGuide/en/modules/ipc.xml 2007-04-30 11:40:01 UTC (rev 7147)
+++ docs/trunk/referenceGuide/en/modules/ipc.xml 2007-04-30 12:30:06 UTC (rev 7148)
@@ -48,7 +48,8 @@
optional-attribute-name="Registry"
proxy-type="attribute">portal:service=ListenerRegistry</depends>
<attribute name="RegistryId">ipc_listener</attribute>
- <attribute
name="ListenerClassName">org.jboss.portlet.hello.HelloWorldPortletB$Listener</attribute>
+ <attribute
name="ListenerClassName">org.jboss.portlet.hello.HelloWorldPortletB$Listener
+ </attribute>
</mbean>
</server>]]>
</programlisting>
@@ -188,7 +189,8 @@
Now, in Portlet B, our listener innerclass will trigger the processAction() in
Portlet B, reading in the
parameters from the Portlet A form:
<programlisting><![CDATA[
-public void processAction(JBossActionRequest request, JBossActionResponse response)
throws PortletException, PortletSecurityException, IOException
+public void processAction(JBossActionRequest request, JBossActionResponse response)
+ throws PortletException, PortletSecurityException, IOException
{
String color = request.getParameter("color");
String text = request.getParameter("sometext");
Modified: docs/trunk/referenceGuide/en/modules/security.xml
===================================================================
--- docs/trunk/referenceGuide/en/modules/security.xml 2007-04-30 11:40:01 UTC (rev 7147)
+++ docs/trunk/referenceGuide/en/modules/security.xml 2007-04-30 12:30:06 UTC (rev 7148)
@@ -247,7 +247,9 @@
...
<service>
<service-name>PortalAuthorizationManagerFactory</service-name>
-
<service-class>org.jboss.portal.security.spi.auth.PortalAuthorizationManagerFactory</service-class>
+ <service-class>
+ org.jboss.portal.security.spi.auth.PortalAuthorizationManagerFactory
+ </service-class>
<service-ref>:service=PortalAuthorizationManagerFactory</service-ref>
</service>
...
@@ -269,7 +271,8 @@
public interface DomainConfigurator
{
Set getSecurityBindings(String uri);
- void setSecurityBindings(String uri, Set securityBindings) throws
SecurityConfigurationException;
+ void setSecurityBindings(String uri, Set securityBindings)
+ throws SecurityConfigurationException;
void removeSecurityBindings(String uri) throws SecurityConfigurationException;
}</programlisting>
<para>The various methods of that interface allows to configure security
bindings for a given resource where
Modified: docs/trunk/referenceGuide/en/modules/themeandlayouts.xml
===================================================================
--- docs/trunk/referenceGuide/en/modules/themeandlayouts.xml 2007-04-30 11:40:01 UTC (rev
7147)
+++ docs/trunk/referenceGuide/en/modules/themeandlayouts.xml 2007-04-30 12:30:06 UTC (rev
7148)
@@ -274,17 +274,17 @@
parse the content and register the layouts with the layout service of the
portal. Here
is an example of such a descriptor file:
<programlisting><![CDATA[
- <layouts>
- <layout>
- <name>phalanx</name>
- <uri>/phalanx/index.jsp</uri>
- </layout>
- <layout>
- <name>industrial</name>
- <uri>/industrial/index.jsp</uri>
- <uri
state="maximized">/industrial/maximized.jsp</uri>
- </layout>
- </layouts>]]></programlisting>
+<layouts>
+ <layout>
+ <name>phalanx</name>
+ <uri>/phalanx/index.jsp</uri>
+ </layout>
+ <layout>
+ <name>industrial</name>
+ <uri>/industrial/index.jsp</uri>
+ <uri state="maximized">/industrial/maximized.jsp</uri>
+ </layout>
+</layouts>]]></programlisting>
</para>
</sect2>
<sect2>
@@ -394,7 +394,8 @@
<programlisting>
<![CDATA[
<%@ taglib uri="/WEB-INF/theme/portal-layout.tld" prefix="p"
%>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>JBoss Portal</title>
@@ -421,7 +422,10 @@
<p:region regionName='center'
regionID='regionB'/>
<hr class="cleaner" />
<div id="footer-container"
class="portal-copyright">Powered by
- <a class="portal-copyright"
href="http://www.jboss.com/products/jbossportal">JBoss Portal</a>
+ <a class="portal-copyright"
+
href="http://www.jboss.com/products/jbossportal">
+ JBoss Portal
+ </a>
</div>
</div>
</div>
@@ -664,25 +668,25 @@
is named portal-renderSet.xml. Here is an example descriptor:
<programlisting>
<![CDATA[
- <?xml version="1.0" encoding="UTF-8"?>
- <portal-renderSet>
- <renderSet name="divRenderer">
- <set content-type="text/html">
-
<region-renderer>org.jboss.portal.theme.impl.render.DivRegionRenderer</region-renderer>
-
<window-renderer>org.jboss.portal.theme.impl.render.DivWindowRenderer</window-renderer>
-
<portlet-renderer>org.jboss.portal.theme.impl.render.DivPortletRenderer</portlet-renderer>
-
<decoration-renderer>org.jboss.portal.theme.impl.render.DivDecorationRenderer</decoration-renderer>
- </set>
- </renderSet>
- <renderSet name="emptyRenderer">
- <set content-type="text/html">
-
<region-renderer>org.jboss.portal.theme.impl.render.EmptyRegionRenderer</region-renderer>
-
<window-renderer>org.jboss.portal.theme.impl.render.EmptyWindowRenderer</window-renderer>
-
<portlet-renderer>org.jboss.portal.theme.impl.render.EmptyPortletRenderer</portlet-renderer>
-
<decoration-renderer>org.jboss.portal.theme.impl.render.EmptyDecorationRenderer</decoration-renderer>
- </set>
- </renderSet>
- </portal-renderSet>
+<?xml version="1.0" encoding="UTF-8"?>
+<portal-renderSet>
+<renderSet name="divRenderer">
+<set content-type="text/html">
+<region-renderer>org.jboss.portal.theme.impl.render.DivRegionRenderer</region-renderer>
+<window-renderer>org.jboss.portal.theme.impl.render.DivWindowRenderer</window-renderer>
+<portlet-renderer>org.jboss.portal.theme.impl.render.DivPortletRenderer</portlet-renderer>
+<decoration-renderer>org.jboss.portal.theme.impl.render.DivDecorationRenderer</decoration-renderer>
+</set>
+</renderSet>
+<renderSet name="emptyRenderer">
+<set content-type="text/html">
+<region-renderer>org.jboss.portal.theme.impl.render.EmptyRegionRenderer</region-renderer>
+<window-renderer>org.jboss.portal.theme.impl.render.EmptyWindowRenderer</window-renderer>
+<portlet-renderer>org.jboss.portal.theme.impl.render.EmptyPortletRenderer</portlet-renderer>
+<decoration-renderer>org.jboss.portal.theme.impl.render.EmptyDecorationRenderer</decoration-renderer>
+</set>
+</renderSet>
+</portal-renderSet>
]]></programlisting>
</para>
</sect2>
@@ -693,57 +697,57 @@
is an example of a portal descriptor:
<programlisting>
<![CDATA[
- <?xml version="1.0" encoding="UTF-8"?>
- <portal>
- <portal-name>default</portal-name>
- <properties>
- <!-- use the divRenderer for this portal -->
- <property>
- <name>theme.renderSetId</name>
- <value>divRenderer</value>
- </property>
- </properties>
- <pages>
- <default-page>default</default-page>
- <page>
- <page-name>default</page-name>
- <properties>
- <!-- overwrite the portal's renderset for this page -->
- <property>
- <name>theme.renderSetId</name>
- <value>emptyRenderer</value>
- </property>
- </properties>
- <window>
- <window-name>TestPortletWindow</window-name>
- <instance-ref>TestPortletInstance</instance-ref>
- <region>center</region>
- <height>0</height>
- </window>
- </page>
- </pages>
- </portal>
+<?xml version="1.0" encoding="UTF-8"?>
+<portal>
+<portal-name>default</portal-name>
+<properties>
+<!-- use the divRenderer for this portal -->
+<property>
+<name>theme.renderSetId</name>
+<value>divRenderer</value>
+</property>
+</properties>
+<pages>
+<default-page>default</default-page>
+<page>
+<page-name>default</page-name>
+<properties>
+<!-- overwrite the portal's renderset for this page -->
+<property>
+<name>theme.renderSetId</name>
+<value>emptyRenderer</value>
+</property>
+</properties>
+<window>
+<window-name>TestPortletWindow</window-name>
+<instance-ref>TestPortletInstance</instance-ref>
+<region>center</region>
+<height>0</height>
+</window>
+</page>
+</pages>
+</portal>
]]></programlisting>
Here is an example of a layout descriptor with an anonymous
RenderSet:
<programlisting>
<![CDATA[
- <?xml version="1.0" encoding="UTF-8"?>
- <layouts>
- <renderSet>
- <set content-type="text/html">
-
<region-renderer>org.foo.theme.render.MyRegionRenderer</region-renderer>
-
<window-renderer>org.foo.theme.render.MyWindowRenderer</window-renderer>
-
<portlet-renderer>org.foo.theme.render.MyPortletRenderer</portlet-renderer>
-
<decoration-renderer>org.foo.theme.render.MyDecorationRenderer</decoration-renderer>
- </set>
- </renderSet>
- <layout>
- <name>generic</name>
- <uri>/generic/index.jsp</uri>
- <uri state="maximized">/generic/maximized.jsp</uri>
- </layout>
- </layouts>
+<?xml version="1.0" encoding="UTF-8"?>
+<layouts>
+<renderSet>
+<set content-type="text/html">
+<region-renderer>org.foo.theme.render.MyRegionRenderer</region-renderer>
+<window-renderer>org.foo.theme.render.MyWindowRenderer</window-renderer>
+<portlet-renderer>org.foo.theme.render.MyPortletRenderer</portlet-renderer>
+<decoration-renderer>org.foo.theme.render.MyDecorationRenderer</decoration-renderer>
+</set>
+</renderSet>
+<layout>
+<name>generic</name>
+<uri>/generic/index.jsp</uri>
+<uri state="maximized">/generic/maximized.jsp</uri>
+</layout>
+</layouts>
]]></programlisting>
Again, anologous to layout strategies, the anonymous RenderSet
overwrites the one specified for the page, and that overwrites the one
specified for the
@@ -760,30 +764,30 @@
aspects:
<programlisting>
<![CDATA[
- <window>
- <window-name>NavigationPortletWindow</window-name>
- <instance-ref>NavigationPortletInstance</instance-ref>
- <region>navigation</region>
- <height>0</height>
- <!-- overwrite portal and page properties set for the renderSet for
this window -->
- <properties>
- <!-- use the window renderer from the emptyRenderer renderSet
-->
- <property>
- <name>theme.windowRendererId</name>
- <value>emptyRenderer</value>
- </property>
- <!-- use the decoration renderer from the emptyRenderer renderSet
-->
- <property>
- <name>theme.decorationRendererId</name>
- <value>emptyRenderer</value>
- </property>
- <!-- use the portlet renderer from the emptyRenderer renderSet
-->
- <property>
- <name>theme.portletRendererId</name>
- <value>emptyRenderer</value>
- </property>
- </properties>
- </window>]]></programlisting>
+<window>
+ <window-name>NavigationPortletWindow</window-name>
+ <instance-ref>NavigationPortletInstance</instance-ref>
+ <region>navigation</region>
+ <height>0</height>
+ <!-- overwrite portal and page properties set for the renderSet for this window
-->
+ <properties>
+ <!-- use the window renderer from the emptyRenderer renderSet -->
+ <property>
+ <name>theme.windowRendererId</name>
+ <value>emptyRenderer</value>
+ </property>
+ <!-- use the decoration renderer from the emptyRenderer renderSet -->
+ <property>
+ <name>theme.decorationRendererId</name>
+ <value>emptyRenderer</value>
+ </property>
+ <!-- use the portlet renderer from the emptyRenderer renderSet -->
+ <property>
+ <name>theme.portletRendererId</name>
+ <value>emptyRenderer</value>
+ </property>
+ </properties>
+</window>]]></programlisting>
</para>
</sect2>
@@ -819,68 +823,68 @@
by the portal. Here is an example of a theme descriptor:
<programlisting>
<![CDATA[
- <themes>
- <theme>
- <name>nodesk</name>
- <link href="/nodesk/css/portal_style.css"
rel="stylesheet" type="text/css" />
- <link rel="shortcut icon"
href="/images/favicon.ico" />
- </theme>
- <theme>
- <name>phalanx</name>
- <link href="/phalanx/css/portal_style.css"
rel="stylesheet" type="text/css" />
- <link rel="shortcut icon"
href="/images/favicon.ico" />
- </theme>
-
- <theme>
- <name>industrial-CSSSelect</name>
- <link rel="stylesheet" id="main_css"
href="/industrial/portal_style.css" type="text/css" />
- <link rel="shortcut icon"
href="/industrial/images/favicon.ico" />
-
- <script language="JavaScript"
type="text/javascript">
- // MAF - script to switch current tab and css in layout...
- function switchCss(currentTab,colNum) {
- var obj = currentTab;
- var objParent = obj.parentNode;
-
- if (document.getElementById("current") != null) {
- var o = document.getElementById("current");
- o.setAttribute("id","");
- o.className = 'hoverOff';
- objParent.setAttribute("id","current");
- }
-
- var css = document.getElementById("main_css");
- source = css.href;
- if (colNum == "3Col") {
- if (source.indexOf("portal_style.css" != -1)) {
- source =
source.replace("portal_style.css","portal_style_3Col.css");
- }
- if (source.indexOf("portal_style_1Col.css" != -1)) {
- source =
source.replace("portal_style_1Col.css","portal_style_3Col.css");
- }
- }
- if (colNum == "2Col") {
- if (source.indexOf("portal_style_3Col.css" != -1)) {
- source =
source.replace("portal_style_3Col.css","portal_style.css");
- }
- if (source.indexOf("portal_style_1Col.css" != -1)) {
- source =
source.replace("portal_style_1Col.css","portal_style.css");
- }
- }
- if (colNum == "1Col") {
- if (source.indexOf("portal_style_3Col.css" != -1)) {
- source =
source.replace("portal_style_3Col.css","portal_style_1Col.css");
- }
- if (source.indexOf("portal_style.css" != -1)) {
- source =
source.replace("portal_style.css","portal_style_1Col.css");
- }
- }
-
- css.href = source;
- }
- </script>
- </theme>
- </themes>
+<themes>
+<theme>
+<name>nodesk</name>
+<link href="/nodesk/css/portal_style.css" rel="stylesheet"
type="text/css" />
+<link rel="shortcut icon" href="/images/favicon.ico" />
+</theme>
+<theme>
+<name>phalanx</name>
+<link href="/phalanx/css/portal_style.css" rel="stylesheet"
type="text/css" />
+<link rel="shortcut icon" href="/images/favicon.ico" />
+</theme>
+
+<theme>
+<name>industrial-CSSSelect</name>
+<link rel="stylesheet" id="main_css"
href="/industrial/portal_style.css" type="text/css" />
+<link rel="shortcut icon" href="/industrial/images/favicon.ico"
/>
+
+<script language="JavaScript" type="text/javascript">
+// MAF - script to switch current tab and css in layout...
+function switchCss(currentTab,colNum) {
+var obj = currentTab;
+var objParent = obj.parentNode;
+
+if (document.getElementById("current") != null) {
+var o = document.getElementById("current");
+o.setAttribute("id","");
+o.className = 'hoverOff';
+objParent.setAttribute("id","current");
+}
+
+var css = document.getElementById("main_css");
+source = css.href;
+if (colNum == "3Col") {
+if (source.indexOf("portal_style.css" != -1)) {
+source = source.replace("portal_style.css","portal_style_3Col.css");
+}
+if (source.indexOf("portal_style_1Col.css" != -1)) {
+source =
source.replace("portal_style_1Col.css","portal_style_3Col.css");
+}
+}
+if (colNum == "2Col") {
+if (source.indexOf("portal_style_3Col.css" != -1)) {
+source = source.replace("portal_style_3Col.css","portal_style.css");
+}
+if (source.indexOf("portal_style_1Col.css" != -1)) {
+source = source.replace("portal_style_1Col.css","portal_style.css");
+}
+}
+if (colNum == "1Col") {
+if (source.indexOf("portal_style_3Col.css" != -1)) {
+source =
source.replace("portal_style_3Col.css","portal_style_1Col.css");
+}
+if (source.indexOf("portal_style.css" != -1)) {
+source = source.replace("portal_style.css","portal_style_1Col.css");
+}
+}
+
+css.href = source;
+}
+</script>
+</theme>
+</themes>
]]></programlisting>
</para>
<para>Themes are defined in the portal-themes.xml theme descriptor, which
is localted in
@@ -897,74 +901,77 @@
theme for the theme test page:
<programlisting>
<![CDATA[
- <portal>
- <portal-name>default</portal-name>
- <properties>
- <!-- Set the theme for the default portal -->
- <property>
- <name>layout.id</name>
- <value>phalanx</value>
- </property>
- </properties>
- <pages>
- <page>
- <page-name>theme test</page-name>
- <properties>
- <!-- set a difference layout for this page -->
- <property>
- <name>layout.id</name>
- <value>industrial</value>
- </property>
- </properties>
- <window>
- <window-name>CatalogPortletWindow</window-name>
- <instance-ref>CatalogPortletInstance</instance-ref>
- <region>left</region>
- <height>0</height>
- </window>
- </page>
- </pages>
- </portal>
+<portal>
+<portal-name>default</portal-name>
+<properties>
+<!-- Set the theme for the default portal -->
+<property>
+<name>layout.id</name>
+<value>phalanx</value>
+</property>
+</properties>
+<pages>
+<page>
+<page-name>theme test</page-name>
+<properties>
+<!-- set a difference layout for this page -->
+<property>
+<name>layout.id</name>
+<value>industrial</value>
+</property>
+</properties>
+<window>
+<window-name>CatalogPortletWindow</window-name>
+<instance-ref>CatalogPortletInstance</instance-ref>
+<region>left</region>
+<height>0</height>
+</window>
+</page>
+</pages>
+</portal>
]]></programlisting>
And here is an example of a layout JSP that defines a default
theme to use if no other theme was defined for the portal or page:
<programlisting>
<![CDATA[
- <%@ taglib uri="/WEB-INF/theme/portal-layout.tld"
prefix="p" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html
xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title><%= "JBoss Portal :: 2.2 early (Industrial)"
%></title>
- <meta http-equiv="Content-Type"
content="text/html;" />
- <p:theme themeName='industrial' />
- <p:headerContent />
- </head>
- <body id="body">
- <div id="portal-container">
- <div id="sizer">
- <div id="expander">
- <div id="logoName"></div>
- <table border="0" cellpadding="0"
cellspacing="0" id="header-container">
- <tr>
- <td align="center" valign="top"
id="header"><div id="spacer"></div></td>
- </tr>
- </table>
- <div id="content-container">
- <p:region
regionName='This-Is-The-Page-Region-To-Query-The-Page'
-
regionID='This-Is-The-Tag-ID-Attribute-To-Match-The-CSS-Selector'/>
- <p:region regionName='left' regionID='regionA'/>
- <p:region regionName='center' regionID='regionB'/>
- <hr class="cleaner" />
- <div id="footer-container"
class="portal-copyright">Powered by
- <a class="portal-copyright"
href="http://www.jboss.com/products/jbossportal">JBoss
Portal</a><br/>
- Theme by <a class="portal-copyright"
href="http://www.novell.com">Novell</a>
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
- </html>
+<%@ taglib uri="/WEB-INF/theme/portal-layout.tld" prefix="p"
%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title><%= "JBoss Portal :: 2.2 early (Industrial)"
%></title>
+<meta http-equiv="Content-Type" content="text/html;" />
+<p:theme themeName='industrial' />
+<p:headerContent />
+</head>
+<body id="body">
+<div id="portal-container">
+<div id="sizer">
+<div id="expander">
+<div id="logoName"></div>
+<table border="0" cellpadding="0" cellspacing="0"
id="header-container">
+<tr>
+<td align="center" valign="top" id="header"><div
id="spacer"></div></td>
+</tr>
+</table>
+<div id="content-container">
+<p:region regionName='This-Is-The-Page-Region-To-Query-The-Page'
+regionID='This-Is-The-Tag-ID-Attribute-To-Match-The-CSS-Selector'/>
+<p:region regionName='left' regionID='regionA'/>
+<p:region regionName='center' regionID='regionB'/>
+<hr class="cleaner" />
+<div id="footer-container" class="portal-copyright">Powered by
+<a class="portal-copyright"
href="http://www.jboss.com/products/jbossportal">
+ JBoss Portal
+</a><br/>
+Theme by <a class="portal-copyright"
href="http://www.novell.com">Novell</a>
+</div>
+</div>
+</div>
+</div>
+</div>
+</body>
+</html>
]]></programlisting>
For the function of the individual tags in this example, please
refere to the layout section of this document.
@@ -1005,20 +1012,21 @@
use of the headerContent JSP tag, like:
<programlisting>
<![CDATA[
- <%@ taglib uri="/WEB-INF/theme/portal-layout.tld"
prefix="p" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html
xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title><JBoss Portal 2.2 early</title>
- <meta http-equiv="Content-Type" content="text/html;"
/>
-
- <p:headerContent />
-
- </head>
- <body id="body">
- <p>...</p>
- </body>
- </html>
+<%@ taglib uri="/WEB-INF/theme/portal-layout.tld" prefix="p"
%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title><JBoss Portal 2.2 early</title>
+<meta http-equiv="Content-Type" content="text/html;" />
+
+<p:headerContent />
+
+</head>
+<body id="body">
+<p>...</p>
+</body>
+</html>
]]></programlisting>
</para>
</sect2>
@@ -1029,14 +1037,15 @@
jboss-portlet.xml descriptor, like:
<programlisting>
<![CDATA[
- <portlet-app>
- <portlet>
- <portlet-name>HeaderContentPortlet</portlet-name>
- <header-content>
- <link rel="stylesheet" type="text/css"
href="/portlet-styles/HeaderContent.css" title=""
media="screen" />
- </header-content>
- </portlet>
- </portlet-app>
+<portlet-app>
+<portlet>
+<portlet-name>HeaderContentPortlet</portlet-name>
+<header-content>
+<link rel="stylesheet" type="text/css"
href="/portlet-styles/HeaderContent.css"
+ title="" media="screen" />
+</header-content>
+</portlet>
+</portlet-app>
]]></programlisting>
</para>
<para>This functionality, just like the previously described header
content injection,
@@ -1052,19 +1061,19 @@
If a window definition (in the portal descriptor) contains a property like:
<programlisting>
<![CDATA[
- <window>
- <window-name>HintPortletWindow</window-name>
- <instance-ref>HintPortletInstance</instance-ref>
- <region>center</region>
- <height>0</height>
- <properties>
- <!-- turn the decoration off for this portlet (i.e. no title and
mode/state links) -->
- <property>
- <name>theme.decorationRendererId</name>
- <value>emptyRenderer</value>
- </property>
- </properties>
- </window>
+<window>
+ <window-name>HintPortletWindow</window-name>
+ <instance-ref>HintPortletInstance</instance-ref>
+ <region>center</region>
+ <height>0</height>
+ <properties>
+ <!-- turn the decoration off for this portlet (i.e. no title and mode/state
links) -->
+ <property>
+ <name>theme.decorationRendererId</name>
+ <value>emptyRenderer</value>
+ </property>
+ </properties>
+</window>
]]></programlisting>
the DivWindowRenderer will use the decoration renderer from the
emptyRenderer
RenderSet to render the decoration for this window (not delegate to the
DivDecorationRenderer).
@@ -1143,11 +1152,11 @@
<listitem>
<para>Portal Body Selector
<programlisting>
- #body {
- background-image: url(images/portal_background.gif);
- margin: 0px;
- padding: 0px;
- }
+#body {
+background-image: url(images/portal_background.gif);
+margin: 0px;
+padding: 0px;
+}
</programlisting>
Usage: This selector controls the background of the page, and can be
modified
to set a base font-family, layout margin, etc. that will be
inherited by all
@@ -1158,12 +1167,12 @@
<listitem>
<para>Portal Header Selectors
<programlisting>
- #spacer {
- width: 1024px;
- line-height: 0px;
- font-size: 0px;
- height: 0px;
- }
+#spacer {
+width: 1024px;
+line-height: 0px;
+font-size: 0px;
+height: 0px;
+}
</programlisting>
Usage: Spacer div used to keep header at certain width regardless of
display
size. This is done to avoid overlapping of tab navigation in header.
To account
@@ -1171,15 +1180,15 @@
horizontal scroll in the browser which eliminates any issue with
overlapping
elements in the header.
<programlisting>
- #header-container {
- background-image: url(images/portal_background.gif);
- background-repeat: repeat-y;
- height: 100%;
- min-width: 1000px;
- width: 100%;
- /* test to reposition header on page
- position: absolute;
- bottom: 5px;*/
+#header-container {
+background-image: url(images/portal_background.gif);
+background-repeat: repeat-y;
+height: 100%;
+min-width: 1000px;
+width: 100%;
+/* test to reposition header on page
+position: absolute;
+bottom: 5px;*/
}
</programlisting>
Usage: Wrapper selector used to control the position of the header
on the page
@@ -1194,29 +1203,29 @@
</imageobject>
</para>
<programlisting>
- #header {
- background-image: url(images/header.gif);
- background-repeat: repeat-x;
- height: 100px;
- padding: 0px;
- /*margin: 0 25% 0 25%;*/
- }
+#header {
+background-image: url(images/header.gif);
+background-repeat: repeat-x;
+height: 100px;
+padding: 0px;
+/*margin: 0 25% 0 25%;*/
+}
</programlisting>
Usage: This selector applies the header background image in the
portal. It can
be adjusted to accommodate a header background of a certain
width/height or, as
it currently does, repeat the header graphic so that it tiles across
the header
portion of the page.
<programlisting>
- #logoName {
- background-image: url(images/JBossLogo.gif);
- background-repeat: no-repeat;
- width: 187px;
- height: 35px;
- position: absolute;
- left: 15px;
- top: 16px;
- z-index: 2;
- }
+#logoName {
+background-image: url(images/JBossLogo.gif);
+background-repeat: no-repeat;
+width: 187px;
+height: 35px;
+position: absolute;
+left: 15px;
+top: 16px;
+z-index: 2;
+}
</programlisting>
Usage: Logo selector which is used to brand the header with a
specific,
customized logo. The style is applied as an ID on an absolutely
positioned DIV
@@ -1227,12 +1236,12 @@
<listitem>
<para>Portal Layout Region Selectors
<programlisting>
- #portal-container {
- /*width: 100%;*/
+#portal-container {
+/*width: 100%;*/
- /*IE specific approach to preserve min-width for portlet regions
*/
- padding: 0 350px 0 350px;
- }
+/*IE specific approach to preserve min-width for portlet regions */
+padding: 0 350px 0 350px;
+}
</programlisting>
Usage: Wrapper for entire portal which starts/ends after/before the
BODY tag
(see red border in screen shot). The padding attribute for this
selector is
@@ -1250,34 +1259,34 @@
</imageobject>
</para>
<programlisting>
- /* min width for IE */
- #expander {
- margin: 0 -350px 0 -350px;
- position: relative;
- }
+/* min width for IE */
+#expander {
+margin: 0 -350px 0 -350px;
+position: relative;
+}
- /* min width for IE */
- #sizer {
- width: 100%;
- }
+/* min width for IE */
+#sizer {
+width: 100%;
+}
- /* IE min width \*/
- * html #portal-container,
- * html #sizer,
- * html #expander { height: 0; }
+/* IE min width \*/
+* html #portal-container,
+* html #sizer,
+* html #expander { height: 0; }
</programlisting>
Usage: These selectors are used in conjunction with the above,
portal-container, selector to preserve a minimum width setting for
the portlet
regions. This was implemented to maintain a consistent look across
different
browsers.
<programlisting>
- /*table that contains all regions. does not include header*/
- #content-container {
- height: 100%;
- text-align:left;
- max-width: 1600px;
- min-width: 800px;
- }
+/*table that contains all regions. does not include header*/
+#content-container {
+height: 100%;
+text-align:left;
+max-width: 1600px;
+min-width: 800px;
+}
</programlisting>
Usage: Wrapper that contains all regions in portal with the
exception of the
header (see orange border in screen shot). Its attributes can be
adjusted to
@@ -1291,16 +1300,16 @@
</imageobject>
</para>
<programlisting>
- #regionA {
- /* test to swap columns with regionB...
- float: right; */
+#regionA {
+/* test to swap columns with regionB...
+float: right; */
- width: 30%;
- float: left;
- margin: 0px;
- padding: 0px;
- min-width: 250px;
- }
+width: 30%;
+float: left;
+margin: 0px;
+padding: 0px;
+min-width: 250px;
+}
</programlisting>
Usage: First portlet region located within the content-container
(see blue
border in screen shot). This selector controls the width of the
region as well
@@ -1308,45 +1317,45 @@
in the portal (e.g. swap left regionA with right regionB, etc.) by
adjusting
the attributes of this selector.
<programlisting>
- #regionB {
- /*test to swap columns with regionA...
- margin: 0 30% 0 0; */
+#regionB {
+/*test to swap columns with regionA...
+margin: 0 30% 0 0; */
- /* two column layout*/
- margin: 0 0 0 30%;
- padding: 0;
- width: 69%;
+/* two column layout*/
+margin: 0 0 0 30%;
+padding: 0;
+width: 69%;
- /* test to add 3rd region in layout...
- width: 40%;
- float: left;*/
- }
+/* test to add 3rd region in layout...
+width: 40%;
+float: left;*/
+}
</programlisting>
Usage: Second portlet region located within the content-container
(see blue
border in screen shot). Similar to regionA, this selector controls
the width of
the region as well as its location on the page.
<programlisting>
- #regionC {
- /* inclusion of 3rd region - comment out for 2 region testing
- padding: 0px;
- width: 27%;
- float: left;*/
- display: none;
- }
+#regionC {
+/* inclusion of 3rd region - comment out for 2 region testing
+padding: 0px;
+width: 27%;
+float: left;*/
+display: none;
+}
</programlisting>
Usage: Third portlet region located within the content-container
(please refer
to blue border in screen shot representing regionA and regionB for
an example).
Used for 3 column layout. Similar to regionA and regionB, this
selector
controls the width of the region as well as its location on the
page.
<programlisting>
- /* give a maximized portlet more space */
- #regionMaximized {
- width: 100%;
- float: left;
- margin: 0px;
- padding: 0px;
- min-width: 400px;
- }
+/* give a maximized portlet more space */
+#regionMaximized {
+width: 100%;
+float: left;
+margin: 0px;
+padding: 0px;
+min-width: 400px;
+}
</programlisting>
Usage: Portlet region located within the content-container (please
refer to
blue border in screen shot representing regionA and regionB for an
example).
@@ -1360,33 +1369,33 @@
</imageobject>
</para>
<programlisting>
- hr.cleaner {
- clear:both;
- height:1px;
- margin: -1px 0 0 0;
- padding:0;
- border:none;
- visibility: hidden;
- }
+hr.cleaner {
+clear:both;
+height:1px;
+margin: -1px 0 0 0;
+padding:0;
+border:none;
+visibility: hidden;
+}
</programlisting>
Usage: Used to clear floats in regionA, regionB and regionC DIVs so
that footer
spans bottom of page.
<programlisting>
- #footer-container {
- margin: 30px 25% 0 25%;
- text-align: center;
- }
+#footer-container {
+margin: 30px 25% 0 25%;
+text-align: center;
+}
</programlisting>
Usage: Footer region located towards the bottom of the
content-container (see
above screen shot). This region spans the entire width of the page,
but can be
adjusted (just like regionA, regionB and regionC) to take on a
certain position
and width/height in the layout.
<programlisting>
- #navigation-container {}
+#navigation-container {}
</programlisting>
Usage: Unused at this time.
<programlisting>
- #sub-navigation-container {}
+#sub-navigation-container {}
</programlisting>
Usage: Unused at this time.
</para>
@@ -1394,49 +1403,49 @@
<listitem>
<para>Tab Navigation Selectors for Header
<programlisting>
- UL#tabsHeader {
- margin: 0;
- padding-left: 300px;
- min-width: 550px;
- }
+UL#tabsHeader {
+margin: 0;
+padding-left: 300px;
+min-width: 550px;
+}
</programlisting>
Usage: Used to provide position (through padding attribute) of
tabbed
navigational items in header. A padding-left of 300px gives space
for the left
hand logo area and can be adjusted as needed to set the desired
location for
the navigation.
<programlisting>
- UL#tabsHeader li {
- list-style: none;
- float: left;
- margin-left: 0px;
- margin-top: 74px;
- margin-right: 0px;
- line-height: 24px;
- padding: 0px;
- border-left: 1px solid #72828E;
- }
+UL#tabsHeader li {
+list-style: none;
+float: left;
+margin-left: 0px;
+margin-top: 74px;
+margin-right: 0px;
+line-height: 24px;
+padding: 0px;
+border-left: 1px solid #72828E;
+}
</programlisting>
Usage: Selector used to style list items as horizontal navigation
and to set
the spacing and position of each nav item that's available.
<programlisting>
- UL#tabsHeader li:hover {
- background-image: url(images/highlightedTab.gif);
- background-repeat: repeat-x;
- }
+UL#tabsHeader li:hover {
+background-image: url(images/highlightedTab.gif);
+background-repeat: repeat-x;
+}
</programlisting>
Usage: Used to provide hover pseudo class on navigation items so
that the tab
background will change upon mouseover. Note that currently IE only
supports the
hover pseudo class on links, so this selector will only affect
non-IE browsers
(e.g. FireFox, etc.).
<programlisting>
- UL#tabsHeader li.hoverOn {
- background-image: url(images/highlightedTab.gif);
- background-repeat: repeat-x;
- }
+UL#tabsHeader li.hoverOn {
+background-image: url(images/highlightedTab.gif);
+background-repeat: repeat-x;
+}
- UL#tabsHeader li.hoverOff {
- background-image:none;
- }
+UL#tabsHeader li.hoverOff {
+background-image:none;
+}
</programlisting>
Usage: These two selectors are implemented to account for the fact
that IE
cannot understand the use of a pseudo class on the LI element. They
provide the
@@ -1444,69 +1453,71 @@
the navigation item in IE, and are used in combination with
onmouseover/onmouseout event handlers in the header navigation:
<programlisting>
- <![CDATA[
- <li onmouseover="this.className='hoverOn'"
onmouseout="this.className='hoverOff'">
- <a href="#">Tab Nav</a>
- </li>
- ]]></programlisting>
+ <![CDATA[
+<li onmouseover="this.className='hoverOn'"
onmouseout="this.className='hoverOff'">
+<a href="#">Tab Nav</a>
+</li>
+]]>
+ </programlisting>
<programlisting>
- UL#tabsHeader a {
- display: block;
- float: left;
- padding: 4px 15px 5px 15px;
- text-decoration: none;
- font: 13px/normal Verdana, Arial, Helvetica, Geneva, Swiss,
SunSans-Regular;
- background: 100% 0 no-repeat;
- color: #596874;
- }
+UL#tabsHeader a {
+display: block;
+float: left;
+padding: 4px 15px 5px 15px;
+text-decoration: none;
+font: 13px/normal Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
+background: 100% 0 no-repeat;
+color: #596874;
+}
</programlisting>
Usage: This selector styles the navigational links, indicating
padding
surrounding the link as well as font family, color and
text-decoration.
<programlisting>
- UL#tabsHeader a:hover {
- text-decoration: underline;
- }
+UL#tabsHeader a:hover {
+text-decoration: underline;
+}
</programlisting>
Usage: Used to underline navigational links when hovering with
mouse. Unlike
the li:hover pseudo class, IE does support the hover effect on
links, so there
is no need for a separate set of selectors to deal with this
effect.
<programlisting>
- UL#tabsHeader #current, UL#tabsHeader #current a {
- font: 13px/normal Verdana, Arial, Helvetica, Geneva, Swiss,
SunSans-Regular;
- font-weight: 600;
- color: #EBEAEA;
- background-image: url(images/activeTab.gif);
- background-repeat: repeat-x;
- border-right: 0px;
- border-left: 0px;
- }
+UL#tabsHeader #current, UL#tabsHeader #current a {
+font: 13px/normal Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
+font-weight: 600;
+color: #EBEAEA;
+background-image: url(images/activeTab.gif);
+background-repeat: repeat-x;
+border-right: 0px;
+border-left: 0px;
+}
</programlisting>
Usage: This selector is set on the current/selected navigation item
to style
both the background of the tab as well as font properties such as
color and
weight. Example:
<programlisting>
- <![CDATA[
- <li id="current"
onmouseover="this.className='hoverOn'"
onmouseout="this.className='hoverOff'">
- <a href="#">Tab Nav</a>
- </li>
- ]]></programlisting>
+ <![CDATA[
+<li id="current" onmouseover="this.className='hoverOn'"
onmouseout="this.className='hoverOff'">
+<a href="#">Tab Nav</a>
+</li>
+]]>
+ </programlisting>
<programlisting>
- /* backslash for IE5-Mac \*/
- UL#tabsHeader a {float: none;} /* End Mac Hack */
- html>body UL#tabsHeader a {width: auto;} /* fixes IE
issues */
+/* backslash for IE5-Mac \*/
+UL#tabsHeader a {float: none;} /* End Mac Hack */
+html>body UL#tabsHeader a {width: auto;} /* fixes IE issues */
</programlisting>
Usage: Also known in the industry as an example of the “Holly
Hack�?, the above
is added to the stylesheet to handle certain buggy issues with IE.
This section
of the stylesheet should be left alone as subsequent changes can
effect the way
things behave in IE.
<programlisting>
- li.currentTabBackground {
- background: #fff;
- }
+li.currentTabBackground {
+background: #fff;
+}
- li.currentTabBackgroundSubNav {
- background: #eeeeef;
- }
+li.currentTabBackgroundSubNav {
+background: #eeeeef;
+}
</programlisting>
Usage: The above two selectors are not currently in use. Included to
account
for future changes to the navigation where multiple tiers/levels
might be
@@ -1516,9 +1527,9 @@
<listitem>
<para>Portlet Container Window Selectors
<programlisting>
- .portlet-container {
- padding: 10px;
- }
+.portlet-container {
+padding: 10px;
+}
</programlisting>
Usage: Wrapper that surrounds the portlet windows (see green border
in screen
shot). Currently, this selector is used to create space (padding)
between the
@@ -1531,49 +1542,49 @@
</imageobject>
</para>
<programlisting>
- .portlet-titlebar-title {
- font-family: Verdana, Arial, Helvetica, sans-serif;
- font-size: 11px;
- font-weight: 500;
- color: #596874;
- white-space: nowrap;
- line-height: 100%;
- float: left;
- text-indent: 15px;
- }
+.portlet-titlebar-title {
+font-family: Verdana, Arial, Helvetica, sans-serif;
+font-size: 11px;
+font-weight: 500;
+color: #596874;
+white-space: nowrap;
+line-height: 100%;
+float: left;
+text-indent: 15px;
+}
</programlisting>
Usage: Class used to style the title of each portlet window.
Attributes of this
selector set font properties, indentation and position of title.
<programlisting>
- .portlet-titlebar-decoration {
- background-image: url(images/portlet-win-decoration.gif);
- background-repeat: no-repeat;
- height: 11px;
- width: 11px;
- float: left;
- position: relative;
- top: 6px;
- }
+.portlet-titlebar-decoration {
+background-image: url(images/portlet-win-decoration.gif);
+background-repeat: no-repeat;
+height: 11px;
+width: 11px;
+float: left;
+position: relative;
+top: 6px;
+}
</programlisting>
Usage: Used to display top left portlet window decoration (e.g.
sphere icon in
Industrial theme). Attributes for this selector set position and
dimensions of
this decoration.
<programlisting>
- .portlet-mode-container {
- float: right;
- }
+.portlet-mode-container {
+float: right;
+}
</programlisting>
Usage: Wrapper that contains the portlet window modes that display
in the top
right section of the portlet windows.
<programlisting>
- .portlet-titlebar-left {
- background-image: url(images/portlet-top-left.gif);
- background-repeat: no-repeat;
- width: 9px;
- height: 33px;
- background-position: right;
- min-width: 9px;
- }
+.portlet-titlebar-left {
+background-image: url(images/portlet-top-left.gif);
+background-repeat: no-repeat;
+width: 9px;
+height: 33px;
+background-position: right;
+min-width: 9px;
+}
</programlisting>
Usage: Used to style the top left corner of the portlet window. Each
portlet
window consists of one table that has 3 columns and 3 rows. This
selector
@@ -1586,11 +1597,11 @@
</imageobject>
</para>
<programlisting>
- .portlet-titlebar-center {
- background-image: url(images/portlet-top-middle.gif);
- background-repeat: repeat-x;
- height: 33px;
- }
+.portlet-titlebar-center {
+background-image: url(images/portlet-top-middle.gif);
+background-repeat: repeat-x;
+height: 33px;
+}
</programlisting>
Usage: Used to style the center section of the portlet title bar.
Each portlet
window consists of one table that has 3 columns and 3 rows. This
selector
@@ -1603,13 +1614,13 @@
</imageobject>
</para>
<programlisting>
- .portlet-titlebar-right {
- background-image: url(images/portlet-top-right.gif);
- background-repeat: no-repeat;
- width: 10px;
- height: 33px;
- min-width: 10px;
- }
+.portlet-titlebar-right {
+background-image: url(images/portlet-top-right.gif);
+background-repeat: no-repeat;
+width: 10px;
+height: 33px;
+min-width: 10px;
+}
</programlisting>
Usage: Used to style the top right corner of the portlet window.
Each portlet
window consists of one table that has 3 columns and 3 rows. This
selector
@@ -1622,14 +1633,14 @@
</imageobject>
</para>
<programlisting>
- .portlet-content-left {
- background-image: url(images/portlet-left-vertical.gif);
- height: 100%;
- background-repeat: repeat-y;
- background-position: right;
- width: 9px;
- min-width: 9px;
- }
+.portlet-content-left {
+background-image: url(images/portlet-left-vertical.gif);
+height: 100%;
+background-repeat: repeat-y;
+background-position: right;
+width: 9px;
+min-width: 9px;
+}
</programlisting>
Usage: Used to style the left hand vertical lines that make up the
portlet
window. Each portlet window consists of one table that has 3 columns
and 3
@@ -1644,13 +1655,13 @@
</imageobject>
</para>
<programlisting>
- .portlet-content-center {
- background-color: #f7f7f7;
- background-repeat: repeat;
- vertical-align: top;
- font-family: Verdana, Arial, Helvetica, Geneva, Swiss,
SunSans-Regular;
- font-size: 13px;
- }
+.portlet-content-center {
+background-color: #f7f7f7;
+background-repeat: repeat;
+vertical-align: top;
+font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
+font-size: 13px;
+}
</programlisting>
Usage: Used to style the center, content area where the portlet
content is
injected into the portlet window (see below screen). Attributes for
this
@@ -1666,9 +1677,9 @@
</imageobject>
</para>
<programlisting>
- .portlet-body {
- background-color: #f7f7f7;
- }
+.portlet-body {
+background-color: #f7f7f7;
+}
</programlisting>
Usage: An extra selector for controlling the content section of the
portlet
windows (see below screen). This was added to better deal with
structuring the
@@ -1681,14 +1692,14 @@
</imageobject>
</para>
<programlisting>
- .portlet-content-right {
- background-image: url(images/portlet-right-vertical.gif);
- height: 100%;
- background-repeat: repeat-y;
- background-position: left;
- width: 10px;
- min-width: 10px;
- }
+.portlet-content-right {
+background-image: url(images/portlet-right-vertical.gif);
+height: 100%;
+background-repeat: repeat-y;
+background-position: left;
+width: 10px;
+min-width: 10px;
+}
</programlisting>
Usage: Used to style the right hand vertical lines that make up the
portlet
window. Each portlet window consists of one table that has 3 columns
and 3
@@ -1703,14 +1714,14 @@
</imageobject>
</para>
<programlisting>
- .portlet-footer-left {
- background-image: url(images/portlet-bottom-left.gif);
- width: 9px;
- height: 9px;
- background-repeat: no-repeat;
- background-position: top right;
- min-width: 9px;
- }
+.portlet-footer-left {
+background-image: url(images/portlet-bottom-left.gif);
+width: 9px;
+height: 9px;
+background-repeat: no-repeat;
+background-position: top right;
+min-width: 9px;
+}
</programlisting>
Usage: Used to style the bottom left corner of the portlet window.
Each portlet
window consists of one table that has 3 columns and 3 rows. This
selector
@@ -1723,11 +1734,11 @@
</imageobject>
</para>
<programlisting>
- .portlet-footer-center {
- background-image: url(images/portlet-bottom-middle.gif);
- height: 14px;
- background-repeat: repeat-x;
- }
+.portlet-footer-center {
+background-image: url(images/portlet-bottom-middle.gif);
+height: 14px;
+background-repeat: repeat-x;
+}
</programlisting>
Usage: Used to style the bottom, center of the portlet window (i.e.
the bottom
horizontal line in the Industrial theme). Each portlet window
consists of one
@@ -1741,13 +1752,13 @@
</imageobject>
</para>
<programlisting>
- .portlet-footer-right {
- background-image: url(images/portlet-bottom-right.gif);
- width: 10px;
- height: 9px;
- background-repeat: no-repeat;
- min-width: 10px;
- }
+.portlet-footer-right {
+background-image: url(images/portlet-bottom-right.gif);
+width: 10px;
+height: 9px;
+background-repeat: no-repeat;
+min-width: 10px;
+}
</programlisting>
Usage: Used to style the bottom right corner of the portlet window.
Each
portlet window consists of one table that has 3 columns and 3 rows.
This
@@ -1764,115 +1775,115 @@
<listitem>
<para>Portlet Window Mode Selectors
<programlisting>
- .portlet-mode-maximized {
- background-image: url(images/maximize.gif);
- width: 16px;
- height: 23px;
- background-repeat: no-repeat;
- float: left;
- display: inline;
- cursor: pointer;
- }
+.portlet-mode-maximized {
+background-image: url(images/maximize.gif);
+width: 16px;
+height: 23px;
+background-repeat: no-repeat;
+float: left;
+display: inline;
+cursor: pointer;
+}
</programlisting>
Usage: Selector used to display the portlet maximize mode.
Attributes for this
selector control the display and dimensions of the maximize icon,
including the
behavior of the mouse pointer when hovering the mode.
<programlisting>
- .portlet-mode-minimized {
- background-image: url(images/minimize.gif);
- width: 16px;
- height: 23px;
- background-repeat: no-repeat;
- float: left;
- display: inline;
- cursor: pointer;
- }
+.portlet-mode-minimized {
+background-image: url(images/minimize.gif);
+width: 16px;
+height: 23px;
+background-repeat: no-repeat;
+float: left;
+display: inline;
+cursor: pointer;
+}
</programlisting>
Usage: Selector used to display the portlet minimize mode.
Attributes for this
selector control the display and dimensions of the minimize icon,
including the
behavior of the mouse pointer when hovering the mode.
<programlisting>
- .portlet-mode-normal {
- background-image: url(images/normal.gif);
- width: 16px;
- height: 23px;
- background-repeat: no-repeat;
- float: left;
- display: inline;
- cursor: pointer;
- }
+.portlet-mode-normal {
+background-image: url(images/normal.gif);
+width: 16px;
+height: 23px;
+background-repeat: no-repeat;
+float: left;
+display: inline;
+cursor: pointer;
+}
</programlisting>
Usage: Selector used to display the portlet normal mode (i.e. the
icon that
when clicked, restores the portlet to the original, default view).
Attributes
for this selector control the display and dimensions of the normal
icon,
including the behavior of the mouse pointer when hovering the mode.
<programlisting>
- .portlet-mode-help {
- background-image: url(images/help.gif);
- width: 16px;
- height: 23px;
- background-repeat: no-repeat;
- float: left;
- display: inline;
- cursor: pointer;
- }
+.portlet-mode-help {
+background-image: url(images/help.gif);
+width: 16px;
+height: 23px;
+background-repeat: no-repeat;
+float: left;
+display: inline;
+cursor: pointer;
+}
</programlisting>
Usage: Selector used to display the portlet help mode. Attributes
for this
selector control the display and dimensions of the help icon,
including the
behavior of the mouse pointer when hovering the mode.
<programlisting>
- .portlet-mode-edit {
- background-image: url(images/edit.gif);
- width: 16px;
- height: 23px;
- background-repeat: no-repeat;
- float: left;
- display: inline;
- cursor: pointer;
- }
+.portlet-mode-edit {
+background-image: url(images/edit.gif);
+width: 16px;
+height: 23px;
+background-repeat: no-repeat;
+float: left;
+display: inline;
+cursor: pointer;
+}
</programlisting>
Usage: Selector used to display the portlet edit mode. Attributes
for this
selector control the display and dimensions of the edit icon,
including the
behavior of the mouse pointer when hovering the mode.
<programlisting>
- .portlet-mode-remove {
- background-image: url(images/remove.gif);
- width: 16px;
- height: 23px;
- background-repeat: no-repeat;
- float: left;
- display: inline;
- cursor: pointer;
- }
+.portlet-mode-remove {
+background-image: url(images/remove.gif);
+width: 16px;
+height: 23px;
+background-repeat: no-repeat;
+float: left;
+display: inline;
+cursor: pointer;
+}
</programlisting>
Usage: Currently not available. But here is the intended use:
Selector used to
display the portlet remove mode. Attributes for this selector
control the
display and dimensions of the remove icon, including the behavior of
the mouse
pointer when hovering the mode.
<programlisting>
- .portlet-mode-view {
- background-image: url(images/view.gif);
- width: 16px;
- height: 23px;
- background-repeat: no-repeat;
- float: left;
- display: inline;
- cursor: pointer;
- }
+.portlet-mode-view {
+background-image: url(images/view.gif);
+width: 16px;
+height: 23px;
+background-repeat: no-repeat;
+float: left;
+display: inline;
+cursor: pointer;
+}
</programlisting>
Usage: Selector used to display the portlet view mode. Attributes
for this
selector control the display and dimensions of the view icon,
including the
behavior of the mouse pointer when hovering the mode.
<programlisting>
- .portlet-mode-reload {
- background-image: url(images/reload.gif);
- width: 16px;
- height: 23px;
- background-repeat: no-repeat;
- float: left;
- display: inline;
- cursor: pointer;
- }
+.portlet-mode-reload {
+background-image: url(images/reload.gif);
+width: 16px;
+height: 23px;
+background-repeat: no-repeat;
+float: left;
+display: inline;
+cursor: pointer;
+}
</programlisting>
Usage: Currently not available. But here is the intended use:
Selector used to
display the portlet reload mode. Attributes for this selector
control the
@@ -1883,21 +1894,21 @@
<listitem>
<para>Copyright Selectors
<programlisting>
- .portal-copyright {
- font-family: Verdana, Arial, Helvetica, Geneva, Swiss,
SunSans-Regular;
- font-size: 9px;
- color: #5E6D7A;
- }
+.portal-copyright {
+font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
+font-size: 9px;
+color: #5E6D7A;
+}
- a.portal-copyright {
- color: #768591;
- text-decoration: none;
- }
+a.portal-copyright {
+color: #768591;
+text-decoration: none;
+}
- a.portal-copyright:hover {
- color: #96A5B1;
- text-decoration: none;
- }
+a.portal-copyright:hover {
+color: #96A5B1;
+text-decoration: none;
+}
</programlisting>
Usage: The above three selectors are used to style copyright content
in the
portal. The portal-copyright selector sets the font properties
(color, etc.),
@@ -1908,59 +1919,59 @@
<listitem>
<para>Element Selectors
<programlisting>
- a {
- color: #768591;
- text-decoration: none;
- }
- a:hover {
- color: #96A5B1;
- text-decoration: none;
- }
+a {
+color: #768591;
+text-decoration: none;
+}
+a:hover {
+color: #96A5B1;
+text-decoration: none;
+}
</programlisting>
Usage: The above two selectors style all anchor elements that do not
have their
own class/selector applied.
<programlisting>
- INPUT {
- font-family: Verdana, Arial, Helvetica, Geneva, Swiss,
SunSans-Regular;
- font-size: 10px;
- }
+INPUT {
+font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
+font-size: 10px;
+}
</programlisting>
Usage: The above selector styles all INPUT elements that do not have
their own
class/selector applied.
<programlisting>
- SELECT {
- font-family: Verdana, Arial, Helvetica, Geneva, Swiss,
SunSans-Regular;
- font-size: 10px;
- }
+SELECT {
+font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
+font-size: 10px;
+}
</programlisting>
Usage: The above selector styles all SELECT elements that do not
have their own
class/selector applied.
<programlisting>
- FONT {
- font-family: Verdana, Arial, Helvetica, Geneva, Swiss,
SunSans-Regular;
- font-size: 10px;
- color: #768591;
- }
+FONT {
+font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
+font-size: 10px;
+color: #768591;
+}
</programlisting>
Usage: The above selector styles all FONT elements that do not have
their own
class/selector applied.
<programlisting>
- FIELDSET {
- background-color: #f7f7f7;
- border:1px solid #BABDB6;
- padding: 6px;
- }
+FIELDSET {
+background-color: #f7f7f7;
+border:1px solid #BABDB6;
+padding: 6px;
+}
</programlisting>
Usage: The above selector styles all FIELDSET elements that do not
have their
own class/selector applied.
<programlisting>
- LEGEND {
- background-color: transparent;
- padding-left: 6px;
- padding-right: 6px;
- padding-bottom: 0px;
- font-size: 14px;
- }
+LEGEND {
+background-color: transparent;
+padding-left: 6px;
+padding-right: 6px;
+padding-bottom: 0px;
+font-size: 14px;
+}
</programlisting>
Usage: The above selector styles all LEGEND elements that do not
have their own
class/selector applied.
@@ -1969,38 +1980,38 @@
<listitem>
<para>Table Selectors
<programlisting>
- .portlet-table-header {}
+.portlet-table-header {}
</programlisting>
Usage: Not currently in use. Intended for styling tables
(specifically, the TH
or table header elements) that get rendered within a portlet
window.
<programlisting>
- .portlet-table-body {}
+.portlet-table-body {}
</programlisting>
Usage: Not currently in use. Intended for styling the table body
element used
to group rows in a table.
<programlisting>
- .portlet-table-alternate {}
+.portlet-table-alternate {}
</programlisting>
Usage: Not currently in use. Used to style the background color (and
possibly
other attributes) for every other row within a table.
<programlisting>
- .portlet-table-selected {}
+.portlet-table-selected {}
</programlisting>
Usage: Not currently in use. Used to style text, color, etc. in a
selected cell
range.
<programlisting>
- .portlet-table-subheader {}
+.portlet-table-subheader {}
</programlisting>
Usage: Not currently in use. Used to style a subheading within a
table that
gets rendered in a portlet.
<programlisting>
- .portlet-table-footer {}
+.portlet-table-footer {}
</programlisting>
Usage: Not currently in use. Similar to portlet-table-header and
portlet-table-body, this selector is used to style the table footer
element
which is used to group the footer row in a table.
<programlisting>
- .portlet-table-text {}
+.portlet-table-text {}
</programlisting>
Usage: Text that belongs to the table but does not fall in one of
the other
categories (e.g. explanatory or help text that is associated with
the table).
@@ -2011,20 +2022,20 @@
<listitem>
<para>FONT Selectors
<programlisting>
- .portlet-font {
- color:#000;
- font-family: Verdana, Arial, Helvetica, Geneva, Swiss,
SunSans-Regular;
- font-size: 10px;
- }
+.portlet-font {
+color:#000;
+font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
+font-size: 10px;
+}
</programlisting>
Usage: Used to style the font properties on text used in a portlet.
Typically
this class is used for the display of non-accentuated information.
<programlisting>
- .portlet-font-dim {
- color:#888385;
- font-family: Verdana, Arial, Helvetica, Geneva, Swiss,
SunSans-Regular;
- font-size: 10px;
- }
+.portlet-font-dim {
+color:#888385;
+font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
+font-size: 10px;
+}
</programlisting>
Usage: A lighter version (color-wise) of the portlet-font selector.
</para>
@@ -2032,49 +2043,49 @@
<listitem>
<para>FORM Selectors
<programlisting>
- .portlet-form-label {
- color:#4A4A4A;
- text-decoration:none;
- font-family: Verdana, Arial, Helvetica, Geneva, Swiss,
SunSans-Regular;
- font-size: 9px;
- }
+.portlet-form-label {
+color:#4A4A4A;
+text-decoration:none;
+font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
+font-size: 9px;
+}
</programlisting>
Usage: Text used for the descriptive label of an entire form (not
the label for
each actual form field).
<programlisting>
- .portlet-form-button {
- font-family: Verdana, Arial, Helvetica, Geneva, Swiss,
SunSans-Regular;
- font-size: 9px;
- font-weight: bold;
- color: #270F07;
- }
+.portlet-form-button {
+font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
+font-size: 9px;
+font-weight: bold;
+color: #270F07;
+}
</programlisting>
Usage: Used to style portlet form buttons (e.g. Submit).
<programlisting>
- .portlet-icon-label {}
+.portlet-icon-label {}
</programlisting>
Usage: Not currently in use. Text that appears beside a context
dependent
action icon.
<programlisting>
- .portlet-dlg-icon-label {}
+.portlet-dlg-icon-label {}
</programlisting>
Usage: Not currently in use. Text that appears beside a
"standard" icon (e.g
Ok, or Cancel).
<programlisting>
- .portlet-form-field-label {
- font-family: Verdana, Arial, Helvetica, Geneva, Swiss,
SunSans-Regular;
- font-size: 9px;
- color: #4A4A4A;
- }
+.portlet-form-field-label {
+font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
+font-size: 9px;
+color: #4A4A4A;
+}
</programlisting>
Usage: Selector used to style portlet form field labels.
<programlisting>
- .portlet-form-field {
- font-family: Verdana, Arial, Helvetica, Geneva, Swiss,
SunSans-Regular;
- font-size: 9px;
- color: #4A4A4A;
- margin-top: 10px;
- }
+.portlet-form-field {
+font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
+font-size: 9px;
+color: #4A4A4A;
+margin-top: 10px;
+}
</programlisting>
Usage: Selector used to style portlet form fields (i.e. INPUT
controls, SELECT
elements, etc.).
@@ -2083,37 +2094,37 @@
<listitem>
<para>LINK Selectors
<programlisting>
- .portal-links:link {
- font-family: Verdana, Arial, Helvetica, Geneva, Swiss,
SunSans-Regular;
- font-size: 9px;
- font-weight: bold;
- color: #242424;
- text-decoration: none;
- }
+.portal-links:link {
+font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
+font-size: 9px;
+font-weight: bold;
+color: #242424;
+text-decoration: none;
+}
- .portal-links:hover {
- font-family: Verdana, Arial, Helvetica, Geneva, Swiss,
SunSans-Regular;
- font-size: 9px;
- font-weight: bold;
- color: #5699B7;
- text-decoration: none;
- }
+.portal-links:hover {
+font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
+font-size: 9px;
+font-weight: bold;
+color: #5699B7;
+text-decoration: none;
+}
- .portal-links:active {
- font-family: Verdana, Arial, Helvetica, Geneva, Swiss,
SunSans-Regular;
- font-size: 9px;
- font-weight: bold;
- color: #242424;
- text-decoration: none;
- }
+.portal-links:active {
+font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
+font-size: 9px;
+font-weight: bold;
+color: #242424;
+text-decoration: none;
+}
- .portal-links:visited {
- font-family: Verdana, Arial, Helvetica, Geneva, Swiss,
SunSans-Regular;
- font-size: 9px;
- font-weight: bold;
- color: #242424;
- text-decoration: none;
- }
+.portal-links:visited {
+font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
+font-size: 9px;
+font-weight: bold;
+color: #242424;
+text-decoration: none;
+}
</programlisting>
Usage: The above four selectors are used to style links in the
portal. Each
pseudo class (i.e. hover, active, etc.) provides a different link
style.
@@ -2122,51 +2133,51 @@
<listitem>
<para>MESSAGE Selectors
<programlisting>
- .portlet-msg-status {
- font-family: Verdana, Arial, Helvetica, Geneva, Swiss,
SunSans-Regular;
- font-size: 10px;
- font-style: normal;
- color: #788793;
- }
+.portlet-msg-status {
+font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
+font-size: 10px;
+font-style: normal;
+color: #788793;
+}
</programlisting>
Usage: Selector used to signify the status of a current operation
that takes
place in the portlet (e.g. “saving results�?, “step 1 of 4�?).
<programlisting>
- .portlet-msg-info {
- font-family: Verdana, Arial, Helvetica, Geneva, Swiss,
SunSans-Regular;
- font-size: 9px;
- font-style: italic;
- color: #000;
- }
+.portlet-msg-info {
+font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
+font-size: 9px;
+font-style: italic;
+color: #000;
+}
</programlisting>
Usage: Selector used to signify general information in a portlet
(e.g. help
messages).
<programlisting>
- .portlet-msg-error {
- color:red;
- font-family: Verdana, Arial, Helvetica, Geneva, Swiss,
SunSans-Regular;
- font-size: 9px;
- font-weight: bold;
- }
+.portlet-msg-error {
+color:red;
+font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
+font-size: 9px;
+font-weight: bold;
+}
</programlisting>
Usage: Selector used to signify an error message in the portlet
(e.g. form
validation error).
<programlisting>
- .portlet-msg-alert {
- font-family: Verdana, Arial, Helvetica, Geneva, Swiss,
SunSans-Regular;
- font-size: 9px;
- font-weight: bold;
- color: #821717;
- }
+.portlet-msg-alert {
+font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
+font-size: 9px;
+font-weight: bold;
+color: #821717;
+}
</programlisting>
Usage: Selector used to style an alert that is displayed to the
user.
<programlisting>
- .portlet-msg-success {
- font-family: Verdana, Arial, Helvetica, Geneva, Swiss,
SunSans-Regular;
- font-size: 9px;
- font-weight: bold;
- color: #359630;
- }
+.portlet-msg-success {
+font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
+font-size: 9px;
+font-weight: bold;
+color: #359630;
+}
</programlisting>
Usage: Selector used to indicate successful completion of an action
in a
portlet (e.g. “save successful�?).
@@ -2175,59 +2186,59 @@
<listitem>
<para>SECTION Selectors
<programlisting>
- .portlet-section-header {
- font-weight: bold;
- font-family: Verdana, Arial, Helvetica, sans-serif;
- font-size: 13px;
- color: #768591;
- background-color: #f7f7f7;
- }
+.portlet-section-header {
+font-weight: bold;
+font-family: Verdana, Arial, Helvetica, sans-serif;
+font-size: 13px;
+color: #768591;
+background-color: #f7f7f7;
+}
</programlisting>
Usage: Table or section header.
<programlisting>
- .portlet-section-body {
- font-family: Verdana, Arial, Helvetica, sans-serif;
- font-size: 10px;
- }
+.portlet-section-body {
+font-family: Verdana, Arial, Helvetica, sans-serif;
+font-size: 10px;
+}
</programlisting>
Usage: Normal text in a table cell.
<programlisting>
- .portlet-section-alternate {
- background-color: #ececed;
- font-family: Verdana, Arial, Helvetica, sans-serif;
- font-size: 9px;
- }
+.portlet-section-alternate {
+background-color: #ececed;
+font-family: Verdana, Arial, Helvetica, sans-serif;
+font-size: 9px;
+}
</programlisting>
Usage: Used to style background color and text in every other table
row.
<programlisting>
- .portlet-section-selected {
- background-color: #89AEC6;
- font-family: Verdana, Arial, Helvetica, sans-serif;
- font-size: 9px;
- }
+.portlet-section-selected {
+background-color: #89AEC6;
+font-family: Verdana, Arial, Helvetica, sans-serif;
+font-size: 9px;
+}
</programlisting>
Usage: Used to style background and font properties in a selected
cell range.
<programlisting>
- .portlet-section-subheader {
- font-weight: bold;
- font-size: 10px;
- font-family: Verdana, Arial, Helvetica, sans-serif;
- color: #000;
- }
+.portlet-section-subheader {
+font-weight: bold;
+font-size: 10px;
+font-family: Verdana, Arial, Helvetica, sans-serif;
+color: #000;
+}
</programlisting>
Usage: Used to style a subheading within a table/section that gets
rendered in
a portlet.
<programlisting>
- .portlet-section-footer {
- font-family: Verdana, Arial, Helvetica, sans-serif;
- background-color: #f7f7f7;
- font-size: 8px;
- }
+.portlet-section-footer {
+font-family: Verdana, Arial, Helvetica, sans-serif;
+background-color: #f7f7f7;
+font-size: 8px;
+}
</programlisting>
Usage: Used to style footer area of a section/table that gets
rendered in a
portlet.
<programlisting>
- .portlet-section-text {}
+.portlet-section-text {}
</programlisting>
Usage: Not currently used. Text that belongs to a section but does
not fall in
one of the other categories. This selector can also be modified to
provide
@@ -2238,55 +2249,53 @@
<listitem>
<para>MENU Selectors
<programlisting>
- .portlet-menu {}
+.portlet-menu {}
</programlisting>
Usage: Not currently used. General menu settings such as background
color,
margins, etc.
<programlisting>
- .portlet-menu-item {
- color: #242424;
- text-decoration: none;
- font-family: Verdana, Arial, Helvetica, sans-serif;
- font-size: 9px;
- }
+.portlet-menu-item {
+color: #242424;
+text-decoration: none;
+font-family: Verdana, Arial, Helvetica, sans-serif;
+font-size: 9px;
+}
</programlisting>
Usage: Not currently used. Normal, unselected menu item.
<programlisting>
- .portlet-menu-item:hover {
- color: #5699B7;
- text-decoration: none;
- font-family: Verdana, Arial, Helvetica, sans-serif;
- font-size: 9px;
- }
+.portlet-menu-item:hover {
+color: #5699B7;
+text-decoration: none;
+font-family: Verdana, Arial, Helvetica, sans-serif;
+font-size: 9px;
+}
</programlisting>
Usage: Not currently used. Used to style hover effect on a normal,
unselected
menu item.
<programlisting>
- .portlet-menu-item-selected {}
+.portlet-menu-item-selected {}
</programlisting>
Usage: Not currently used. Applies to selected menu items.
<programlisting>
- .portlet-menu-item-selected:hover {
-
- }
+.portlet-menu-item-selected:hover {}
</programlisting>
Usage: Not currently used. Selector styles the hover effect on a
selected menu
item.
<programlisting>
- .portlet-menu-cascade-item {}
+.portlet-menu-cascade-item {}
</programlisting>
Usage: Not currently used. Normal, unselected menu item that has
sub-menus.
<programlisting>
- .portlet-menu-cascade-item-selected {}
+.portlet-menu-cascade-item-selected {}
</programlisting>
Usage: Not currently used. Selected sub-menu item.
<programlisting>
- .portlet-menu-description {}
+.portlet-menu-description {}
</programlisting>
Usage: Not currently used. Descriptive text for the menu (e.g. in a
help
context below the menu).
<programlisting>
- .portlet-menu-caption {}
+.portlet-menu-caption {}
</programlisting>
Usage: Not currently used. Selector used to style menu captions.
</para>
@@ -2294,39 +2303,39 @@
<listitem>
<para>WSRP Selectors
<programlisting>
- .portlet-horizontal-separator {}
+.portlet-horizontal-separator {}
</programlisting>
Usage: Not currently used. A separator bar similar to a horizontal
rule, but
with styling matching the page.
<programlisting>
- .portlet-nestedTitle-bar {}
+.portlet-nestedTitle-bar {}
</programlisting>
Usage: Not currently used. Allows portlets to mimic the title bar
when nesting
something.
<programlisting>
- .portlet-nestedTitle {}
+.portlet-nestedTitle {}
</programlisting>
Usage: Not currently used. Allows portlets to match the textual
character of
the title on the title bar.
<programlisting>
- .portlet-tab {}
+.portlet-tab {}
</programlisting>
Usage: Not currently used. Support portlets having tabs in the same
style as
the page or other portlets.
<programlisting>
- .portlet-tab-active {}
+.portlet-tab-active {}
</programlisting>
Usage: Not currently used. Highlight the tab currently being shown.
<programlisting>
- .portlet-tab-selected {}
+.portlet-tab-selected {}
</programlisting>
Usage: Not currently used. Highlight the selected tab (not yet
active).
<programlisting>
- .portlet-tab-disabled {}
+.portlet-tab-disabled {}
</programlisting>
Usage: Not currently used. A tab which can not be currently
activated.
<programlisting>
- .portlet-tab-area {}
+.portlet-tab-area {}
</programlisting>
Usage: Not currently used. Top level style for the content of a
tab.
</para>
@@ -2344,7 +2353,7 @@
<itemizedlist>
<listitem>
<programlisting>
- .dyna-region {}
+.dyna-region {}
</programlisting>
Usage:
@@ -2352,7 +2361,7 @@
</listitem>
<listitem>
<programlisting>
- .dyna-window {}
+.dyna-window {}
</programlisting>
Usage:
@@ -2360,7 +2369,7 @@
</listitem>
<listitem>
<programlisting>
- .dyna-decoration {}
+.dyna-decoration {}
</programlisting>
Usage:
@@ -2368,7 +2377,7 @@
</listitem>
<listitem>
<programlisting>
- .dyna-portlet {}
+.dyna-portlet {}
</programlisting>
Usage:
@@ -2376,9 +2385,9 @@
</listitem>
<listitem>
<programlisting>
- .dnd-handle {
- cursor: move;
- }
+.dnd-handle {
+ cursor: move;
+}
</programlisting>
Usage:
@@ -2387,10 +2396,10 @@
</listitem>
<listitem>
<programlisting>
- .dnd-droppable {
- border: red 1px dashed;
- background-color: Transparent;
- }
+.dnd-droppable {
+ border: red 1px dashed;
+ background-color: Transparent;
+}
</programlisting>
Usage:
Modified: docs/trunk/referenceGuide/en/modules/wsrp.xml
===================================================================
--- docs/trunk/referenceGuide/en/modules/wsrp.xml 2007-04-30 11:40:01 UTC (rev 7147)
+++ docs/trunk/referenceGuide/en/modules/wsrp.xml 2007-04-30 12:30:06 UTC (rev 7148)
@@ -357,10 +357,18 @@
<deployment>
<wsrp-producer id="MyProducer" expiration-cache="120">
<endpoint-config>
-
<
service-description-url>http://www.someproducer.com/portal-wsrp/Servic...
-
<
markup-url>http://www.someproducer.com/portal-wsrp/MarkupService</m...
-
<
registration-url>http://www.someproducer.com/portal-wsrp/RegistrationS...
-
<
portlet-management-url>http://www.someproducer.com/portal-wsrp/Portlet...
+ <service-description-url>
+
http://www.someproducer.com/portal-wsrp/ServiceDescriptionService
+ </service-description-url>
+ <markup-url>
+
http://www.someproducer.com/portal-wsrp/MarkupService
+ </markup-url>
+ <registration-url>
+
http://www.someproducer.com/portal-wsrp/RegistrationService
+ </registration-url>
+ <portlet-management-url>
+
http://www.someproducer.com/portal-wsrp/PortletManagementService
+ </portlet-management-url>
</endpoint-config>
</wsrp-producer>
</deployment>
@@ -408,7 +416,9 @@
<programlisting><![CDATA[
<producer-configuration>
<registration-configuration
fullServiceDescriptionRequiresRegistration="true">
-
<registration-property-validator>org.jboss.portal.registration.policies.DefaultRegistrationPropertyValidator</registration-property-validator>
+ <registration-property-validator>
+ org.jboss.portal.registration.policies.DefaultRegistrationPropertyValidator
+ </registration-property-validator>
</registration-configuration>
</producer-configuration>]]></programlisting>
The top element <emphasis
role="bold"><producer-configuration></emphasis> contains
a single
Modified: docs/trunk/referenceGuide/en/modules/xmldescriptors.xml
===================================================================
--- docs/trunk/referenceGuide/en/modules/xmldescriptors.xml 2007-04-30 11:40:01 UTC (rev
7147)
+++ docs/trunk/referenceGuide/en/modules/xmldescriptors.xml 2007-04-30 12:30:06 UTC (rev
7148)
@@ -57,13 +57,14 @@
]]>
</para><para><programlisting><![CDATA[
-The remotable element is used to configure the default behavior of the portlets with
respect to WSRP
-exposure.
+The remotable element is used to configure the default behavior of the portlets with
respect
+to WSRP exposure.
For each portlet defined in portlet.xml, it is possible to configure specific settings
of the portlet container.
-It is also possible to inject services in the portlet context of the application using
the service elements.]]></programlisting></para>
+It is also possible to inject services in the portlet context of the application using
the
+service elements.]]></programlisting></para>
</listitem><listitem>
<para>
Element <![CDATA[<!ELEMENT portlet
(portlet-name,remotable?,session-config?,transaction?,header-content?)>
@@ -72,16 +73,18 @@
</para><para><programlisting><![CDATA[
Additional configuration for a portlet.
-The portlet-name defines the name of the portlet. It must match a portlet defined already
in portlet.xml
-of the same web application.
+The portlet-name defines the name of the portlet. It must match a portlet defined
already
+in portlet.xml of the same web application.
-The remotable element configures the portlet exposure to WSRP. If no value is present
then the value considered
-is either the value defined globally at the portlet application level or false.
+The remotable element configures the portlet exposure to WSRP. If no value is present
+then the value considered is either the value defined globally at the portlet
application
+level or false.
-The trans-attribute value specifies the behavior of the portlet when it is invoked at
runtime with
-respect to the transactionnal context. According to how the portlet is invoked a
transaction may exist or not
-before the portlet is invoked. Usually in the local context the portal transaction could
be present.
-By default the value considered is NotSupported which means that the portal transaction
will be suspended
+The trans-attribute value specifies the behavior of the portlet when it is invoked at
+runtime with respect to the transactionnal context. According to how the portlet is
+invoked a transaction may exist or not before the portlet is invoked. Usually in the
+local context the portal transaction could be present. By default the value
+considered is NotSupported which means that the portal transaction will be suspended
for the duration of the portlet invocation.
Example:
@@ -104,18 +107,20 @@
]]>
</para><para><programlisting><![CDATA[
-The remotable value is used for WSRP exposure. The accepted values are the litterals true
of false.]]></programlisting></para>
+The remotable value is used for WSRP exposure.
+The accepted values are the litterals true of false.]]>
+</programlisting></para>
</listitem><listitem>
-<para>
-Element <![CDATA[<!ELEMENT session-config (distributed)>
+ <para>
+ Element <![CDATA[<!ELEMENT session-config (distributed)>
]]>
</para><para><programlisting><![CDATA[
This element configure the portlet session of the portlet.
-The distributed element instructs the container to distribute the session attributes
using the
-portal session replication. It applies only to local portlets are not to remote
portlets.
-The default value is false.
+The distributed element instructs the container to distribute the session attributes
+using the portal session replication. It applies only to local portlets are not to
+remote portlets. The default value is false.
Example:
@@ -149,16 +154,17 @@
]]>
</para><para><programlisting><![CDATA[
-The trans-attribute value defines the transactionnal behavior. The accepted values are
Required,
-Mandatory, Never, Supports, NotSupported and
RequiresNew.]]></programlisting></para>
+The trans-attribute value defines the transactionnal behavior. The accepted values
+are Required, Mandatory, Never, Supports, NotSupported and
RequiresNew.]]></programlisting></para>
</listitem><listitem>
<para>
Element <![CDATA[<!ELEMENT header-content (link | script | meta)*>
]]>
</para><para><programlisting><![CDATA[
-Specify content which should be included in the portal aggregated page when the portlet
is present
-on that page. This setting only applies when the portlet is used in the local
mode.]]></programlisting></para>
+Specify content which should be included in the portal aggregated page when the
+portlet is present on that page. This setting only applies when the portlet is
+used in the local mode.]]></programlisting></para>
</listitem><listitem>
<para>
Element <![CDATA[<!ELEMENT link ANY>
@@ -186,7 +192,8 @@
]]>
</para><para><programlisting><![CDATA[
-Declare a service that will be injected by the portlet container as an attribute of the
portlet context.
+Declare a service that will be injected by the portlet container as an attribute
+of the portlet context.
Example :
@@ -196,8 +203,8 @@
<service-ref>:service=Module,type=User</service-ref>
</service>
-In the portlet it is then possible to use it by doing a lookup on the service name, for
example in the
-init() lifecycle method :
+In the portlet it is then possible to use it by doing a lookup on the service name,
+for example in the init() lifecycle method :
public void init()
{
@@ -223,8 +230,9 @@
]]>
</para><para><programlisting><![CDATA[
-The reference to the service. In the JMX Microkernel environment it consist of the JMX
name of the service MBean.
-For an MBean reference if the domain is left out, then the current domain of the portal
will be used.]]></programlisting></para>
+The reference to the service. In the JMX Microkernel environment it consist of the
+JMX name of the service MBean. For an MBean reference if the domain is left out,
+then the current domain of the portal will be
used.]]></programlisting></para>
</listitem></itemizedlist>
</para>
</sect2>
@@ -259,9 +267,10 @@
]]>
</para><para><programlisting><![CDATA[
-The instance element is used to create an instance of a portlet from the portlet
application of the same
-war file containing the portlet-instances.xml file. The portlet will be created and
configured only
-if the portlet is present and an instance with such a name does not already exist.
+The instance element is used to create an instance of a portlet from the portlet
+application of the same war file containing the portlet-instances.xml file.
+The portlet will be created and configured only if the portlet is present
+and an instance with such a name does not already exist.
Example :
@@ -396,11 +405,12 @@
All portal objects have a common configuration which can be :
-1/ a listener : specifies the id of a listener is the listener registry. A listener
object is able to
-listen portal events which apply to the portal node hierarchy.
+1/ a listener : specifies the id of a listener is the listener registry.
+A listener object is able to listen portal events which apply to the portal
+node hierarchy.
-2/ properties : a set of generic properties owned by the portal object. Some properties
can drive the behavior
-of the object.
+2/ properties : a set of generic properties owned by the portal object.
+Some properties can drive the behavior of the object.
3/ security-constraint : defines security configuration of the portal
object.]]></programlisting></para>
</listitem><listitem>
@@ -416,25 +426,27 @@
Example:
<parent-ref/> the root having an empty path
-<parent-ref>default</parent-ref> the object with the name default under the
root having the path (default)
-<parent-ref>default.default</parent-ref> the object with the path
(default,default)]]></programlisting></para>
+<parent-ref>default</parent-ref> the object with the name default under the
root
+ having the path (default) <parent-ref>default.default</parent-ref> the
object with
+ the path (default,default)]]></programlisting></para>
</listitem><listitem>
<para>
Element <![CDATA[<!ELEMENT if-exists (#PCDATA)>
]]>
</para><para><programlisting><![CDATA[
-The authorized values are overwrite and keep. Overwrite means that the existing object
will be destroyed
-and the current declaration will be used. Keep means that the existing object will not be
destroyed and
-no creation hence will be done.]]></programlisting></para>
+The authorized values are overwrite and keep. Overwrite means that the existing
+object will be destroyed and the current declaration will be used. Keep means
+that the existing object will not be destroyed and no creation hence will be
done.]]></programlisting></para>
</listitem><listitem>
<para>
Element <![CDATA[<!ELEMENT context
(context-name,properties?,listener?,security-constraint?,portal*)>
]]>
</para><para><programlisting><![CDATA[
-A portal object of type context. A context type represent a node in the tree which does
not have
-a visual representation. It can exist only under the root. A context can only have
children with the portal type.]]></programlisting></para>
+A portal object of type context. A context type represent a node in the tree which
+does not have a visual representation. It can exist only under the root. A context
+can only have children with the portal type.]]></programlisting></para>
</listitem><listitem>
<para>
Element <![CDATA[<!ELEMENT context-name (#PCDATA)>
@@ -448,9 +460,10 @@
]]>
</para><para><programlisting><![CDATA[
-A portal object of type portal. A portal type represents a virtual portal and can have
children of type page.
-In addition of the common portal object elements it support also the declaration of the
modes and the window
-states it supports. If no declaration of modes or window states is done then the default
value will be
+A portal object of type portal. A portal type represents a virtual portal and can
+have children of type page. In addition of the common portal object elements it
+support also the declaration of the modes and the window states it supports. If
+no declaration of modes or window states is done then the default value will be
respectively (view,edit,help) and
(normal,minimized,maximized).]]></programlisting></para>
</listitem><listitem>
<para>
@@ -509,8 +522,9 @@
]]>
</para><para><programlisting><![CDATA[
-A portal object of type page. A page type represents a page which can have children of
type page and window.
-The children windows are the windows of the page and the children pages are the subpages
of this page.]]></programlisting></para>
+A portal object of type page. A page type represents a page which can have children
+of type page and window. The children windows are the windows of the page and the
+children pages are the subpages of this page.]]></programlisting></para>
</listitem><listitem>
<para>
Element <![CDATA[<!ELEMENT page-name (#PCDATA)>
@@ -524,12 +538,13 @@
]]>
</para><para><programlisting><![CDATA[
-A portal object of type window. A window type represents a window. Beside the common
properties a window has
-a content and belong to a region on the page.
+A portal object of type window. A window type represents a window. Beside
+the common properties a window has a content and belong to a region on the page.
-The instance-ref or content tags are used to define the content of the window. The usage
of the content tag
-is generic and can be used to describe any kind of content. The instance-ref is a
shortcut to define a content
-type of portlet which points to a portlet instance.
+The instance-ref or content tags are used to define the content of the window.
+The usage of the content tag is generic and can be used to describe any kind of
+content. The instance-ref is a shortcut to define a content type of portlet
+which points to a portlet instance.
The region and height defines how the window is placed in the
page.]]></programlisting></para>
</listitem><listitem>
@@ -545,7 +560,8 @@
]]>
</para><para><programlisting><![CDATA[
-Define the content of the window as a reference to a portlet instance. The value is the
id of the instance.
+Define the content of the window as a reference to a portlet instance.
+The value is the id of the instance.
Example:
@@ -556,8 +572,8 @@
]]>
</para><para><programlisting><![CDATA[
-Define the content of the window in a generic manner. The content is define by the type
of the content
-and an URI which acts as an identificator for the content.
+Define the content of the window in a generic manner. The content is define
+by the type of the content and an URI which acts as an identificator for the content.
Example:
@@ -690,11 +706,13 @@
]]>
</para><para><programlisting><![CDATA[
-When a web application is deployed, the context path under wich it is deployed is taken
as application
-name. The application name value in this descriptor is used to override it. When a
component references a
-references a portlet, it needs to reference the application too and if the portlet
application war file is renammed
-the reference is not valid anymore. Therefore this tag is used to have an application
name that does not depend
-upon the context path under which the application is
deployed.]]></programlisting></para>
+When a web application is deployed, the context path under wich it is deployed
+is taken as application name. The application name value in this descriptor is
+used to override it. When a component references a references a portlet, it
+needs to reference the application too and if the portlet application war file
+is renammed the reference is not valid anymore. Therefore this tag is used to
+have an application name that does not depend upon the context path under which
+the application is deployed.]]></programlisting></para>
</listitem></itemizedlist>
</para>
</sect2>
@@ -937,8 +955,7 @@
</listitem>
<listitem>
<para>
- <programlisting>
-
<![CDATA[<preferences><preference>...</preference></preferences>]]></programlisting>
+
<programlisting><![CDATA[<preferences><preference>...</preference></preferences>]]></programlisting>
Preferences for this portlet instance are defined here, as type
String, in a key-value pair style.
It is also possible to specify preferences as type String[], as in:
<programlisting><![CDATA[
@@ -1028,7 +1045,8 @@
<portlet>
<portlet-name>ManagementPortlet</portlet-name>
<header-content>
- <link rel="stylesheet" type="text/css"
href="/images/management/management.css" media="screen"/>
+ <link rel="stylesheet" type="text/css"
href="/images/management/management.css"
+ media="screen"/>
</header-content>
</portlet>
</portlet-app>]]></programlisting>
@@ -1078,7 +1096,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>
<description>Portlet providing user login/logout and profile
management</description>
@@ -1086,7 +1105,8 @@
<display-name>User Portlet</display-name>
<portlet-class>org.jboss.portal.core.portlet.user.UserPortlet</portlet-class>
<init-param>
- <description>Whether we should use ssl on login and throughout the Portal.
1=yes;0=no</description>
+ <description>Whether we should use ssl on login and throughout the
Portal.
+ 1=yes;0=no</description>
<name>useSSL</name>
<value>0</value>
</init-param>