Hello everyone,

Just a quick query where I think I've confused myself. I'm looking at
the example in the Mason Book:
http://www.masonbook.com/book/chapter-5.mhtml#TOC-ANCHOR-13

Should an autohandler be called when you call a component from another
using <& &> or $m->comp(), or do you only get the autohandler for the
requested component?

Consider:

test/test.html:
<h1>Hello<h1>
<& sub/test2.html &>

test/autohandler:
AUTOHANDLER
% $m->call_next();

test/sub/test2.html
<h2>World</h2>

test/sub/autohandler
SUBAUTOHANDLER
% $m->call_next();

My request to test/sub/test2.html gives:
SUBAUTOHANDLER
<h2>World</h2>

But my request to test/test.html gives:
AUTOHANDLER
<h1>Hello</h1>
<h2>World</h2

>From the example I'd expect SUBAUTOHANDLER to appear too.

If this isn't the default behaviour, can I change it? I want to add a
security check to a folder of components called from other pages using
mason, and wanted to use the autohandler to achieve this.

Thanks for your time

Carl

       -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
       Carl Vincent             http://www.netskills.ac.uk/ (URL)
       Systems Manager                       0191 222 5003 (voice)
       NETSKILLS - Quality Internet Training 0191 222 5001  (fax)



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to