problem rendering component calendar

UI Components for JSF
Post Reply
chsi
Posts: 57
Joined: 01 Sep 2010, 08:08

02 Sep 2010, 12:17

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!!!! ;)

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

02 Sep 2010, 12:25

This should be fixed targeting 2.2.M1.

chsi
Posts: 57
Joined: 01 Sep 2010, 08:08

02 Sep 2010, 12:56

ok. It is a problem bind to hibernate validator or else ????

Thank's for response!!!!

chsi
Posts: 57
Joined: 01 Sep 2010, 08:08

03 Sep 2010, 08:36

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 ;)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 36 guests