Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Daniel Lopez
Primefaces 2.2.1 charts in liferay 6.0.6 portlet
30 de octubre de 2011 14:33
Respuesta

Daniel Lopez

Ranking: New Member

Mensajes: 3

Fecha de incorporación: 6 de noviembre de 2011

Mensajes recientes

Hi, all.

I'm new in Primefaces, and I'm trying to show a chart in a Liferay portlet. But when I put this code

<p:stackedColumnChart
value="#{postulantesEdadesController.postulantesVoluntarios}"
var="postulantes" xfield="#{postulantes.edades}" style="chartStyle">
<p:chartSeries label="Hombres" value="#{postulantes.hombres}" />
<p:chartSeries label="Mujeres" value="#{postulantes.mujeres}" />
</p:stackedColumnChart/>




the portlet shows this message

portlet-estadisticas is temporarily unavailable.




And I get in the console of my Eclipse the following error


21:18:49,957 ERROR [ExternalContextImpl:1051] Unable to call portletResponse.setProperty(String, String) for portletResponse=[com.liferay.portlet.RenderResponseImpl] because it is not a ResourceResponse.
21:18:49,966 ERROR [jsp:154] java.lang.NullPointerException
at com.sun.faces.lifecycle.RestoreViewPhase.notifyAfter(RestoreViewPhase.java:301)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:114)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at BridgeImpl.java.doFacesRequest(BridgeImpl.java:232)
at org.portletfaces.bridge.GenericFacesPortlet.doView(GenericFacesPortlet.java:194)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:101)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:638)
at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:723)
at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:425)
at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1440)



Please, somebody can help me.

Thanks.

Daniel

PD: sorry by my english
Moayad Abu Jaber
RE: Primefaces 2.2.1 charts in liferay 6.0.6 portlet
22 de diciembre de 2011 2:56
Respuesta

Moayad Abu Jaber

Ranking: New Member

Mensajes: 18

Fecha de incorporación: 2 de marzo de 2011

Mensajes recientes

Hi,
I tried to developed primefaces portlet with porletfaces bridge but it seem still there is problem in loading resources in portletfaces bridge.



Regards,
Moayad
Neil Griffin
RE: Primefaces 2.2.1 charts in liferay 6.0.6 portlet
4 de mayo de 2012 9:30
Respuesta

Neil Griffin

LIFERAY STAFF

Ranking: Liferay Legend

Mensajes: 2139

Fecha de incorporación: 26 de julio de 2005

Mensajes recientes

Hi Daniel, Hi Moayad,

When you get a chance, it would be great if you could try the new Liferay Faces Bridge and let me know if this is still an issue. There have been a lot of fixes in the bridge regarding resource loading.

Thanks,

Neil
michele michele
RE: Primefaces 2.2.1 charts in liferay 6.0.6 portlet
11 de febrero de 2013 8:56
Respuesta

michele michele

Ranking: New Member

Mensajes: 3

Fecha de incorporación: 14 de julio de 2012

Mensajes recientes

Hello Neil,
I'm using Liferay 6.0, PrimeFaces 3.4.2 and liferay-faces-bridge-api-3.1.0 and impl.

When I make a portlet on a <p:dataExporter> in excel, the error message is:

16:33:23,077 WARN [ExternalContextImpl: 180] Unable to call portletResponse.addProperty (String, String) for portletResponse = [com.liferay.portlet.ActionResponseImpl] Because it is not a ResourceResponse.

Please, if you can give me some advice. Thank you very much

Michele
Ádám T. Nagy
RE: Primefaces 2.2.1 charts in liferay 6.0.6 portlet
12 de febrero de 2013 0:31
Respuesta

Ádám T. Nagy

LIFERAY STAFF

Ranking: New Member

Mensajes: 5

Fecha de incorporación: 1 de junio de 2012

Mensajes recientes

Hi Michele,

You should use Liferay Faces 3.0.x with Liferay 6.0.x

You can check the compatibility here:
http://www.liferay.com/community/liferay-projects/liferay-faces/download

I hope this helps move forward,

Best regards,
Adam
michele michele
RE: Primefaces 2.2.1 charts in liferay 6.0.6 portlet
13 de febrero de 2013 2:50
Respuesta

michele michele

Ranking: New Member

Mensajes: 3

Fecha de incorporación: 14 de julio de 2012

Mensajes recientes

hello and thanks for the reply.

I entered the library Liferay-Faces-alloy-3.0.0-ga1.jar
bridge-api-3.0.0-ga1
impl
portal-3.0.0-ga1.jar
util-3.0.0-ga1.jar
but I get this result.

Thank you.

10:41:38,641 WARN [ExternalContextCompatImpl:150] Unable to call portletResponse.addProperty(String, String) for portletResponse=[com.liferay.portlet.ActionResponseImpl] because it is not a ResourceResponse.
10:41:38,642 WARN [ExternalContextCompatImpl:150] Unable to call portletResponse.addProperty(String, String) for portletResponse=[com.liferay.portlet.ActionResponseImpl] because it is not a ResourceResponse.
10:41:38,643 WARN [ExternalContextCompatImpl:150] Unable to call portletResponse.addProperty(String, String) for portletResponse=[com.liferay.portlet.ActionResponseImpl] because it is not a ResourceResponse.
10:41:38,644 WARN [ExternalContextCompatImpl:150] Unable to call portletResponse.addProperty(String, String) for portletResponse=[com.liferay.portlet.ActionResponseImpl] because it is not a ResourceResponse.
10:41:38,728 ERROR [jsp:154] java.lang.IllegalArgumentException: application/vnd.ms-excel is not a supported mime type
at com.liferay.portlet.MimeResponseImpl.setContentType(MimeResponseImpl.java:159)
at com.liferay.faces.bridge.container.PortletContainerImpl.setMimeResponseContentType(PortletContainerImpl.java:460)
at com.liferay.faces.bridge.context.ExternalContextCompatImpl.setResponseContentType(ExternalContextCompatImpl.java:594)
at com.liferay.faces.bridge.context.IncongruityContextCompatImpl.makeCongruousJSF2(IncongruityContextCompatImpl.java:145)
at com.liferay.faces.bridge.context.IncongruityContextImpl.makeCongruous(IncongruityContextImpl.java:53)
at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:222)
at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:85)
at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:100)
at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:255)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:204)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:101)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
Marjan Mitev
RE: Primefaces 2.2.1 charts in liferay 6.0.6 portlet
13 de febrero de 2013 3:31
Respuesta

Marjan Mitev

Ranking: New Member

Mensajes: 15

Fecha de incorporación: 23 de diciembre de 2012

Mensajes recientes

Even if you use 3.0.x with 6.0.x portal and trying to setup ajax in your portlets, it's not going to work. Still generating that classcast exception....
Neil Griffin
RE: Primefaces 2.2.1 charts in liferay 6.0.6 portlet
14 de febrero de 2013 12:29
Respuesta

Neil Griffin

LIFERAY STAFF

Ranking: Liferay Legend

Mensajes: 2139

Fecha de incorporación: 26 de julio de 2005

Mensajes recientes

Hi Michele,

This is a known issue, which you can find reference to here:
http://code.google.com/p/primefaces/issues/detail?id=1109

We are targetting a fix for this issue this year. It may require our contribution to the PrimeFaces project.

Neil