Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Daniel Lopez
Primefaces 2.2.1 charts in liferay 6.0.6 portlet
October 30, 2011 2:33 PM
Answer

Daniel Lopez

Rank: New Member

Posts: 3

Join Date: November 6, 2011

Recent Posts

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
December 22, 2011 2:56 AM
Answer

Moayad Abu Jaber

Rank: New Member

Posts: 18

Join Date: March 2, 2011

Recent Posts

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
May 4, 2012 9:30 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2351

Join Date: July 26, 2005

Recent Posts

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
February 11, 2013 8:56 AM
Answer

michele michele

Rank: New Member

Posts: 3

Join Date: July 14, 2012

Recent Posts

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
February 12, 2013 12:31 AM
Answer

Ádám T. Nagy

Rank: New Member

Posts: 6

Join Date: June 1, 2012

Recent Posts

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
February 13, 2013 2:50 AM
Answer

michele michele

Rank: New Member

Posts: 3

Join Date: July 14, 2012

Recent Posts

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
February 13, 2013 3:31 AM
Answer

Marjan Mitev

Rank: New Member

Posts: 15

Join Date: December 23, 2012

Recent Posts

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
February 14, 2013 12:29 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2351

Join Date: July 26, 2005

Recent Posts

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