Why is p:calendar pop-up a one-shot?

UI Components for JSF
Post Reply
Alan
Posts: 102
Joined: 25 Oct 2010, 04:45

24 Oct 2011, 17:27

I am using a p:calendar with the attribute showOn="button" and a p:ajax tag. Also a valueChangeListener.

When I click on the button and select a date, the AJAX event fires and the valueChangeListener method gets called and the components do an update. When I select subsequent dates, none of that happens, although the text box shows the new date.

If I close the pop-up calendar with the DONE button and open it again, I get another one-shot date select.

Is this a bug or am I doing something wrong? This is 3.0M3 and my markup is as follows:

Code: Select all

                            <p:calendar value="#{myApp.periodStart}"
                                        size="20"
                                        pattern="yyyy/MM/dd HH:mm" 
                                        navigator="true"
                                        showButtonPanel="true"
                                        showOn="button"
                                        onselect="this.hide()"
                                        timeZone="#{login.timeZone}"
                                        valueChangeListener="#{myApp.doSelectPeriodStart}"
                                        >
                                <p:ajax update="qPie" />
                            </p:calendar>
Netbeans 7.1, GlassFish 3.1.1, MacOS X 10.6.8, Safari, Firefox

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 5 guests