Title: RequestContext.cfc error when (xxx) in form value
Thread: RequestContext.cfc error when (xxx) in form value
Forum: Bugs (ColdBox)
Conference: ColdBox
User: AndrewClarke
I have a form and accidentally used
<input type="submit" name="Add item(s) to
Quote Request" />
instead of
<input type="submit" value="Add item(s) to
Quote Request" />
This threw an error in RequestContest.cfc :
Invalid CFML
construct found on line 1 at column 22.
ColdFusion was looking at the
following text:
ITEM
The error occurred in
C:\Inetpub\wwwroot\knappfasteners\coldbox\system\beans\requestContext.cfc: line
101
Called from
C:\Inetpub\wwwroot\knappfasteners\coldbox\system\includes\debug.cfm: line 211
Called from
C:\Inetpub\wwwroot\knappfasteners\coldbox\system\services\debuggerService.cfc:
line 71
Called from
C:\Inetpub\wwwroot\knappfasteners\coldbox\system\coldbox.cfm: line 146
Called
from C:\Inetpub\wwwroot\knappfasteners\index.cfm: line 19
99 : <cfscript>
100 : if ( isDefined("instance.context.#arguments.name#") ){
101 :
return Evaluate("instance.context.#arguments.name#");
102 : }
103 : else
if ( isSimpleValue(arguments.defaultValue) and arguments.defaultValue eq "NONE"
)
Apparently putting xxx(xxx) in the value field will throw off ColdBox. I
tried item(s) and stuff(s) and got the same result.
- Andrew.