On Nov 12, 2008, at 1:23 PM, madppiper wrote:


Nah, perhaps I am just not used to using magnolia. But from my understanding,
the context is basically a java-object which inherits all of the
information, correct?

So I'm assuming you're getting an error message telling you the context hasn't been set ? The Context, in Magnolia (info.magnolia.context.Context) is an object that provides access to the repositories and holds information about the current "request" if any. It's not necessarily tied to a web request. There is a class called MgnlContext, which provides access to the current (ThreadLocal) context, and to the system context, through static methods. In the case of an http request, the current context is set by the ContextFilter - look at the /server/filters node in the configuration tree of Magnolia, and you'll see that filter. If you are to render magnolia content outside Magnolia's filter chain, then you'll have to somehow reproduce the behaviour of some/all of these filters.

hth,

-g


----------------------------------------------------------------
for list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
----------------------------------------------------------------

Reply via email to