I'm try to use the primefaces calendar with popup in this way:

```
<p:calendar pattern="yyyy-MMM-dd" value="#{controller.beginDate}" mask="true" navigator="true">
    <f:ajax event="valueChange" listener="#{controller.onChange}" />
</p:calendar>

```

And here is the relative controller:

```
@ManagedBean
public class Controller {
    private Date beginDate;

    public Date getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }

    public void onChange() {
        // do somethings
    }
}

```

The problem: if I change the value from the input field, the event will be execute, but if I change it from the popup, the event will NOT execute.

Can anyone help me?