I think I solve it.
The problem was the view.jsp file, that doesn't works fine.
I've connected with Nuxeo succesfully, but I've had to modify
PorletNuxeoServer.java with my data connection (username, password,nuxeo
server, ...) because I don't know how to load it with the Preferences class.
I think that I have to use the second parameter of doRestleCall, but I
don't know how it works.
Merry Christmas!
Enrique Perez escribió:
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 <[EMAIL PROTECTED]>:
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.
[EMAIL PROTECTED]
http://www.yerbabuena.es
Tlf/Fax: 902 995 246
_______________________________________________
ECM mailing list
[email protected]
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.
[EMAIL PROTECTED]
http://www.yerbabuena.es
Tlf/Fax: 902 995 246
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm