[mashup-dev] [jira] Commented: (MASHUP-357) xs:date types result in
bad JS Date
Jonathan Marsh (JIRA)
jira at wso2.org
Fri Oct 19 13:11:23 PDT 2007
[ http://www.wso2.org/jira/browse/MASHUP-357?page=comments#action_12984 ]
Jonathan Marsh commented on MASHUP-357:
---------------------------------------
There are still issues. Some of the methods that are supposed to be on a Date object aren't present, e.g. getFullYear, getUTCFullYear, and so forth. Same with xs:dateTime.
photoForDate.inputTypes = {"date" : "xs:dateTime"};
function photoForDate(date) {
for (i in date) print(i + ":" + date[i]);
}
reveals only these methods/properties are available:
after ()
before()
class
clone()
compareTo()
date
day
equals()
getClass()
getDate()
getDay()
getHours()
getMinutes()
getMonth()
getSeconds()
getTime ()
getTimezoneOffset()
getYear()
hashCode()
hours
minutes
month
notify()
notifyAll()
seconds
setDate()
setHours()
setMinutes()
setMonth()
setSeconds()
setTime ()
setYear()
time
timezoneOffset
toGMTString()
toLocaleString()
toString()
wait()
year
(note that doing this member dump on a "new Date()" doesn't provide any output.)
> xs:date types result in bad JS Date
> -----------------------------------
>
> Key: MASHUP-357
> URL: http://www.wso2.org/jira/browse/MASHUP-357
> Project: WSO2 Mashup Server
> Issue Type: Bug
> Environment: 0.2
> Reporter: Jonathan Marsh
> Assigned To: Keith Godwin Chapman
> Fix For: 0.3
>
>
> photoForDate.inputTypes = {"requestedDate" : "xs:date"};
> photoForDate.outputType = "xml";
> function photoForDate(requestedDate) {
> print(requestedDate);
> print(typeof(requestedDate));
> return <success/>;
> }
> Results in :"ERROR [2007-10-16 20:43:33,783] Invalid JavaScript value of type java.util.Date"
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://www.wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the Mashup-dev
mailing list