tracker issue : CF-3042413

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 84597:(Watson Migration Closure)I want my hour back!!

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/

Reporter/Name(from Bugbase): Ray Varner / Ray Varner (CF_Ray)

Created: 10/08/2010

Components: AJAX, UI Components

Versions: 9.0.1

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Most users will encounter

Locale/System: English / Platforms All

Vote Count: 0

Problem:

I want my hour back!!
Use case: The user is entering data in a form. The user tabs to a cfinput type=datefield and enters an improperly formatted date instead of clicking the tiny calendar img. In other words, the cfinput's value is not required but must be formatted properly if provided.From what I can tell the following should work but does not. (cfform type=html)<cfinput     type="datefield"     name="myeventDate"         id="myeventDate"        validateAt="onblur"         validate="date"         message="Bad input from an onBlur() event"       /> I've experimented with a type=text cfinput with the same values. The generated source shows an onBlur() IS added where type=datefield has no onBlur().Bug or no bug?
Method:

<cfparam name="form.myeventDate" default="" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>cfinput test</title>
</head>
<body>
	<h1>
	<cfoutput>#form.myeventDate#</cfoutput></h1>
	<cfform action="#cgi.SCRIPT_NAME#" method="post" name="mFrm"  format="html" id="mFrm">
		<cfinput
			type="datefield"
			name="myeventDate"
			id="myeventDate"
			validateAt="onblur"
			validate="date"
			message="I have detected a value that does not validate as a CF date from an onBlur() event"/>
		<cfinput type="submit" value="go" name="submitme" />
	</cfform>
</body>
</html>
Result:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3042413

External Customer Info:
External Company:  
External Customer Name: Ray Varner
External Customer Email: 6B1317C349E48C9E992015A7
External Test Config: 10/08/2010

Attachments:

Comments: