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.
Javascript error on p:calendar after conversion error
-
- Posts: 4
- Joined: 15 Feb 2012, 20:25
Hi
I'm getting the same problem.
Here is the steps to reproduce the problem:
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
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>
Then the calendar doesn't open anymore.
I'm using:
primefaces 3.3.1
mojorra
jboss 7.0.2
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Replicated and Fixed for 3.2.
-
- Posts: 7
- Joined: 09 Jul 2012, 19:22
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?
- andyba
- Expert Member
- Posts: 2473
- Joined: 31 Mar 2011, 16:27
- Location: Steinfeld, near Bremen/Osnabrück, DE
- Contact:
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.ymajoros wrote:Same here with 3.5 Can anyone comment on this?
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
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now
-
- Information
-
Who is online
Users browsing this forum: No registered users and 16 guests