Board index JavaServer Faces General calendar value defaulting to previous value

calendar value defaulting to previous value

Components, Ajax Framework, Utilities and More.

Posts: 26
I have a calendar tag to get a start date from the user. The value of this is retrieved from a session bean (tempSchemeUnit). When I go to the page for the second time I have already replaced the session variable so that the value(startDate) is null (have checked this in debug on the backing bean) but the page is displayed with the calendar defaulted to the previous chosen date. Any ideas on what is causing the calendar to remember the value from the last page display?

<p:calendar id="incCal" mode="popup" readOnlyInputText="true"
                     pattern="dd/MM/yyyy" timeZone="GMT"
                     onSelectUpdate="out bandedStep"
                     value="#{tempSchemeUnit.startDate}" required="true"

Any help appreciated!
Using Primefaces-2.2SNAPSHOT on Glassfish 3.01

Return to General