[OFBiz] Users - Screen Widget Idea
Adrian Crum
adrianc at hlmksw.com
Wed Mar 16 15:29:52 EST 2005
Okay, now you've lost me.
I'm doing the same thing with pre-template that I'm doing with body. So
why does body work and pre-template doesn't?
"Running the script before the main decorator" is not the objective. The
objective is to provide a mechanism for a component to insert additional
directives at a specific place in the main decorator.
Chris Howe wrote:
> First, your pre-template is undefined. You're using
>
> <decorator-section-include name="pre-template"/>
>
> instead of
>
> <decorator-section name="pre-template">
>
> pre-template does not exist in your message.
>
> so all of your platform-specifics are are a part of
> the larger main-decorator. If that doesn't work then
> you need to run the script before you call the
> main-decorator.
> ======= Original Message======
> Adrian Wrote:
>
> Thanks Chris! Please be patient with me while I
> explain...
>
> The code I supplied should (in my opinion) function as
> follows:
>
> myPage:
> -------
> set header item
> run main decorator:
> set property map
> run pre-template:
> run mainScript.bsh
> run header.ftl
> run appbar.ftl
> run appheader.ftl (this shouldn't be here - forgot
> to delete it
> during C&P)
> run messages.ftl
> run body:
> run myPage.bsh
> run myPage.ftl
> run footer.ftl
> run post-template
> ---------------------------
>
> Instead, this is what actually happens:
>
> myPage:
> -------
> set header item
> run main decorator:
> set property map
> run pre-template (does nothing)
> run header.ftl
> run appbar.ftl
> run appheader.ftl (this shouldn't be here - forgot
> to delete it
> during C&P)
> run messages.ftl
> run body:
> run mainScript.bsh
> run myPage.bsh
> run myPage.ftl
> run footer.ftl
> run post-template
> ---------------------------
>
> That's why variables defined in mainScript.bsh are
> available in
> myPage.ftl, but not header.ftl.
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/
>
> _______________________________________________
> Users mailing list
> Users at lists.ofbiz.org
> http://lists.ofbiz.org/mailman/listinfo/users
>
More information about the Users
mailing list