Javascript error on p:calendar after conversion error

UI Components for JSF
Post Reply
User avatar
yanaga
Posts: 2
Joined: 05 Aug 2011, 01:44
Location: Brazil
Contact:

09 Oct 2011, 00:21

Hi,

When I try to input an invalid date value in a calendar component and submit it, conversion fails (which is expected). But when the page returns, the calendar popup won't open anymore.

In the JavaScript console I get an "Uncaught TypeError: Cannot call method 'getDate' of null".

Any thoughts about it?

Thanks.

diegocamilotto
Posts: 4
Joined: 15 Feb 2012, 20:25

28 Feb 2012, 17:02

Hi

I'm getting the same problem.

Here is the steps to reproduce the problem:

Code: Select all

<h:body>
	<h:form id="form">
		<p:calendar id="calendar" pattern="dd/MM/yyyy" size="15"
			value="#{calendarTestBean.date}" showOn="button">
		</p:calendar>
		<p:commandButton value="Submit" action="#{calendarTestBean.test}"
			process="form" update="form" />
	</h:form>
</h:body>
When I put a invalid value into the calendar end click the "Submit" form button, the calendar is marked as invalid (conversion error, as expected).
Then the calendar doesn't open anymore.

I'm using:
primefaces 3.3.1
mojorra
jboss 7.0.2

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

04 Mar 2012, 11:49

Replicated and Fixed for 3.2.

marlonpatrick10
Posts: 7
Joined: 09 Jul 2012, 19:22

28 Aug 2012, 18:35

Optimus, as diegocamilotto I'm using version 3.3.1 and the error still happens. Can you shed some light on how to adjust it?

ymajoros
Posts: 33
Joined: 23 Feb 2010, 11:39

14 May 2013, 07:58

Same here with 3.5 :-( Can anyone comment on this?

User avatar
andyba
Expert Member
Posts: 2473
Joined: 31 Mar 2011, 16:27
Location: Steinfeld, near Bremen/Osnabrück, DE
Contact:

14 May 2013, 09:29

ymajoros wrote:Same here with 3.5 :-( Can anyone comment on this?
Yes, and in the strongest of terms. Do not ask new questions in old Threads. Create a new one and provide code samples in code tags which show what you are doing.
PF 4.x (Elite versions), PF 5, Pf 5.1, PF 6.0
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 16 guests