You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by rony john <ro...@gmail.com> on 2008/01/18 23:00:35 UTC

Re: getting PortalAdministration

Hi all,

I'm trying to make a custom jsr portlet using the Jetspeed2.
i couldnt get PortalAdministration from the getPortletContext().

i added the jetspeed-portlet.xml to the WEB-INF folder.
and
jetspeed-portlet.xml  is ::

<portlet-app id="j2-admin" version=" 1.0"
    xmlns="http://portals.apache.org/jetspeed"
    xmlns:js="http://portals.apache.org/jetspeed "
    xmlns:dc="http://www.purl.org/dc"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://portals.apache.org/jetspeed
http://portals.apache.org/jetspeed-2/2.1/schemas/jetspeed-portlet.xsd
">

   <js:security-constraint-ref>admin</js:security-constraint-ref>



    <portlet>
        <portlet-name>CDPortlet</portlet-name>

<js:security-constraint-ref>public-view</js:security-constraint-ref>
    </portlet>

    <js:services>

        <js:service name='PortalAdministration'/>
        <js:service name='UserManager'/>
   </js:services>

</portlet-app>


what will be the problem?

regards,
rony

Re: getting PortalAdministration

Posted by rony john <ro...@gmail.com>.
Hi Dennis,

   its working now.

thanks
rony

On Jan 21, 2008 4:30 PM, Dennis Dam <d....@hippo.nl> wrote:

> Hi Rony,
>
> can you try to remove the space just before the " in the this namespace
> declaration?
>
> xmlns:js="http://portals.apache.org/jetspeed "
>
>
> Dennis
>
> rony john wrote:
> > Hi all,
> >
> > I'm trying to make a custom jsr portlet using the Jetspeed2.
> > i couldnt get PortalAdministration from the getPortletContext().
> >
> > i added the jetspeed-portlet.xml to the WEB-INF folder.
> > and
> > jetspeed-portlet.xml  is ::
> >
> > <portlet-app id="j2-admin" version=" 1.0"
> >     xmlns=" http://portals.apache.org/jetspeed"
> >     xmlns:js="http://portals.apache.org/jetspeed "
> >     xmlns:dc="http://www.purl.org/dc"
> >     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> >     xsi:schemaLocation="http://portals.apache.org/jetspeed
> > http://portals.apache.org/jetspeed-2/2.1/schemas/jetspeed-portlet.xsd
> > ">
> >
> >    <js:security-constraint-ref>admin</js:security-constraint-ref>
> >
> >
> >
> >     <portlet>
> >         <portlet-name>CDPortlet</portlet-name>
> >
> > <js:security-constraint-ref>public-view</js:security-constraint-ref>
> >     </portlet>
> >
> >     <js:services>
> >
> >         <js:service name='PortalAdministration'/>
> >         <js:service name='UserManager'/>
> >    </js:services>
> >
> > </portlet-app>
> >
> >
> > what will be the problem?
> >
> > regards,
> > rony
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>

Re: getting PortalAdministration

Posted by Dennis Dam <d....@hippo.nl>.
Hi Rony,

can you try to remove the space just before the " in the this namespace 
declaration?

xmlns:js="http://portals.apache.org/jetspeed "


Dennis

rony john wrote:
> Hi all,
>
> I'm trying to make a custom jsr portlet using the Jetspeed2.
> i couldnt get PortalAdministration from the getPortletContext().
>
> i added the jetspeed-portlet.xml to the WEB-INF folder.
> and
> jetspeed-portlet.xml  is ::
>
> <portlet-app id="j2-admin" version=" 1.0"
>     xmlns="http://portals.apache.org/jetspeed"
>     xmlns:js="http://portals.apache.org/jetspeed "
>     xmlns:dc="http://www.purl.org/dc"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation="http://portals.apache.org/jetspeed
> http://portals.apache.org/jetspeed-2/2.1/schemas/jetspeed-portlet.xsd
> ">
>
>    <js:security-constraint-ref>admin</js:security-constraint-ref>
>
>
>
>     <portlet>
>         <portlet-name>CDPortlet</portlet-name>
>
> <js:security-constraint-ref>public-view</js:security-constraint-ref>
>     </portlet>
>
>     <js:services>
>
>         <js:service name='PortalAdministration'/>
>         <js:service name='UserManager'/>
>    </js:services>
>
> </portlet-app>
>
>
> what will be the problem?
>
> regards,
> rony
>
>   


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