macromedia.coldfusion.advanced_techniques
[Top] [All Lists]

Attributecollection feature doesn't work properly in cfinput tag.

Subject: Attributecollection feature doesn't work properly in cfinput tag.
From: "Jeroen"
Date: Thu, 22 Nov 2007 16:30:18 +0000 UTC
Newsgroups: macromedia.coldfusion.advanced_techniques

Attributecollection feature doesn't work properly in cfinput tag.

 Id specified is not used but name property instead.

 Steps to reproduce bug:

 1. Use code:
 <cfform>
 <cfset st = StructNew()>
 <cfset st.name = "ab">
 <cfset st.id = "a_b">
 <cfinput attributecollection="#st#" />
 <cfinput name="ac" id="a_c" />
 </cfform>

 Results:

 Output:
 <form name="test" id="test" action="/test/form.cfm" method="post" 
onsubmit="return _CF_checktest(this)">
 <input name="ab" id="ab" type="text" /> 
 <input name="ac" type="text" id="a_c" /> 
 </form>

 Expected results:

 <form name="test" id="test" action="/test/form.cfm" method="post" 
onsubmit="return _CF_checktest(this)">
 <input name="ab" id="a_b" type="text" /> 
 <input name="ac" type="text" id="a_c" /> 
 </form>

 Is this a bug?


<Prev in Thread] Current Thread [Next in Thread>