Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Benjamin Fischer
Using Primefaces in ICEfaces Portlet?
16 maggio 2012 6.13
Risposta

Benjamin Fischer

Punteggio: New Member

Messaggi: 9

Data di Iscrizione: 14 maggio 2012

Messaggi recenti

Hi everyone,

we are currently using ICEfaces3 to build JSF2 Portlets in Liferay 6.1 and want two selectManyListboxes like this one: Primefaces PickList

Is it supported to use Primefaces in addition to ICEfaces with the Liferay Faces Bridge?

Adding primefaces.jar and its pickList in an ICEfaces portlet always leads to the following error:
 1ERROR [render_portlet_jsp:154] org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.
 2    at org.icefaces.impl.context.DOMResponseWriter.appendToCursor(DOMResponseWriter.java:396)
 3    at org.icefaces.impl.context.DOMResponseWriter.startElement(DOMResponseWriter.java:259)
 4    at org.portletfaces.bridge.renderkit.html_basic.BodyRenderer.encodeBegin(BodyRenderer.java:68)
 5    at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:820)
 6    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1755)
 7    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1760)
 8    at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:401)
 9    at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
10    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
11    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
12    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
13    at org.portletfaces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:433)
14    at org.portletfaces.bridge.GenericFacesPortlet.doView(GenericFacesPortlet.java:181)
15    at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
16    at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
17    at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
18    at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
19    at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:93)
20    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
21    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
Neil Griffin
RE: Using Primefaces in ICEfaces Portlet?
16 maggio 2012 10.01
Risposta

Neil Griffin

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 2097

Data di Iscrizione: 26 luglio 2005

Messaggi recenti

The ICEfaces DOMResponseWriter is part of a server-side "dom-diff" feature that is unique to ICEfaces. The benefit is that developers don't have to put <f:ajax/> tags throughout their Facelet views in order to determine update zones. The drawback is that other component libraries (like PrimeFaces) may not be compatible with the DOMResponseWriter. This is probably what your encountering with the PrimeFaces p:pickList component tag.
Benjamin Fischer
RE: Using Primefaces in ICEfaces Portlet?
19 maggio 2012 1.21
Risposta

Benjamin Fischer

Punteggio: New Member

Messaggi: 9

Data di Iscrizione: 14 maggio 2012

Messaggi recenti

Thx for your answer.
The automatic dom diff update is one of the features we like from ICEfaces. So that means we have to develop something like that p:pickList on our own. Hopefully we are not encountering more components "missing" in the ICEfaces framework...
Neil Griffin
RE: Using Primefaces in ICEfaces Portlet?
21 maggio 2012 10.23
Risposta

Neil Griffin

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 2097

Data di Iscrizione: 26 luglio 2005

Messaggi recenti

There is an ice-cc:dualList composite component in ICEfaces EE that might be helpful to your use-case.
Benjamin Fischer
RE: Using Primefaces in ICEfaces Portlet?
29 maggio 2012 8.56
Risposta

Benjamin Fischer

Punteggio: New Member

Messaggi: 9

Data di Iscrizione: 14 maggio 2012

Messaggi recenti

Thank you for your hint. Unfortunately we dont have access to ICEfaces EE.
But it looks like the new version get something similar:
ace:list & ace:listControl - single ordered column list, dual column list, or n-column list controls (ICEfaces 3.1.0.BETA1 Release Notes)
Neil Griffin
RE: Using Primefaces in ICEfaces Portlet?
29 maggio 2012 9.23
Risposta

Neil Griffin

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 2097

Data di Iscrizione: 26 luglio 2005

Messaggi recenti

Sounds great emoticon Please let me know if you have any problems with running ICEfaces 3.1.0-BETA1 in the bridge.