Ha, nevermind everything I just said. I realized it right after I hit send.

Thanks!

On 7/22/07, Dan Vega <[EMAIL PROTECTED]> wrote:

I am making changes to an old application I wrote using Reactor. I thought
at first this issue was because I was using my local CF8 dev box but it is
doing the same thing on 6 and 7. I have a generated file folder called
reactorgen in my project and when the application runs I see the following
error. When I change the folder name it does the same thing, for some reason
it is stripping the first letter of the name.

 Could not find the ColdFusion Component or Interface
eactorgen.Gateway.usersGatewaymssql.If I look in the objectFactory
component I find the method getObjectName() and this seems to be the problem

    <cffunction name="getObjectName" access="private" hint="I return the
correct name of the a object based on it's type and other configurations"
output="true" returntype="string">
        <cfargument name="type" hint="I am the type of object to return.
Options are: record, dao, gateway, to" required="yes" type="string" />
        <cfargument name="name" hint="I am the name of the object to
return." required="yes" type="string" />
        <!--- <cfargument name="base" hint="I indicate if the base object
name should be returned.  If false, the custom is returned." required="no"
type="boolean" default="false" /> --->
        <cfset var creationPath =
replaceNoCase(right(getConfig().getMapping(), Len(getConfig().getMapping())
- 1), "/", ".", "all") />

        <cfreturn creationPath & "." & arguments.type & "." &
arguments.name & arguments.type & getConfig().getType()  />
    </cffunction>

Here we want to take the mapping (reactorgen/) and strip the slash. My
question is this a know bug or did I do something wrong? Here is what fixed
it for me, changing right to left.


        <cfset var creationPath =
replaceNoCase(left(getConfig().getMapping(), Len(getConfig().getMapping()) -
1), "/", ".", "all") />


--
Thank You
Dan Vega
[EMAIL PROTECTED]
http://www.danvega.org
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --




--
Thank You
Dan Vega
[EMAIL PROTECTED]
http://www.danvega.org


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to