HOW TO SET DateFormatPattern for AJAX popup Calendar

HI GUYS,

Anyone know how to change DateFormatPattern for AJAX popup Calendar

I am trying to embed it in the table and i change the DateFormatPattern to "dd/MM/yyyy"

but when i load the page i get an exception

Exception Details: org.apache.jasper.JasperException

/Page1.jsp(47,200) Attribute dateFormatPattern invalid for tag popupCalendar according to TLD

Secondly for the value property i bind to my "Page1.date" which actually return a new java.util.Date but i doesnt show up in fact it just show as mm/dd/yyyyy

Is it mandatory to use Conveter for AJAX popup Calendar ?

Thanks

[645 byte] By [just_a_kid83] at [2007-11-26 9:53:02]
# 1
There might be a bug. Try setting it programmaticallypopupCalendar1.setDateFormatPattern("dd/MM/yyyy");
jetsons at 2007-7-7 1:08:59 > top of Java-index,Development Tools,Java Tools...
# 2
There was a bug in the TLD file. I've produced an unofficial fixed version of the complib which you can download from my blog http://blogs.sun.com/edwingo/entry/unofficial_complib_with_prototype_popup.-Edwin
edwingo at 2007-7-7 1:08:59 > top of Java-index,Development Tools,Java Tools...
# 3

Also, the popup calendar in the AJAX complib has a special java.util.Date and java.sql.Date converter which is also part of the complib. You can use that converter to convert from a "value" of one of those types. I'm not sure, but I thought I added code that would detect the type of the "value" property and add the converter automatically. If not, the user can add it manually.

-Edwin

http://blogs.sun.com/edwingo/

edwingo at 2007-7-7 1:08:59 > top of Java-index,Development Tools,Java Tools...
# 4
Yea Thanks guysIt indeed works if i set the DateFormatPattern programmatically
just_a_kid83 at 2007-7-7 1:08:59 > top of Java-index,Development Tools,Java Tools...