I am trying to implement some basic push functions with primary in jsf. I used the counter example http://www.primefaces.org/showcase-labs/push/counter.jsf there . This is essentially a button that increments the total counter. When running this example, I always get this error:
ERROR: MAC did not verify!
I understand that a Mac is generated every session, and then every incoming message is checked to make sure that the source has not changed (I think). I could not find the reason for this and looked at other threads, such as:
ERROR: MAC did not confirm! Primefaces
JSF: Mojarra migration from 2.1 to 2.2 causing a ViewExpiredException
Unfortunately, this did not solve my problem. Both seem to be triggered by a ViewExpiredException, which I am not getting. The only thing I found to stop this was to change the way state was saved from client to server in web.xml:
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
However, the counter is no longer used, but it seems to the user that I don’t want. My ultimate goal is to create a chat that for the most part is, but right now it is using a short survey that is not very scalable. Looking at what I understood, I thought it would be perfect, but they tried my best to use it.
- (Tomcat, Jetty Glassfish) JSF (Mojarra) (3.4 4.0). . , , . , . , , . . .
web.xml, MAC, , . , , . , firefox IE, . , . , , , .
, bean , . , , . . , , MAC ? , , , / -? , , , , , ?