cfinput doesn't support validate="dateField"

74 views
Skip to first unread message

Ricky

unread,
Jul 2, 2009, 11:33:13 PM7/2/09
to Railo
I have ColdFusion 8.0 Code:
<cfset zhtw_mon = '一月,二月,三月,四月,五月,六月,七月,八月,九月,十月,十一月,十二月'>
<cfset zhtw_day = '日,一,二,三,四,五,六'>
<cffrm action="test.cfm" method="post">
<cfinput dayNames="#zhtw_day#" monthnames="#zhtw_mon#"
type="dateField" name="testdate" label="Start Date:" mask="YYYY/MM/
DD">
</cfoorm>

It work fine in CF8, but Railo 3.1.0.015 have error message:
Railo 3.1.0.015 Error (Application)
Message: value of attribute [daynames] must contain a string list with
7 values, now there are 7 values

I remove zhtw dayname & monthname, get other error:
Railo 3.1.0.015 Error (Application)
Message: type [datefield] is only allowed if form format is flash

Finally, I add format="flash" in cfform:
<cffrm action="test.cfm" method="post" format="flash">

get error:
Railo 3.1.0.015 Error (Application)
Message: format [flash] is not supported, only the following formats
are supported

FYI.

If anyone have solution, please kindly tell me, thank you!

Ricky

unread,
Jul 2, 2009, 11:44:14 PM7/2/09
to Railo
The CF8 code:
<cfset zhtw_mon = '一月,二月,三月,四月,五月,六月,七月,八月,九月,十月,十一月,十二月'>
<cfset zhtw_day = '日,一,二,三,四,五,六'>
<cfform action="test.cfm" method="post">

<cfinput dayNames="#zhtw_day#" monthnames="#zhtw_mon#"
type="dateField" name="testdate" label="Start Date:" mask="YYYY/MM/
DD">
</cfform>
Reply all
Reply to author
Forward
0 new messages