Accessing property values in sub pages

Al Byers <[email protected]> Thu, 30 Oct 2003 11:47:06 -0700
Newsgroups gmane.comp.java.jpublish.devel
Message-ID <[email protected]>
 From my OFBiz post:
If a JPublish subpage is included in a template via the "pages.get(..." 
method, then the "content-actions" included in the pagedefs config file 
for that subpage are executed, but the properties in that file are not 
available to those action scripts. As far as I can tell, this is because 
the initial "page" context variable never gets replaced.
(end clip)

After a lot of searching I see in ExtendedFileSystemRepository.get that 
executeActions() is called first thing, in which case "page" still 
refers to the parent page. And no place in the OFBiz code is "page" 
substituted in the context. But even if I wanted to (and I tried) there 
is not a chance to substitute the page before the content-actions are 
called.

Is it by design that the content-actions do not have access to the 
property values in their config file?

-Al

-- 
Al Byers
Automation Groups Inc
777 S. State St.
Orem, UT 84058
801.400.5111
http://www.automationgroups.com
[email protected]

We're "Open for Business" (http://www.ofbiz.org) 
 - the leader in Java-based Web services development tools




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/