Re: $ctxid when and why?
Jacob Kjome <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
See persistContext() and restoreContext() in DefaultEventContext.java....
//csc_082302.2 - rewritten to persist context using a unique id (per
request)
//in a Global Weak Repository, rather than persisting context in user
session,
//which inherantly had problems if multiple frames on a client were
firing
//different events at the same time. The down side of this fix is that the
//redirected url shows in the browser with something like this tacked
onto
//the url: $ctxid=_1030135624563
Jake
At 04:36 PM 3/21/2003 +0200, you wrote:
> Hi barracudas,
>
>I want you to ask about the $ctxid parameter. As i see this is used to
>persist the event context in more than request-response cyles.
>I don't understand why this is needed.
>My understanding of the EventContext is that it should be used to pass
>objects
> from Control Event Handlers to View Event Handlers.
>These objects would be distroyed when the request-response cycle has ended.
>My assumption is correct?
>I would be surpised to find out that the Objects put in the EventContext not
>getting released
>and garbage collected.
>I just found out that throwing a ClientSideRedirectException to a static
>html page would
>look like this: ourpage.html?$ctxid=_5523212233
>How can i disable the persist of the context?
>
>Thank you,
>
>Andras.
>
>
>
>_______________________________________________
>Barracuda mailing list
>[email protected]
>http://barracudamvc.org/lists/listinfo/barracuda