FYI - I added the fix provided by Mr. Sean.  I'll test for a while and
commit if it works as expected.

Doug

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Sean Corfield
Sent: Friday, April 21, 2006 2:31 PM
To: [email protected]
Subject: Re: [Reactor For CF] New Commit committed (UPDATED!)

On 4/20/06, Daryl <[EMAIL PROTECTED]> wrote:
> 237 :           <!--- set the field's properties --->
> 238 :           <cfset xmlField.XmlAttributes["name"] =
arguments.field.getName() />
> 239 :           <cfif IsXML(fieldTag) AND
> StructKeyExists(fieldTag.XmlAttributes, "alias") >
> 240 :                   <cfset xmlField.XmlAttributes["alias"] =
> fieldTag.XmlAttributes.alias />
> 241 :           <cfelse>

That UDF is a very heavy operation (and wouldn't actually work in all
cases for the code above). The function just sets fieldTag to 0 and
needs to test if it got set to an xml node.

I think the 'best' CFMX 6.1 way would be:

<cfif not isSimpleValue(fieldTag) and
structKeyExists(fieldTag.xmlAttributes,"alias")>
--
Sean A Corfield -- http://corfield.org/
Got frameworks?

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

 

-- Reactor for ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/



 

-- Reactor for ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/


Reply via email to