ERROR: MAC did not confirm! Primefaces

I am trying to refresh content in a JSF 2.0 web application without refreshing the entire page.

This is my xhtml

<h:form id="form">  
    <h:outputText id="txt_count" value="#{counterBean.count}" />  

    <p:poll interval="3"   
            listener="#{counterBean.increment}" update="txt_count" />  
</h:form>  

And my bean

package org.primefaces.examples.view;  

import java.io.Serializable;  

import javax.faces.event.ActionEvent;  

public class CounterBean implements Serializable{  

    private int count;  

    public int getCount() {  
        return count;  
    }  

    public void setCount(int count) {  
        this.count = count;  
    }  

    public void increment() {  
        count++;  
    }  
}  

This compiles fine, but when it starts, I get the following error:

ERROR: MAC did not confirm!

+2
source share

Source: https://habr.com/ru/post/1533826/


All Articles