Jackie Hamilton wrote:
> Is there a way to pass a variable from the dhandler up to the 
> autohandler?
>
> I'm building a site where the autohandler constructs the html page 
> (including the page title) but the dhandler is the one that actually 
> figures out what the page content and title is supposed to be. I can't 
> figure out how to pass the $title info over. I've tried a shared 
> section in the dhandler:
In autohandler:

<title><& SELF:title &></title>
<%method title>Default Title</%method>

In mypage.html:
<%method title>My Page<%method>

Any method defined in the autohandler that you define in a lower-level 
component will be overridden via inheritance.  Anything undefined will 
take the default value you give in the autohandler.   There are examples 
of this in Chapter 5 of the mason book.  
http://www.masonbook.com/book/chapter-5.mhtml
 

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to