On Mon, Jan 24, 2005 at 06:36:12PM +0100, Erik Bruchez wrote:
> You are opening a vast subject, that of "how do web application keep
> track of their internal state between pages".
Yes, I'm aware of this problem area, making it extremely difficult
to make idiot-proof web applications ;-).
> I should say that there is in general no such thing as "the instance
> for a session". A session is associated with a single user, but not
> with a single navigational flow. A single session may see multiple
> flows of pages using different XForms instances. Some web applications
> do not follow this logic so if you happen to clone a web browser
> window or tab and try navigate in both simultaneously, the
> applicationt becomes a mess. The session should only store what is
> related to the user, such as application preferences, profile, etc.,
> but not what is related to the page flow.
I agree you still have to add some unique id in the form, so that the
server can recognize from what page/state the form was submitted.
And indeed, doing that on the server you face the theoretically
unresolvable problem of garbage collection (after a certain timeout
or so).
> 1. Do not store you list of countries in the instance, but rather, in
> a separate XML file. With XSLT, you can easily create a list of
> items by iterating over the entries in that XML file with the
> doc('') function.
True, but ideally I want to keep it in the XForms way, i.s.o. mixing
it up with the XSLT of the view.
> 2. Implement in Presentation Server an alternative way of storing page
> state server-side. This may involve using the session as well, but
> with an additional trick like associating an ever-changing id,
> which allows separating out page flows.
Yes, something like I suggested above...
B.t.w., what is the format of the instance? Gzipped base64 or so?
--
-- Jos Vos <[EMAIL PROTECTED]>
-- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
-- Amsterdam, The Netherlands | Fax: +31 20 6948204
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
orbeon-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/orbeon-user