I'm invoking a component method to do an update when a form is posted (CFMX7). 
However, when I try to invoke the method I get the error:

A duplicate attribute "METHOD" has been encountered. Attributes with the same 
name cannot be provided more than once. 

The problem is that I'm -not- declaring the attribute more than once. The 
offending code is listed below:

<cfif IsDefined("FORM.submit")>

    <!--- Checkbox that won't exist if unchecked --->
    <cfset threadLocked = IsDefined("FORM.threadLocked")>
    
    <cfinvoke method="UpdateThread" component="cfc.clg.forum.update">
        <cfinvokeargument name="forumID" value="#URL.forumID#">
        <cfinvokeargument name="threadID" value="#URL.threadID#">
        <cfinvokeargument name="threadName" value="#FORM.threadName#">
        <cfinvokeargument name="threadLocked" value="#threadLocked#">
    </cfinvoke>
    
    <cflocation url="/groups/forum/threads/default.cfm?forumID=#URL.forumID#" 
addtoken="no">

</cfif>

The error line number marks the last <cfinvokeargument> tag as the location of 
the error. The "method" attribute is only listed once, so I'm not sure why it 
would say that I've used it multiple times. Any ideas as to what I'm doing 
wrong? Thanks in advance.

Joel


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293983
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to