On Tue, Feb 23, 2010 at 5:53 PM, Michael <[email protected]> wrote:

> Anyone,
>
> I am trying to accessing some managers (ie PageManager, UserManager, etc..)
> from a Wicket page.  I'm obtaining the portlet context by using the
> following code:
>
> PortletRequestContext prc = (PortletRequestContext)RequestContext.get();
> prc.getPortletRequest().getPortletSession().getPortletContext();
>
> But when I try to access the manager by the following means:
>
>
> (PageManager)portletContext.getAttribute(CommonPortletServices.CPS_PAGE_MANAGER_COMPONENT);
>
> The manager is never found.
>
> Did you add this entry to your jetspeed-portlet.xml:

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

see:

http://portals.apache.org/jetspeed-2/tutorial/04/jetspeed-service.html

More general wicket portlet docs here:

http://cwiki.apache.org/WICKET/portal-howto.html

Reply via email to