sorry, typo..
<cfimport prefix="name" taglib="setName.cfm">
<name:setName fname="Steve">
and in setName.cfm
<cfinvoke component="MyComponent" method="setName">
<cfinvokeargument name="firstname" value="arguments.fname" />
</cfinvoke>
gives me:
Unknown tag: name:setName.
ColdFusion cannot determine how to process the tag name:setName because
the tag is unknown and not in any imported tag libraries. The tag name
might be misspelled.
Am I completely suffering monday-itis here?
Stephen Cowling wrote:
> Hmmm I have been looking at cfimport, but I may be trying to do
> something it was never intended to do.
>
> ie.
> <cfimport prefix="name" taglib="name.cfm">
> <name:set argument="value">
>
> and in name.cfm it invokes a component, passing the argument value.
>
> But I get this error:
> Could not import the tag library specified by "name.cfm".
>
>
>
> Douglas Knudsen wrote:
>
>
>>take a look at cfimport.
>>
>>Doug
>>
>>
>>On Mon, 13 Dec 2004 15:48:56 +1100, Andrew Scott <[EMAIL PROTECTED]> wrote:
>>
>>
>>><cfset myCom = CreateObject('Component','myComponent') />
>>><cfset myCom(Blah,Blah,Blah) />
>>>
>>>
>>>
>>>
>>>-----Original Message-----
>>>From: Stephen Cowling [mailto:[EMAIL PROTECTED]
>>>Sent: Monday, 13 December 2004 3:37 PM
>>>To: CF-Talk
>>>Subject: Coldfusion tag prefixes
>>>
>>>Is it all possible to create your own tag prefix? Instead of using cf_
>>>to get to custom tags.
>>>
>>>the reason I ask, is to try and reduce the amount of
>>><cfinvoke component="myComponent" method="setBlah">
>>> <cfinvokeargument name="blah">
>>> <cfinvokeargument name2="blah">
>>> <cfinvokeargument name3="blah">
>>> <cfinvokeargument name4="blah">
>>> <cfinvokeargument name5="blah">
>>>... etc
>>>That needs to be called.
>>>
>>>I know I could cfinclude it, but I thought a more elegant way would be
>>>to have say,
>>><blah:set name="blah" name2="blah" name3="blah" name4="blah"
>>>name5="blah">
>>>
>>>Or am I barking mad?
>>>
>>>Steve
>>>
>>>--
>>>
>>>
>>
>>
>>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - New Atlanta
http://www.newatlanta.com
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187322
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54