calendar value defaulting to previous value

UI Components for JSF
Post Reply
oidsman
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"
							valueChangeListener="#{purchaseBean.hidePremiumListenerOnChange}"
							onSelectUpdate="out bandedStep"
							selectListener="#{purchaseBean.hidePremiumListener}"
							value="#{tempSchemeUnit.startDate}" required="true"
							maxdate="#{purchaseBean.maxInceptionDate}"
							mindate="#{purchaseBean.minInceptionDate}">											
						</p:calendar>
Any help appreciated!
Using Primefaces-2.2SNAPSHOT on Glassfish 3.01

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 26 guests