I started by running it on the URL and FORM scopes at the start of the
setupRequest() method, but this had no effect - I realised because the
request.context has already been populated from the URL and FORM scopes.
My question is this: at the start of the requestSetup method, are the
only values in request.context the values populated by the URL and FORM
scopes? If I run:
var Portcullis = getBeanFactory().getBean('Portcullis');
Portcullis.scan(request.context, 'request.context', cgi.remote_addr);
...I want to be sure it's not going to have any effect on any other
values in request.context.
Or should I use onRequestStart() to run the scans on URL and FORM before
they're populated into request.context?
Seb
Nathan Dintenfass
25 February 2011 19:05
Just curious: why didn't scanning request.context work? In your setupRequest you shouldn't be stepping over any of the RC vars you're populating in your controllers, so that seems like a great time to check everything in one place without needing to the gymnastics you're going through. That would also let you load Portcullis in your beanFactory (or as a local variable in your setupApplication) and use it as a service instead of having separate application variables running around (which would also open up more flexibility to use its other methods in your controllers).
Seb Duggan
25 February 2011 14:03
OK, I've worked it out, and wrote a blog post about it:
http://sebduggan.com/posts/integrating-portcullis-into-fw1-applications
Hope this is useful to anyone else planning on using Portcullis...
Seb
Seb Duggan
24 February 2011 10:43
Why in view() and setView() do we have to use a "/" instead of a "." --
seems to make it unparallel with all other places we refer to an action.
Thanks ;)
- Nathan D
--
FW/1 on RIAForge: http://fw1.riaforge.org/
FW/1 on github: http://github.com/seancorfield/fw1
FW/1 on Google Groups: http://groups.google.com/group/framework-one
Thanks for the explanation.
- Nathan
--
> --
> FW/1 on RIAForge: http://fw1.riaforge.org/
>
> FW/1 on github: http://github.com/seancorfield/fw1
>
> FW/1 on Google Groups: http://groups.google.com/group/framework-one
>
--
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
--