portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip Mark Donaghy" <philip.dona...@gmail.com>
Subject Re: How I can get access to PSML in a Portlet?
Date Wed, 13 Sep 2006 21:45:54 GMT
Hi Michael,

You need to put all the portlet-app content in portlet.xml except,

xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
xmlns:js="http://portals.apache.org/jetspeed"
xmlns:dc="http://www.purl.org/dc"

         <js:services>
             <js:service name='PageManager'/>
         </js:services>

This content goes in the jetspeed-portlet.xml

You need both files. Try looking at the j2-admin application.

Philip

On 9/13/06, Michael Boss <baron.muenhausen@googlemail.com> wrote:
> It not turn out.
> My jetspeed-portlet.xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <portlet-app id="dbportlet"
>     xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
>     xmlns:js="http://portals.apache.org/jetspeed"
>     xmlns:dc="http://www.purl.org/dc">
>     <portlet id="DBTest">
>         <portlet-name>DBTest</portlet-name>
>         <portlet-class>
>             jdbc.dbportlet
>         </portlet-class>
>         <init-param>
>             <name>sqlQuery</name>
>             <value>
>                SELECT GROUP_ID, GROUP_NAME, PARENT_ID FROM mifa_portlet_group
>             </value>
>         </init-param>
>         <init-param>
>             <name>pageSize</name>
>             <value>6</value>
>         </init-param>
>         <supports>
>             <mime-type>text/html</mime-type>
>             <portlet-mode>view</portlet-mode>
>         </supports>
>         <portlet-info>
>             <title>Group und portlet manager tree</title>
>         </portlet-info>
>     </portlet>
>
>     <portlet id="groupProperty">
>         <portlet-name>groupProperty</portlet-name>
>         <portlet-class>
>             groupProperty.groupPropertyPortlet
>         </portlet-class>
>         <init-param>
>             <name>sqlQuery</name>
>             <value>
>                SELECT GROUP_ID, GROUP_NAME, PARENT_ID FROM mifa_portlet_group
>             </value>
>         </init-param>
>         <init-param>
>             <name>pageSize</name>
>             <value>6</value>
>         </init-param>
>         <supports>
>             <mime-type>text/html</mime-type>
>             <portlet-mode>view</portlet-mode>
>         </supports>
>         <portlet-info>
>             <title>Group property</title>
>         </portlet-info>
>     </portlet>
>
>     <portlet id="portletProperty">
>         <portlet-name>portletProperty</portlet-name>
>         <portlet-class>
>             portletProperty.portletPropertyPortlet
>         </portlet-class>
>         <init-param>
>             <name>sqlQuery</name>
>             <value>
>                SELECT GROUP_ID, GROUP_NAME, PARENT_ID FROM mifa_portlet
>             </value>
>         </init-param>
>         <init-param>
>             <name>pageSize</name>
>             <value>6</value>
>         </init-param>
>         <supports>
>             <mime-type>text/html</mime-type>
>             <portlet-mode>view</portlet-mode>
>         </supports>
>         <portlet-info>
>             <title>Portlet property</title>
>         </portlet-info>
>     </portlet>
>
>         <js:services>
>             <js:service name='PageManager'/>
>         </js:services>
>
> </portlet-app>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
>
>


-- 
Philip Donaghy
donaghy.blogspot.com del.icio.us/donaghy/philip
Skype: philipmarkdonaghy
Office: +33 5 56 60 88 02
Mobile: +33 6 20 83 22 62

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message