Title:
Bug 84684:(Watson Migration Closure)[ANeff] Bug for: HTML cfform ignores cfsilent & cfsavecontent
| View in TrackerStatus/Resolution/Reason: Closed/Won't Fix/LowImpact
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 10/17/2010
Components: CFForm, Standard XML
Versions: 9.0.1
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Win All
Vote Count: 0
Problem:
[ANeff] Bug for: HTML cfform ignores cfsilent & cfsavecontent
When inside cfsavecontent and/or cfsilent, cfform still generates JavaScripts for HTML datefield, rich textarea and grid (see example #1). This causes negative behavior, if the page contains additional forms. If a 2nd form has same name, then 0 grids are displayed (see example #2). If a 2nd form has different name, then 2 grids are displayed (see example #3).Tested in CF9.0.1 & CF9.0.1 CHF1
Method:
------------------Steps to reproduce----------------------------Example #1 (generates JavaScript output)----------<cfsilent><cfsavecontent variable="supercalifragilisticexpialidocious"><cfform name="myForm"> <cfinput name="myButton" type="button" value="button one" /> <cfinput name="myDateField" type="datefield" value="1/1/2011" /> <cftextarea name="myTextarea" richtext="true">textarea one</cftextarea> <cfgrid name="myGrid" format="html"><cfgridcolumn name="myString" /><cfgridrow data="grid one" /></cfgrid> <cfinput name="submit" type="submit" value="submit one" /></cfform></cfsavecontent></cfsilent>----------Example #2 (displays 0 grids, due to bug in example #1) (note: cfsilent block is identical to example #1) (note: 2nd form uses different form & field names)----------<cfsilent><cfsavecontent variable="supercalifragilisticexpialidocious"><cfform name="myForm"> <cfinput name="myButton" type="button" value="button one" /> <cfinput name="myDateField" type="datefield" value="1/1/2011" /> <cftextarea name="myTextarea" richtext="true">textarea one</cftextarea> <cfgrid name="myGrid" format="html"><cfgridcolumn name="myString" /><cfgridrow data="grid one" /></cfgrid> <cfinput name="submit" type="submit" value="submit one" /></cfform></cfsavecontent></cfsilent><cfform name="myForm2"> <cfinput name="myButton2" type="button" value="button two" /> <cfinput name="myDateField2" type="datefield" value="2/2/2022" /> <cftextarea name="myTextarea2" richtext="true">textarea two</cftextarea> <cfgrid name="myGrid2" format="html"><cfgridcolumn name="myString" /><cfgridrow data="grid two" /></cfgrid> <cfinput name="submit2" type="submit" value="submit two" /></cfform>----------Example #3 (displays 2 grids, due to bug in example #1) (note: cfsilent block is identical to example #1) (note: 2nd form uses same form & field names)----------<cfsilent><cfsavecontent variable="supercalifragilisticexpialidocious"><cfform name="myForm"> <cfinput name="myButton" type="button" value="button one" /> <cfinput name="myDateField" type="datefield" value="1/1/2011" /> <cftextarea name="myTextarea" richtext="true">textarea one</cftextarea> <cfgrid name="myGrid" format="html"><cfgridcolumn name="myString" /><cfgridrow data="grid one" /></cfgrid> <cfinput name="submit" type="submit" value="submit one" /></cfform></cfsavecontent></cfsilent><cfform name="myForm"> <cfinput name="myButton" type="button" value="button two" /> <cfinput name="myDateField" type="datefield" value="2/2/2022" /> <cftextarea name="myTextarea" richtext="true">textarea two</cftextarea> <cfgrid name="myGrid" format="html"><cfgridcolumn name="myString" /><cfgridrow data="grid two" /></cfgrid> <cfinput name="submit" type="submit" value="submit two" /></cfform>
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3042491
External Customer Info:
External Company:
External Customer Name: Aaron Neff
External Customer Email: 3D1D17B03C844EBF992001AC
External Test Config: 10/17/2010
Attachments:
Comments: