you are invoking a method named "get" but your function is named "getID" ;-)

HTH

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]

---------------------------------------------------------
Macromedia Associate Partner
www.macromedia.com
---------------------------------------------------------
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com
  ----- Original Message -----
  From: Cutter (CF-Talk)
  To: CF-Talk
  Sent: Wednesday, May 12, 2004 10:25 AM
  Subject: CFC issues

  Please forgive me for stupid questions, it has been quite awhile since I
    have been able to work with CFC's. I have a getID() method:

  <cffunction name="getID" access="public" output="true"
  returntype="numeric" >
      <cfreturn instance.ID >
     </cffunction >

  I first create my object:

  <cfinvoke
  component="#application.config.CFCOMPONENTS_PREFIX#com.seacrets.boutique.size"
  method="get" returnvariable="formsize" >
  <cfinvokeargument name="ID" value="#url.id#" >
  </cfinvoke >

  My object is there, with data (thank you cfdump). But when I call my
  getID() method...:

  <input type="Hidden" name="id" value="<cfscript
  >formsize.getID();</cfscript >" >

  I am receiving the following error:

  Method selection Exception.
  An exception occurred during method selection process for Method getID
  The cause of this exception was that either there are no methods with
  the the specified method name and argument types, or the method getID is
  overloaded with arguments types that Coldfusion can't decipher
  reliablly. Use javacast function to reduce ambiguity.

  The error occurred

  Which of course points to the above line. What am I doing wrong here?

  Cutter
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to