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/