|
I wouldn't wrap the views within the event-filter. There are a few things you can do to figure out where it's going wrong. In you xml config you can add logging as a property, which will tell you what's happening during the event life cycle. Add: <property name="Logging" type="MachII.logging.LoggingProperty" /> This is kind of like CF debugging. More common and it will tell you exactly what's going on in the filter is to add <cfdump var=""/><cfabort/> at certain steps in the filter. If the filter is not running you'll know right away. I would cfdump your role_id and the boolean return value to debug it. Do you have a sysadmin.accessDenied event defined? From your original post I did not see that in the config? geomunir wrote: --I made the changes, however, it does not seems to be working. First of all, i dont see permissionValidation.cfc initiated at all. If its not initiating, then sysadmin.accessDenied wont be announced.If i change to something like this, then it does: <event-handler event="sysadmin.server_setting" access="public"> <event-filter name="permissionValidation"> <parameter name="role_id" value="3" /> <view-page name="sysadmin.act_server_setting"/> <view-page name="sysadmin.server_setting" contentArg="layout.content" /> <execute subroutine="sysadmin.compileLayout" /> </event-filter> </event-handler> But, after the change, nothing happens. Blank page is shown. Mike, role_id does change, from event to event. On Dec 16, 12:18 am, "Peter J. Farrell" <[email protected]> wrote: 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/ |
- [Mach-II] Event Filter Question geomunir
- Re: [Mach-II] Event Filter Question Mike Fransblow
- [Mach-II] Re: Event Filter Question geomunir
- Re: [Mach-II] Re: Event Filter Question Mike Fransblow
- [Mach-II] Re: Event Filter Question geomunir
- [Mach-II] Re: Event Filter Question geomunir
