Hello everyone, i have a problem with the calendar component.
here my xhtml code :
<p:calendar id="occEndDate" value="#{emp_wk.occEndDate}" mode="popup" showOn="button" pattern="dd-MM-yyyy"></p:calendar>
<p:message for="occEndDate" />
here my bean:
@NotNull(message = "End Date is required")
private Date occEndDate;
//getter and setter
First time when i click to the icon , it works. When i submit my form without enter a date, i have the error on the page (this is normal because @Notnull) but when i click on the icon again, the calendar does'nt open anymore.
Apparently, this would be a javascript error -->
Error: f is null
Source File: http://10.4.17.103:7001/jsf2-demo-wtp-w ... .custom.js
Line: 745
who' s "f" ???
Thank's!!!!
problem rendering component calendar
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
This should be fixed targeting 2.2.M1.
Hello , i test the calendar with 2.2.M1 version and i have an other problem -->
Error: date is null
Source File: http://10.4.17.103:7001/jsf2-demo-wtp-w ... primefaces
Line: 9151
The error comes from this line --> inst.selectedDay = date.getDate();
date = this.parseDate(dateFormat, dates, settings) return null, so the getDate method can not be used for var "Date".
Thank's
Error: date is null
Source File: http://10.4.17.103:7001/jsf2-demo-wtp-w ... primefaces
Line: 9151
The error comes from this line --> inst.selectedDay = date.getDate();
date = this.parseDate(dateFormat, dates, settings) return null, so the getDate method can not be used for var "Date".
Thank's
-
- Information
-
Who is online
Users browsing this forum: No registered users and 36 guests