A classic stack counter will do it:

prefuseaction:
<set name="request.fuseactionCallDepth" value="0" overwrite="false" />
<set name="request.fuseactionCallDepth"
value="#request.fuseactionCallDepth + 1#" />
<if condition="request.fuseactionCallDepth EQ 1">
  <true>
    <!-- do some stuff -->
  </true>
</if>

postfuseaction:
<if condition="request.fuseactionCallDepth EQ 1">
  <true>
    <!-- do some stuff -->
  </true>
</if>
<set name="request.fuseactionCallDepth"
value="#request.fuseactionCallDepth - 1#" />

That will leave request.fuseactionCallDepth at zero at the end of every request.

cheers,
barneyb

On 10/31/06, Peter Boughton <[EMAIL PROTECTED]> wrote:
> I also have the issue with postfuseaction - not sure how I could flag that?
>
> >This way is safe because of the non-recursive nature of the Fusebox
> >XML grammar (i.e. it's impossible to call the original fuseaction
> >twice in the same request).  That's a subtle point, however, so I'd
> >vote for more explicit way: use a per-request flag.
> >
> >cheers,
> >barneyb
> >

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 100 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258605
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