According to the docs at http://www.openbluedragon.org/manual/?/cfscript, it should support specifying defaults for parameters, but all the examples seem to use quotation marks (wouldn't think that's relevant)
Billy Cravens [email protected] On Sep 3, 2011, at 10:40 PM, Alexander Lizano wrote: > You lead me in the right direction. > > It is in deed a cfscript-based CFC. > > I wrapped everything in <cfcomponent> and <cfscript> and it worked. > Adobe and Railo are OK with that too. > > I also found that OpenBD does not support the default value > assignation in the definition of functions: > > For Adobe and Railo, it is possible: > > <cfscript> > > function myFunction (val1, val2=0) { > // Blah blah blah > } > > </cfscript> > > OpenBD don't like the val2=0 expression. > > But that is not a big deal. > > Thanks for the quick reply. Now I can show that OpenBD may also be > considered for the project. > > Alex > > > On Sat, Sep 3, 2011 at 4:43 PM, Billy Cravens <[email protected]> wrote: >> Sounds to me like it's a script-based CFC. You'll want to convert to tags to >> work with BD, but in most cases, you can just wrap the entire file in >> <cfcomponent> and <cfscript> (and remove the component { .... wrapper) and >> it should work. >> >> Billy Cravens >> >> >> >> On Sat, Sep 3, 2011 at 2:41 PM, Alexander <[email protected]> >> wrote: >>> >>> I have an application running under Adobe CF and Railo >>> >>> The components are under the folder {root of my project}\common\cfc >>> >>> So, this works... >>> >>> <cfobject component="common.cfc.functions" name="functionsComponent"> >>> >>> So I installed OpenBD for the first time. I deployed the WAR under >>> tomcat and the administrator works perfectly. >>> >>> Now, when OpenBD gets to this line I got the error: >>> >>> CFML Runtime Error >>> The component source file is empty or does not contain a CFCOMPONENT >>> tag pair: common.cfc.functions >>> >>> >>> Now, I know what you are thinking, but I changed the name of the >>> directory cfc to cfcx and got the same error. >>> >>> I'd like to show this project working under OpenBD since it already >>> works for Adobe and Railo. >>> >>> What I am doing wrong? >>> >>> -- >>> official tag/function reference: http://openbd.org/manual/ >>> mailing list - http://groups.google.com/group/openbd?hl=en >> >> -- >> official tag/function reference: http://openbd.org/manual/ >> mailing list - http://groups.google.com/group/openbd?hl=en >> > > -- > official tag/function reference: http://openbd.org/manual/ > mailing list - http://groups.google.com/group/openbd?hl=en -- official tag/function reference: http://openbd.org/manual/ mailing list - http://groups.google.com/group/openbd?hl=en
