unable to call get method in getDepartmentService()

35 views
Skip to first unread message

Brad P.

unread,
May 11, 2012, 6:53:16 PM5/11/12
to framework-one
Hi everyone, I’m new to framework-one so far I’m lovin’ it. Thanks
Sean! I started a new site using the userManagerAccessControl example
as my starting point. I’ve created a database and have gotten
everything working but I can’t seem to call the get() from the
getDepartmentService() in the user controller. Thank you in advance
for your help.

User.cfc Controller:
<cffunction name="init" access="public" output="false"
returntype="any">
<cfargument name="departmentService" type="any" required="true" />
<cfargument name="roleService" type="any" required="true" />
<cfscript>
setDepartmentService(arguments.departmentService);
setRoleService(arguments.roleService);
</cfscript>
<cfreturn this>
</cffunction>

<cffunction name="getByEmail" access="public" returntype="any">
<cfargument name="email" type="string" required="false" default="">
<cfoutput>#getDepartmentService.get(“1”)#"></cfoutput>
<cfabort>(removed content for simplicity)
</cffunction>


Error:

Exception in onRequest
The action login.login failed.
The get method was not found.
Either there are no methods with the specified method name and
argument types or the get method is overloaded with argument types
that ColdFusion cannot decipher reliably. ColdFusion found 0 methods
that match the provided arguments. If this is a Java object and you
verified that the method exists, use the javacast function to reduce
ambiguity. (Object)

Richard Tugwell

unread,
May 11, 2012, 7:31:00 PM5/11/12
to framew...@googlegroups.com
getDepartmentService()......

(brackets)
> --
> FW/1 on RIAForge: http://fw1.riaforge.org/
>
> FW/1 on github: http://github.com/seancorfield/fw1
>
> FW/1 on Google Groups: http://groups.google.com/group/framework-one



--
=================================
Richard Tugwell
http://blog.richardtugwell.com
r.tu...@forthmedia.com

Sean Corfield

unread,
May 11, 2012, 7:31:09 PM5/11/12
to framew...@googlegroups.com
On Fri, May 11, 2012 at 3:53 PM, Brad P. <code...@gmail.com> wrote:
>                <cfoutput>#getDepartmentService.get(“1”)#"></cfoutput>

Should be:

               <cfoutput>#getDepartmentService().get(“1”)#"></cfoutput>
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

Brad P.

unread,
May 14, 2012, 12:32:17 PM5/14/12
to framew...@googlegroups.com
Thank all for the quick responses. pressing on...
Reply all
Reply to author
Forward
0 new messages