Shouldn't <cfinvokeargument just be <cfargument  with a default="" ?

On Tue, 11 Jun 2002, Stacy Young wrote:

> If I've defined a CFC with an argument of type "DATE", CF chokes when I
> attempt to invoke that component and I pass in a date object.
> 
> <cfinvoke component="com.mydomain.reports.activity" method="getSummary">
>       <cfinvokeargument name="startDate"
> value="#CreateDateTime(2002,01,01,00,00,00)#">
>       <cfinvokeargument name="endDate"
> value="#CreateDateTime(2002,02,02,23,59,59)#">                
> </cfinvoke>
> 
> 
> <cffunction name="getSummary" access="remote" returntype="any" output="yes">
>       <cfargument name="startDate" type="date" required="yes">
>       <cfargument name="endDate" type="date" required="yes">
> 
> Gives me:
> 
> Error Occurred While Processing Request  
> Error casting an object of type coldfusion.runtime.TemplateProxy to an
> incompatible type. This usually indicates a programming error in Java,
> although it could also mean you have tried to use a foreign object in a
> different way than it was designed. coldfusion.runtime.TemplateProxy  
>  
>   
> The Error Occurred in C:\CFusionMX\wwwroot\ino-mx\test.cfm: line 7
>  
> 5 :   <cfinvokeargument name="endDate"
> value="#CreateDateTime(2002,02,02,23,59,59)#">
> 6 :                   
> 7 : </cfinvoke>
> 8 : 
> 
> Now I can certainly pass in the text values and create the date object
> within the component but I'd much rather use the DATE type.
> 
> Thanks,
> 
> Stace
> 
>  
>  
> 
> 
> AVIS IMPORTANT: 
> -------------------------------
> Les informations contenues dans le present document et ses pieces jointes sont 
>strictement confidentielles et reservees a l'usage de la (des) personne(s) a qui il 
>est adresse. Si vous n'etes pas le destinataire, soyez avise que toute divulgation, 
>distribution, copie, ou autre utilisation de ces informations est strictement 
>prohibee.  Si vous avez recu ce document par erreur, veuillez s'il vous plait 
>communiquer immediatement avec l'expediteur et detruire ce document sans en faire de 
>copie sous quelque forme.
> 
> WARNING:  
> -------------------------------
> The information contained in this document and attachments is confidential and 
>intended only for the person(s) named above.  If you are not the intended recipient 
>you are hereby notified that any disclosure, copying, distribution, or any other use 
>of the information is strictly prohibited.  If you have received this document by 
>mistake, please notify the sender immediately and destroy this document and 
>attachments without making any copy of any kind.
> 
> 
> 
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to