Thanks for adding that to the wiki. Every little bit helps the project tremendously.

Would you be willing to write another short section in there on how to leverage the event-context? Mainly the displayView() and executeSubroutine() calls (you already have a great example to use from your first email). I ask this because it seems to be a common question on the list in the past couple of months and I think people in the future will greatly benefit to an addition like this to the wiki. Thanks in advance.

Best,
.pjf

Peter J. Farrell said the following on 01/03/10 10:17:
Yep, you need to have output="true" if your filter will output anything. It's part of new heavy duty whitespace suppression we put into Mach-II 1.8.

It probably needs to be documented better (I believe it's in the release notes somewhere). Would you be willing to write a little paragraph on the into to event-filters?

http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/wiki/IntroToFilters

Thanks,
Peter

Jorge Loyo said the following on 01/03/10 10:05:
This is part of my filter... The code that decides which page to
display.

<cfif country eq "">
<cfset arguments.eventContext.displayView(arguments.event,
SplashPage) />
<cfelseif findNoCase("US", country)>
<cfset arguments.eventContext.displayView(arguments.event,
USA_HomePage, "", "layout.content", false) />
<cfset arguments.eventContext.executeSubroutine("mainLayout",
arguments.event) />
<cfelse>
<cfset arguments.eventContext.displayView(arguments.event,
MEX_HomePage, "", "layout.content", false) />
<cfset arguments.eventContext.executeSubroutine("mainLayout",
arguments.event) />
</cfif>

I find that unless I make the "filterEvent" attribute output="true"
the content of the page does not get displayed... Is this the way it
is supposed to be? or am I doing something wrong?



--
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets: 
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/

Reply via email to