Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Michele Stoduto
ajax call from dataTable paginator primefaces or alloy not work
July 14, 2017 2:39 AM
Answer

Michele Stoduto

Rank: Junior Member

Posts: 29

Join Date: July 7, 2010

Recent Posts

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:
 1
 209:24:41,621 ERROR [RuntimePageImpl-5][render_portlet_jsp:132] null
 3java.lang.IllegalArgumentException: text/xml is an unsupported content type
 4    at com.liferay.portlet.MimeResponseImpl.setContentType(MimeResponseImpl.java:159)
 5    at javax.portlet.filter.RenderResponseWrapper.setContentType(RenderResponseWrapper.java:159)
 6    at com.liferay.faces.bridge.context.internal.ExternalContextCompat_2_0_Impl.setResponseContentType(ExternalContextCompat_2_0_Impl.java:555)
 7    at javax.faces.context.ExternalContextWrapper.setResponseContentType(ExternalContextWrapper.java:809)
 8    at com.sun.faces.context.AjaxExceptionHandlerImpl.handlePartialResponseError(AjaxExceptionHandlerImpl.java:198)
 9    at com.sun.faces.context.AjaxExceptionHandlerImpl.handle(AjaxExceptionHandlerImpl.java:127)
10    at javax.faces.context.ExceptionHandlerWrapper.handle(ExceptionHandlerWrapper.java:100)
11    at javax.faces.context.ExceptionHandlerWrapper.handle(ExceptionHandlerWrapper.java:100)
12    at com.liferay.faces.bridge.context.internal.ExceptionHandlerBridgeImpl.handle(ExceptionHandlerBridgeImpl.java:95)
13    at javax.faces.context.ExceptionHandlerWrapper.handle(ExceptionHandlerWrapper.java:100)
14    at com.liferay.faces.bridge.context.internal.ExceptionHandlerBridgeImpl.handle(ExceptionHandlerBridgeImpl.java:95)
15    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:119)
16    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)
17    at com.liferay.faces.bridge.internal.BridgePhaseHeaderRenderCommon.executeRender(BridgePhaseHeaderRenderCommon.java:206)
18    at com.liferay.faces.bridge.internal.BridgePhaseRenderCompatImpl.execute(BridgePhaseRenderCompatImpl.java:67)
19    at com.liferay.faces.bridge.internal.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:57)
20    at com.liferay.faces.bridge.internal.BridgeImpl.doFacesRequest(BridgeImpl.java:161)
21    at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:753)
22    at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:359)
23    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.
Attachments: test-portlet-6.2.3.1.war (12,554.3k), test-portlet_src.zip (12,569.8k)
Neil Griffin
RE: ajax call from dataTable paginator primefaces or alloy not work
July 14, 2017 2:42 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2499

Join Date: July 26, 2005

Recent Posts

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
Michele Stoduto
RE: ajax call from dataTable paginator primefaces or alloy not work
July 14, 2017 11:36 PM
Answer

Michele Stoduto

Rank: Junior Member

Posts: 29

Join Date: July 7, 2010

Recent Posts

Thanks for the reply,
sorry for the report, I need holidays.
Forget h: form !!!
Neil Griffin
RE: ajax call from dataTable paginator primefaces or alloy not work
July 15, 2017 10:30 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2499

Join Date: July 26, 2005

Recent Posts

I'm glad I could help. Thanks Michele for using Liferay Faces! emoticon