Foros de discusión
ajax call from dataTable paginator primefaces or alloy not work
Michele Stoduto, modificado hace 6 años.
ajax call from dataTable paginator primefaces or alloy not work
Junior Member Mensajes: 42 Fecha de incorporación: 7/07/10 Mensajes recientes
Hi all,
when create a dataTable primefaces or simillary with alloy the navigator not work.
With friendly url enabled I've an exception eg. /-courses/d/2017:
remove friendly url definition or call url without friendly url not have any exception.
The system is: liferay 6.2 ga 6, java 1.8.131 on windows 7, the bridge library is
com.liferay.faces.alloy: 3.0.1-SNAPSHOT
com.liferay.faces.portal: 2.0.1-SNAPSHOT
com.liferay.faces.bridge.ext: 3.0.1-SNAPSHOT
com.liferay.faces.bridge.impl: 4.1.0-SNAPSHOT
com.liferay.faces.bridge.api: 4.1.0-SNAPSHOT
com.liferay.faces.util: 3.1.0-SNAPSHOT
jsf-api/impl: 2.2.14
the snapshot version is for test the portlet with latest library.
primefaces 6.1.0 but navigator not work in similar mode with alloy.
Does anybody have any suggestions?
Thanks.
when create a dataTable primefaces or simillary with alloy the navigator not work.
With friendly url enabled I've an exception eg. /-courses/d/2017:
09:24:41,621 ERROR [RuntimePageImpl-5][render_portlet_jsp:132] null
java.lang.IllegalArgumentException: text/xml is an unsupported content type
at com.liferay.portlet.MimeResponseImpl.setContentType(MimeResponseImpl.java:159)
at javax.portlet.filter.RenderResponseWrapper.setContentType(RenderResponseWrapper.java:159)
at com.liferay.faces.bridge.context.internal.ExternalContextCompat_2_0_Impl.setResponseContentType(ExternalContextCompat_2_0_Impl.java:555)
at javax.faces.context.ExternalContextWrapper.setResponseContentType(ExternalContextWrapper.java:809)
at com.sun.faces.context.AjaxExceptionHandlerImpl.handlePartialResponseError(AjaxExceptionHandlerImpl.java:198)
at com.sun.faces.context.AjaxExceptionHandlerImpl.handle(AjaxExceptionHandlerImpl.java:127)
at javax.faces.context.ExceptionHandlerWrapper.handle(ExceptionHandlerWrapper.java:100)
at javax.faces.context.ExceptionHandlerWrapper.handle(ExceptionHandlerWrapper.java:100)
at com.liferay.faces.bridge.context.internal.ExceptionHandlerBridgeImpl.handle(ExceptionHandlerBridgeImpl.java:95)
at javax.faces.context.ExceptionHandlerWrapper.handle(ExceptionHandlerWrapper.java:100)
at com.liferay.faces.bridge.context.internal.ExceptionHandlerBridgeImpl.handle(ExceptionHandlerBridgeImpl.java:95)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:119)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)
at com.liferay.faces.bridge.internal.BridgePhaseHeaderRenderCommon.executeRender(BridgePhaseHeaderRenderCommon.java:206)
at com.liferay.faces.bridge.internal.BridgePhaseRenderCompatImpl.execute(BridgePhaseRenderCompatImpl.java:67)
at com.liferay.faces.bridge.internal.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:57)
at com.liferay.faces.bridge.internal.BridgeImpl.doFacesRequest(BridgeImpl.java:161)
at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:753)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:359)
at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:669)
remove friendly url definition or call url without friendly url not have any exception.
The system is: liferay 6.2 ga 6, java 1.8.131 on windows 7, the bridge library is
com.liferay.faces.alloy: 3.0.1-SNAPSHOT
com.liferay.faces.portal: 2.0.1-SNAPSHOT
com.liferay.faces.bridge.ext: 3.0.1-SNAPSHOT
com.liferay.faces.bridge.impl: 4.1.0-SNAPSHOT
com.liferay.faces.bridge.api: 4.1.0-SNAPSHOT
com.liferay.faces.util: 3.1.0-SNAPSHOT
jsf-api/impl: 2.2.14
the snapshot version is for test the portlet with latest library.
primefaces 6.1.0 but navigator not work in similar mode with alloy.
Does anybody have any suggestions?
Thanks.
Archivos adjuntos:
Neil Griffin, modificado hace 6 años.
RE: ajax call from dataTable paginator primefaces or alloy not work
Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
Hi Michele,
Thank you for the test portlet -- I was able to reproduce the issue.
When I surrounded the dataTable with <h:form>...</h:form> the problem went away.
Kind Regards,
Neil
Thank you for the test portlet -- I was able to reproduce the issue.
When I surrounded the dataTable with <h:form>...</h:form> the problem went away.
Kind Regards,
Neil
Michele Stoduto, modificado hace 6 años.
RE: ajax call from dataTable paginator primefaces or alloy not work
Junior Member Mensajes: 42 Fecha de incorporación: 7/07/10 Mensajes recientes
Thanks for the reply,
sorry for the report, I need holidays.
Forget h: form !!!
sorry for the report, I need holidays.
Forget h: form !!!
Neil Griffin, modificado hace 6 años.
RE: ajax call from dataTable paginator primefaces or alloy not work
Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
I'm glad I could help. Thanks Michele for using Liferay Faces!