RE: View Loading and Caching

"Andy Zeneski" <[email protected]> Thu, 27 Feb 2003 13:34:34 -0500
Newsgroups gmane.comp.java.jpublish.devel
Message-ID <[email protected]>
Anthony,

I looked at this again, and I see now what you are talking about. At first I
thought that the JPublishViewContext contained the JPublishContext, rather
then wrapped it. My fault for only skimming and not really reading.

So, thinking about an action which ran to prepare the added attributes it
started sounding nice. However, this really would only work if all pages are
using the same view renderer, unless there were global actions which were
mapped to the renderer which was used.

-Andy


> The thing is that by putting something in the JPublishContext it
> *IS* the root context.  The FreeMarkerViewContext just wraps the
> JPublishContext.  Unless I am missing something I still think
> that putting values in the JPublishContext would  still meet your
> needs.  I may be missing something though because I am not
> intimately familiar with all of the details of FreeMarker.
>
> On a side note, one of the reasons for using actions as opposed
> to extending the system directly is because of the flexibility it
> provides.  Performance-wise I don't think it will be much
> different then putting code in your custom renderer.
>




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf