Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Daniel Lopez
Primefaces 2.2.1 charts in liferay 6.0.6 portlet
30 ottobre 2011 14.33
Risposta

Daniel Lopez

Punteggio: New Member

Messaggi: 3

Data di Iscrizione: 6 novembre 2011

Messaggi recenti

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 dicembre 2011 2.56
Risposta

Moayad Abu Jaber

Punteggio: New Member

Messaggi: 18

Data di Iscrizione: 2 marzo 2011

Messaggi recenti

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 maggio 2012 9.30
Risposta

Neil Griffin

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 2256

Data di Iscrizione: 26 luglio 2005

Messaggi recenti

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 febbraio 2013 8.56
Risposta

michele michele

Punteggio: New Member

Messaggi: 3

Data di Iscrizione: 14 luglio 2012

Messaggi recenti

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 febbraio 2013 0.31
Risposta

Ádám T. Nagy

LIFERAY STAFF

Punteggio: New Member

Messaggi: 6

Data di Iscrizione: 1 giugno 2012

Messaggi recenti

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 febbraio 2013 2.50
Risposta

michele michele

Punteggio: New Member

Messaggi: 3

Data di Iscrizione: 14 luglio 2012

Messaggi recenti

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 febbraio 2013 3.31
Risposta

Marjan Mitev

Punteggio: New Member

Messaggi: 15

Data di Iscrizione: 23 dicembre 2012

Messaggi recenti

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 febbraio 2013 12.29
Risposta

Neil Griffin

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 2256

Data di Iscrizione: 26 luglio 2005

Messaggi recenti

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