Forwarding this mail from Joe Walker.

---

Hi,

On server-side object lifetime:
When you configure DWR outside of RIFE, you can use a scope to declare the lifetime of the server-side object. 4 of the scopes will be familiar to servlet/jsp developers: application, session, page, and request. Of these generally only application and session make sense. DWR2 adds another scope: script, which like session is tied to a browser, however script is keyed from a unique id in some javascript rather than a cookie which means it is more likely to be turned on. It also means that 2 pages in the same browser will have separate "ScriptSession"s.

On the smart components idea:
There is a sub project of DWR that's just been seeded with a code donation, called Dowry. Dowry is a form-fill component that makes use of exactly this sort of idea. I hope there will be more.

Joe.


Geert Bevin wrote:
Hi Steven,

Also, once you can call back to the element that added an AJAX- enabled form field, this can evolve into a bidirectional communication channel between an element and a client, not just something for form validation. That's one thing that I think is lacking with the DWR approach: you can only communicate with a standalone Java object that exists in a vacuum and is reinstantiated from scratch on each interaction, rather than with a RIFE component that has all the context about what the user is up to and (in the case of an embedded component) about which of several possible instances of a given UI component the user is manipulating.

And once you have a mechanism for communicating with an element, my gut tells me that mixing AJAX and continuations will lead to some very compelling design patterns. But I admit I can't picture them clearly enough off the top of my head to write them up here.

This is a very interesting train of thought and I'm sure it's totally possible to achieve with DWR by adding RIFE-specific creators that inject the element instance into the Java objects it instantiates. Copying Joe (the author of DWR) on this, maybe he has some ideas about this.

Definitely worth exploring!

Take care,

Geert

--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com



_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to