I have upgraded primefaces to version 3.3. I realize now that calendar datepicker doesnt popup any more. i tried to downgrade it but it doent work. here is the code.
<p:calendar value="#{transaction.startDate}" effect="fadeIn" pattern="dd-MMM-yyyy" />
in java i use java.util.date and set a value on startDate.
It shows the value i put for startDate but it doesnt popup the date picker when i click on the input field. Anybody knows what the problem is?
Here is the javaScript stacktrace:
Uncaught TypeError: Cannot call method 'getDate' of null jquery.js:56
$.extend._setDateFromField jquery.js:56
$.extend._showDatepicker jquery.js:56
b.event.dispatch jquery.js:16
b.event.add.bD.handle.bB jquery.js:16
b.event.trigger jquery.js:16
b.fn.extend.trigger jquery.js:16
bF.extend.each jquery.js:16
bF.fn.bF.each jquery.js:16
b.fn.extend.trigger jquery.js:16
b.each.b.fn.(anonymous function) jquery.js:16
a.fn.extend.focus jquery.js:33
PrimeFaces.widget.Dialog.PrimeFaces.widget.BaseWidget.extend.focusFirstInput primefaces.js:12
PrimeFaces.widget.Dialog.PrimeFaces.widget.BaseWidget.extend._show primefaces.js:12
PrimeFaces.widget.Dialog.PrimeFaces.widget.BaseWidget.extend.show primefaces.js:12
b.oncomplete primefaces.js:12
i.complete primefaces.js:1
b.Callbacks.e jquery.js:16
b.Callbacks.bD.fireWith jquery.js:16
bF jquery.js:23
b.ajaxTransport.send.bv jquery.js:23
I found out that the problem was in Java. I used java 1.7 When i downgraded the java to 1.6. It worked.