Check out the persist option with redirectEvent(). It will save select
event args for you in a temporary session var until the redirect is
complete. It works like the flash scope in Ruby on Rails and Grails.

--Kurt

On Thu, Aug 2, 2012 at 10:15 AM, David D-V Tran <[email protected]>wrote:

> That makes sense and I figured that's what the case was after trying to
> troubleshoot. I ended up doing a cflocation, I'll have to look at the
> redirectEvent() - there were some event arguments I wanted to carry over
> that would crap out as a URL var. thanks Kurt!
>
>
> On Thu, Aug 2, 2012 at 11:10 AM, Kurt Wiersma <[email protected]> wrote:
>
>> The event you announce doesn't get processed until after the current
>> event ends. If you truely want to abort right away you will want to use a
>> redirect via the redirectEvent() method or use cflocation.
>>
>> --Kurt
>>
>>
>> On Tue, Jul 31, 2012 at 11:41 AM, DT <[email protected]> wrote:
>>
>>>     <event-handler event="importContacts.process.upload" access="public">
>>>             <execute subroutine="checkPermissions"/>
>>>                 <event-mapping event="required"
>>> mapping="importContacts"/>
>>>                 <event-mapping event="importFile"
>>> mapping="importContacts.process.import"/>
>>>                 <event-mapping event="importContactsError"
>>> mapping="importContactsErrorPage"/>
>>>                 <notify listener="contacts" method="upload"/>
>>>         </event-handler>
>>>
>>> In my handler above for uploading a file:
>>> And below the upload function...
>>>
>>> <cffunction name="upload" access="public">
>>>         <cfargument name="event" type="MachII.framework.Event"
>>> required="true" />
>>>
>>>             <cfset announceEvent("required", arguments.event.getArgs())
>>> />
>>>             <cfabort/>......
>>> </cffunction>
>>>
>>>
>>> Basically there are multiple ways for this file to crap out. The
>>> announce event helps me just kick out of the function without using a
>>> cflocation - i'm trying to also pass the error message to the error page.
>>> In this case, I'm trying to get it to work period and it's not within the
>>> upload funtion(right away). so it would go back to the page before it.
>>> Could I get some help as to why this isn't working?
>>> thank you!
>>> dave
>>>
>>> --
>>> --
>>> To post to this group, send email to
>>> [email protected]
>>> For more options and to unsubscribe, visit this group at
>>> http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
>>>
>>> New (July 2012): We've moved to GitHub:
>>> https://github.com/Mach-II/Mach-II-Framework
>>>
>>>
>>>
>>
>>  --
>> --
>> To post to this group, send email to
>> [email protected]
>> For more options and to unsubscribe, visit this group at
>> http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
>>
>> New (July 2012): We've moved to GitHub:
>> https://github.com/Mach-II/Mach-II-Framework
>>
>>
>>
>
>
>
>  --
> --
> To post to this group, send email to
> [email protected]
> For more options and to unsubscribe, visit this group at
> http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
>
> New (July 2012): We've moved to GitHub:
> https://github.com/Mach-II/Mach-II-Framework
>
>
>

-- 
-- 
To post to this group, send email to [email protected]
For more options and to unsubscribe, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en

New (July 2012): We've moved to GitHub: 
https://github.com/Mach-II/Mach-II-Framework


Reply via email to