组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
Daniel Lopez
Primefaces 2.2.1 charts in liferay 6.0.6 portlet
2011年10月30日 下午2:33
答复

Daniel Lopez

等级: New Member

帖子: 3

加入日期: 2011年11月6日

最近的帖子

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
2011年12月22日 上午2:56
答复

Moayad Abu Jaber

等级: New Member

帖子: 18

加入日期: 2011年3月2日

最近的帖子

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
2012年5月4日 上午9:30
答复

Neil Griffin

LIFERAY STAFF

等级: Liferay Legend

帖子: 2179

加入日期: 2005年7月26日

最近的帖子

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
2013年2月11日 上午8:56
答复

michele michele

等级: New Member

帖子: 3

加入日期: 2012年7月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
Ádám T. Nagy
RE: Primefaces 2.2.1 charts in liferay 6.0.6 portlet
2013年2月12日 上午12:31
答复

Ádám T. Nagy

LIFERAY STAFF

等级: New Member

帖子: 5

加入日期: 2012年6月1日

最近的帖子

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
2013年2月13日 上午2:50
答复

michele michele

等级: New Member

帖子: 3

加入日期: 2012年7月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)
Marjan Mitev
RE: Primefaces 2.2.1 charts in liferay 6.0.6 portlet
2013年2月13日 上午3:31
答复

Marjan Mitev

等级: New Member

帖子: 15

加入日期: 2012年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....
Neil Griffin
RE: Primefaces 2.2.1 charts in liferay 6.0.6 portlet
2013年2月14日 下午12:29
答复

Neil Griffin

LIFERAY STAFF

等级: Liferay Legend

帖子: 2179

加入日期: 2005年7月26日

最近的帖子

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