Has anybody trying to do a portlet that communicates with Nuxeo?
I'm trying with the Sample Nuxeo portlet, but I haven't success. I can
see the view mode (the doView method works), but the processViewAction
method is never called when I do a submit in the view.
If I design a portlet that extends from GenericPortlet instead
NuxeoPortlet (that extends GenericPortlet) the processAction method
works fine.
Is the problem in the NuxeoPortlet class or I'm doing something wrong?
Merry Christmas!
Enrique Pérez escribió:
> It doesn't work yet.
>
> I noticed another mistake (at least connecting with JBoss Portal): we
> must also write the following:
>
> response.setContentType("text/html");
>
> I have some problems to connect with Nuxeo. I've installed the
> restPack and the nuxeo-platform-login-portal-sso, but I'm not sure
> about configure the Sample-Portal-SSO-descriptor-bundle.xml and
> portlet.xml.
>
> I use this config in portlet.xml:
>
> <init-param>
> <name>nuxeoServerBaseURL</name>
> <value>http://localhost:8080/nuxeo</value>
> </init-param>
> <init-param>
> <name>nuxeoClientBaseURL</name>
> <value>http://localhost:8282/portal</value>
> </init-param>
> <init-param>
> <name>userName</name>
> <value>Administrator</value>
> </init-param>
> <init-param>
> <name>password</name>
> <value>Administrator</value>
> </init-param>
> <init-param>
> <name>secretToken</name>
> <value></value>
> </init-param>
> <init-param>
> <name>authenticationMode</name>
> <value>authModeBasic</value> <!-- could be 'authModeBasic' or
> 'authModePortal', depending of what default authentication you want -->
> </init-param>
>
> Is that correct?? What's the secretToken field?
>
> Thanks in advance.
>
>
> Quoting Stefane Fermigier <sf at nuxeo.com>:
>
>> Cool!
>>
>> Do you have a patch to submit ?
>>
>> S.
>>
>> On Dec 20, 2007, at 7:23 PM, Enrique Perez wrote:
>>> I solve it!
>>>
>>> The problem was in the following lines:
>>>
>>> request.setAttribute("result", request.getParameter("result"));
>>>
>>> PortletRequestDispatcher dispatcher =
>>> getPortletContext().getRequestDispatcher(
>>> VIEW_JSP);
>>> dispatcher.include(request, response);
>>>
>>> We have to consider when the field "result" has no value.
>>>
>>> Regards.
>>>
>>> --Enrique Pérez Olivares.
>>> Dpto I+D.
>>> Yerbabuena Software.
>>> enriqueperez at yerbabuena.es
>>> http://www.yerbabuena.es
>>> Tlf/Fax: 902 995 246
>>> _______________________________________________
>>> ECM mailing list
>>> ECM at lists.nuxeo.com
>>> http://lists.nuxeo.com/mailman/listinfo/ecm
>>>
>>
>> --
>> Stefane Fermigier, CEO, Nuxeo
>> Open Source, Java EE based, Enterprise Content Management (ECM)
>> New! Nuxeo TV on http://nuxeo.blip.tv/
>> Web: http://www.nuxeo.com/ - Tel: +33 1 40 33 79 87
>
>
>
>
--
Enrique Pérez Olivares.
Dpto I+D.
Yerbabuena Software.
enriqueperez at yerbabuena.es
http://www.yerbabuena.es
Tlf/Fax: 902 995 246
This page is from a mailing archive for one of the Nuxeo projects.