掲示板

Primefaces 2.2.1 charts in liferay 6.0.6 portlet

12年前 に Daniel Lopez によって更新されました。

Primefaces 2.2.1 charts in liferay 6.0.6 portlet

New Member 投稿: 3 参加年月日: 11/11/07 最新の投稿
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
12年前 に Moayad Abu Jaber によって更新されました。

RE: Primefaces 2.2.1 charts in liferay 6.0.6 portlet

New Member 投稿: 17 参加年月日: 11/03/03 最新の投稿
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
thumbnail
11年前 に Neil Griffin によって更新されました。

RE: Primefaces 2.2.1 charts in liferay 6.0.6 portlet

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
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
thumbnail
11年前 に michele michele によって更新されました。

RE: Primefaces 2.2.1 charts in liferay 6.0.6 portlet

New Member 投稿: 3 参加年月日: 12/07/14 最新の投稿
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
thumbnail
11年前 に Ádám T. Nagy によって更新されました。

RE: Primefaces 2.2.1 charts in liferay 6.0.6 portlet

New Member 投稿: 6 参加年月日: 12/06/01 最新の投稿
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
thumbnail
11年前 に michele michele によって更新されました。

RE: Primefaces 2.2.1 charts in liferay 6.0.6 portlet

New Member 投稿: 3 参加年月日: 12/07/14 最新の投稿
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)
11年前 に Marjan Mitev によって更新されました。

RE: Primefaces 2.2.1 charts in liferay 6.0.6 portlet

New Member 投稿: 15 参加年月日: 12/12/23 最新の投稿
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....
thumbnail
11年前 に Neil Griffin によって更新されました。

RE: Primefaces 2.2.1 charts in liferay 6.0.6 portlet

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
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