Hi Peter,
I'm dumping in the FilterEvent method.
<cffunction name="filterEvent" access="public" returntype="boolean"
output="false">
<cfargument name="Event" type="MachII.framework.Event"
required="true" />
<cfargument name="EventContext"
type="MachII.framework.EventContext"
required="true" />
<cfargument name="paramArgs" type="struct" required="false"
default="#StructNew()#" />
<cfdump var="#getParameters()#">
<cfdump var="#variables#">
<cfabort>
I can see variables.parameters in the above dump, however the struct
is empty.
My Filter extends="machii.framework.EventFilter" and there is no
configure/init method defined at this local level.
Regards,
Dave
On Aug 23, 12:00 pm, "Peter J. Farrell" <[email protected]> wrote:
> A few questions for you.
>
> * Where are you dumping the parameters?
> * What does you filter code look like? Please share.
> * Do you have an init() method in your filter CFC? If you do, you
> probably should be using the configure() method instead. The init()
> method is not meant to be overridden and all "setup" code should be done
> in the configure() method. We do pass in the parameters to the init()
> method which is automatically called by the framework (it's an inherited
> method). So if they are missing, I bet you're overriding the init()
> method and therefore there are not being set for you.
>
> Here's the FAQ about this:
>
> http://trac.mach-ii.com/machii/wiki/FAQDifferenceBetweenUsingInitAndC...
>
> .pjf
>
> Dave said the following on 08/22/2010 07:23 PM:
>
>
>
> > Hi All,
>
> > I can't see to access getParameters from without a filter. eg:
>
> > <event-filter name="JobTaskPermissionToAccess"
> > type="sys.jo.core.m2filter.Task">
> > <parameters>
> > <parameter name="PersistTaskItem" value="true"/>
> > <parameter name="action"
> > value="getStaticAccessPermissions"/>
> > <parameter name="AccessTaskTypes" value="Configure User
> > Job
> > Permission,Configure Assessment Processes,Initialise JCW,Create Job
> > >From Template,View Configuration Log,Manual Override of Auto Reference
> > Number,Manage Job Files for Applicants,Manage Job Files for
> > Recruiters,Configure Application Form,Configure Online Candidate
> > Scheduling,Access PreVisor Assessment"/>
> > <parameter name="haltOnNoPermission" value="false"/>
> > <parameter name="itemResultArg"
> > value="permissionToAccess" />
> > </parameters>
> > </event-filter>
> > </event-filters>
>
> > <filter name="JobTaskPermissionToAccess" />
>
> > When I do a dump of getParameters in the filter, it dumps an empty
> > struct.
>
> > Any ideas?
>
> > Thanks,
> > dave
--
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
***New URLs as of April 29th, 2010***
SVN: http://svn.mach-ii.com/machii/
Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/