错误:MAC没有验证! PrimeFaces

时间:2013-10-22 14:44:53

标签: jsf primefaces

我正在尝试更新JSF 2.0 webapp中的内容而不刷新整个页面。

这是我的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>  

我的豆子

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++;  
    }  
}  

这个编译很好但是当它运行时我得到以下错误:

错误:MAC没有验证!

0 个答案:

没有答案
相关问题