|
All,
It appears that the reset method is not resetting the
where object properly. The following change to the iterator.cfc object seems to
do the trick.
<!--- reset --->
<cffunction name="reset" access="public" hint="I reset the array and query data that backs this iterator." output="false" returntype="void"> <cfset getQueryObject().resetWhere() /><!--- This line is added ---> <cfset variables.query = 0 /> <cfset variables.array = ArrayNew(1) /> <cfset variables.index = 0 /> </cffunction> Let
me know if this is not the proper solution, but it seems to work for
me.
-
JS
------------------------------------------------ Joshua Scott Resonant Media Technologies, LLC. http://www.resonantmedia.com | http://ponderings.wordpress.com "It is impossible to get out of a problem by using the same type of thinking that it took to get into the problem." -- Albert Einstein From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Scott Sent: Tuesday, May 16, 2006 9:39 AM To: [email protected] Subject: RE: [Reactor For CF] Missing Iterator Method??? I had this same problem. Doug might want to error a
validation error when this happens.
- JS
------------------------------------------------ Joshua Scott Resonant Media Technologies, LLC. www.resonantmedia.com | ponderings.wordpress.com
"It is impossible to get out of a problem by using the same type of thinking that it took to get into the problem." -- Albert Einstein
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brad Haas Sent: Monday, May 15, 2006 2:07 PM To: [email protected] Subject: Re: [Reactor For CF] Missing Iterator Method??? I'll discovered a mistake that I made. It is really simple and it caused me
to waste about 6 hours, so I'll share my ignorance with the world.
In my config.xml file, I did not wrap the xml "object" tags in a parent
"objects" tag. So I had something like this:
<config>
config
stuff
</config>
<object>
object 1
stuff
</object>
It should be like this:
<objects>
<object>
object 1
stuff
</object>
</objects>
The funny thing is that Reactor will actually work (partially) with my
initial configuration. It will generate objects like DAOs and Gateways, but you
won't get Iterators. I think this is what threw me off. I thought that Reactor
would either work or it wouldn't. I never thought about something in
between.
I hope my mistake will prevent someone else from doing the same thing. I
apologize if any of you wasted any brain cells on this one.
Thanks,
Brad On May 15, 2006, at 12:41 PM, Brad Haas wrote:
-- 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/ |
- [Reactor For CF] Missing Iterator Method??? Brad Haas
- Re: [Reactor For CF] Missing Iterator Method??? Brad Haas
- RE: [Reactor For CF] Missing Iterator Method??? Joshua Scott
- RE: [Reactor For CF] Missing Iterator Method???... Joshua Scott
- Re: [Reactor For CF] Missing Iterator Metho... Aaron Lynch
- RE: [Reactor For CF] Missing Iterator ... Joshua Scott
- RE: [Reactor For CF] Missing Itera... Joshua Scott
- RE: [Reactor For CF] Missing I... Doug Hughes
- RE: [Reactor For CF] Missing I... Joshua Scott
- Re: [Reactor For CF] Missing Iterator Method??? Sean Corfield

