Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Luca Carminati
Primefaces IPC + PrimePush
July 4, 2013 1:16 AM
Answer

Luca Carminati

Rank: New Member

Posts: 13

Join Date: April 4, 2013

Recent Posts

Hi, I'm using Glassfish 3.1.2, Primefaces 3.5, Glassfish 3.1.2 and Liferay 6.1.

I need to implement IPC without refresh the entire page. I have read some post like primefaces-IPC-portlet and I have developed an application that use atmosphere 1.1.0.RC4 (PrimePush) and omnifaces 1.3 but I have this exception:

  1WARNING: ApplicationDispatcher[/smeupIPCportlet-1.0-SNAPSHOT] PWC1231: Servlet.service() for servlet smeup2 Servlet threw exception
  2javax.portlet.faces.BridgeException: java.lang.NoClassDefFoundError: Could not initialize class org.omnifaces.config.WebXml
  3    at com.liferay.faces.bridge.BridgePhaseResourceImpl.execute(BridgePhaseResourceImpl.java:139)
  4    at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:128)
  5    at javax.portlet.faces.GenericFacesPortlet.serveResource(GenericFacesPortlet.java:178)
  6    at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:118)
  7    at com.liferay.cdi.portlet.bridge.CDIPortletFilter.doFilter(CDIPortletFilter.java:97)
  8    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  9    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 10    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 11    at java.lang.reflect.Method.invoke(Method.java:601)
 12    at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
 13    at com.sun.proxy.$Proxy835.doFilter(Unknown Source)
 14    at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:112)
 15    at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:71)
 16    at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:111)
 17    at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
 18    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
 19    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
 20    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
 21    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 22    at org.jboss.weld.servlet.WeldCrossContextFilter.doFilter(WeldCrossContextFilter.java:62)
 23    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 24    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 25    at com.liferay.cdi.portlet.bridge.CDICrossContextFilter.doFilter(CDICrossContextFilter.java:47)
 26    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 27    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 28    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 29    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
 30    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
 31    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:807)
 32    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:671)
 33    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:505)
 34    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:476)
 35    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:355)
 36    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:305)
 37    at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:531)
 38    at com.liferay.portlet.InvokerPortletImpl.invokeResource(InvokerPortletImpl.java:626)
 39    at com.liferay.portlet.InvokerPortletImpl.serveResource(InvokerPortletImpl.java:436)
 40    at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:1075)
 41    at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:719)
 42    at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:249)
 43    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
 44    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
 45    at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:176)
 46    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
 47    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
 48    at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
 49    at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:560)
 50    at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:537)
 51    at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
 52    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
 53    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
 54    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
 55    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 56    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 57    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 58    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 59    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 60    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 61    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 62    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
 63    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 64    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 65    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 66    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 67    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
 68    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
 69    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:807)
 70    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:671)
 71    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:505)
 72    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:476)
 73    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:355)
 74    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:305)
 75    at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:138)
 76    at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
 77    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
 78    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
 79    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
 80    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 81    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 82    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 83    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 84    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 85    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 86    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 87    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
 88    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 89    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 90    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 91    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 92    at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:241)
 93    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 94    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 95    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 96    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 97    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 98    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 99    at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:56)
100    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
101    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
102    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
103    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
104    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:246)
105    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
106    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
107    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
108    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
109    at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
110    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
111    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
112    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
113    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
114    at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80)
115    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
116    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
117    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
118    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
119    at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:216)
120    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
121    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
122    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
123    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
124    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
125    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
126    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
127    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
128    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
129    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
130    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
131    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
132    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
133    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
134    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
135    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
136    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
137    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
138    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
139    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
140    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
141    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
142    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
143    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
144    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
145    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
146    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
147    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
148    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
149    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
150    at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
151    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
152    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
153    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
154    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
155    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
156    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
157    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
158    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
159    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
160    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
161    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
162    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
163    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
164    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
165    at java.lang.Thread.run(Thread.java:722)
166Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.omnifaces.config.WebXml
167    at org.omnifaces.exceptionhandler.FullAjaxExceptionHandler.handleAjaxException(FullAjaxExceptionHandler.java:162)
168    at org.omnifaces.exceptionhandler.FullAjaxExceptionHandler.handle(FullAjaxExceptionHandler.java:145)
169    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:119)
170    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
171    at com.liferay.faces.bridge.BridgePhaseResourceImpl.execute(BridgePhaseResourceImpl.java:118)
172    ... 162 more


The application works fine without PrimePush by refreshing the entire page.
To implement PrimePush I have read the primefaces user guide Chapter 5.

My portlet.xml is:

 1<portlet>
 2        <portlet-name>ipc2</portlet-name>
 3
 4        <display-name>IPC2</display-name>
 5        <portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>
 6
 7        <init-param>
 8            <name>javax.portlet.faces.defaultViewId.view</name>
 9            <value>/faces/data.xhtml</value>
10        </init-param>
11        <expiration-cache>0</expiration-cache>
12        <supports>
13            <mime-type>text/html</mime-type>
14        </supports>
15    </portlet>



and the web.xml:

 1<context-param>
 2        <param-name>javax.faces.PROJECT_STAGE</param-name>
 3        <param-value>Production</param-value>
 4    </context-param>
 5    <filter>
 6        <filter-name>CDICrossContextFilter</filter-name>
 7        <filter-class>com.liferay.cdi.portlet.bridge.CDICrossContextFilter</filter-class>
 8    </filter>
 9    <filter-mapping>
10        <filter-name>CDICrossContextFilter</filter-name>
11        <url-pattern>/*</url-pattern>
12        <dispatcher>INCLUDE</dispatcher>
13        <dispatcher>FORWARD</dispatcher>
14        <dispatcher>ERROR</dispatcher>
15    </filter-mapping>
16    <filter>
17        <filter-name>WeldCrossContextFilter</filter-name>
18        <filter-class>org.jboss.weld.servlet.WeldCrossContextFilter</filter-class>
19    </filter>
20    <filter-mapping>
21        <filter-name>WeldCrossContextFilter</filter-name>
22        <url-pattern>/*</url-pattern>
23        <dispatcher>INCLUDE</dispatcher>
24        <dispatcher>FORWARD</dispatcher>
25        <dispatcher>ERROR</dispatcher>
26    </filter-mapping>
27
28    <listener>
29        <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
30    </listener>
31    <listener>
32        <listener-class>com.liferay.faces.bridge.servlet.BridgeSessionListener</listener-class>
33    </listener>
34    <listener>
35        <listener-class>com.liferay.cdi.portlet.bridge.CDIContextListener</listener-class>
36    </listener>
37    <!-- Although the FacesServlet will not be invoked by any portlet requests,
38        it is required to initialize JSF. -->
39    <servlet>
40        <servlet-name>Faces Servlet</servlet-name>
41        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
42        <load-on-startup>1</load-on-startup>
43    </servlet>
44
45    <servlet-mapping>
46        <servlet-name>Faces Servlet</servlet-name>
47        <url-pattern>*.xhtml</url-pattern>
48    </servlet-mapping>
49
50    <servlet>
51        <servlet-name>Push Servlet</servlet-name>
52        <servlet-class>org.primefaces.push.PushServlet</servlet-class>
53    </servlet>
54    <servlet-mapping>
55        <servlet-name>Push Servlet</servlet-name>
56        <url-pattern>/primepush/*</url-pattern>
57    </servlet-mapping>


Someone experienced the same problem?

Thanks.

Luca
Juan Gonzalez
RE: Primefaces IPC + PrimePush
July 4, 2013 1:28 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2892

Join Date: October 28, 2008

Recent Posts

HI Luca,

do you have "org.primefaces.push.PushServlet" in your classpath ?

Can you attach a test portlet?
Luca Carminati
RE: Primefaces IPC + PrimePush
July 5, 2013 3:57 AM
Answer

Luca Carminati

Rank: New Member

Posts: 13

Join Date: April 4, 2013

Recent Posts

Hi Juan,

I have developed a new test application so I can try step by step to implement an IPC PrimePush communication.

First of all I try to use Primefaces, PrimePush, liferay on glassfish 3.1.2 without omnifaces (primetest attachment).

When I click on the first portlet the controller is called but The second portlet is never updated.
The log doesn't show any log but only this WARNING:

1This message {"data":""} will be lost, adding it to the BroadcasterCache|#]


Any suggestion?

Thanks

Luca
Attachments: primetest-1.0-SNAPSHOT.war (3,260.0k)
Luca Carminati
RE: Primefaces IPC + PrimePush
July 9, 2013 5:52 AM
Answer

Luca Carminati

Rank: New Member

Posts: 13

Join Date: April 4, 2013

Recent Posts

Hi,
I have detected the problem of my application.
When I submit information from portlet A through the submit button the managed bean send a push message:
1"pushContext.push("/message", String.valueOf(new Date()));"


The partial-response update the element with id="javax.faces.ViewState".

In general portal page contains more than one form (at least one per portlet) and the element refreshed depends on the order of the portlet into the page.

e.g. if I place the portlet B before portlet A everithing works fine but if I place portlet A before B only the A is updated.

Is there a solution of this problem?
Can I update an element more selectively with primepush?

Thanks

Luca