On 9/15/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
On 9/14/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: > In Shale, the closest analog to this is Dialog scope, and we're building the > concept of a scope instance per window/frame, independent of what that > window/frame is actually doing. I believe this requires usage of Javascript? So you would have listeners when a window is created and closed, right? I want to have a solution that works without Javascript.
Currently this doesn't take any JavaScript ... but note the code I'm talking about here is currently in the Shale sandbox if you want to look further at it. It will get merged back into the main codebase later. The basic idea is we rely on the fact that JSF saves and restores the component state for us, so it uses a PhaseListener to store away the conversation id as part of the component tree (when the page is rendered), and restore the corresponding state (when the subsequent postback occurs). In our case, it just exposes the "dialog context" for the conversation on the current view as a request scope attribute ... I don't personally see a use case for registering listeners on that conversation, but I suppose it could be done. If you don't have JSF doing the save/restore component tree stuff, you'd likely have to store the conversation id in some other way (cookie, hidden variable, URL parameter), but you could still accomplish the same thing without any client side JavaScript. Michael. Craig ---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]