calendar value defaulting to previous value

Components, Ajax Framework, Utilities and More.
Post Reply
Posts: 26
Joined: 07 Sep 2010, 21:26

09 May 2011, 20:36

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?

Code: Select all

<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

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 16 guests