Erik Bruchez wrote:
Bill Winspur wrote:
4. What is the recommended practice for passing docs between pages?
The practice described in the tutorial: using XUpdate, copying XML documents over from XForms instance to XForms instance.
In such a case, using the instance-passing="forward" attribute in the Page Flow, either on the <config> element of the Page Flow configuration, or individually on action <result> elements, guarantees that a server-side redirect (forward) is performed. This way, you can pass documents of any size, and the state is stored on the client (web page).
Is the point of the forward attr to implement session state thru url rewriting (or cookies), instead of session-scope ?
What is the scope of the copied xform docs in the hello world example, which does not forward ?
Furthermore, you can encrypt such state so that it is not possible for a user to tamper with the data saved on the client.
This approach has limits: it causes pages to be larger because they have to store some state. However, it tends to beat the session-based methods. Again, just an opinion.
The session has its place, of course. It can store user preferences for a site, things like shopping carts that are expected to remain the same across multiple browser windows, etc.
5. Are session start and end defined by J2EE, or by server implementations?
Do you mean the mechanisms for implementing sessions?
Yes, that's what I mean.
This being said, it doesn't explain why your session gets cleared.
Watching the console, when using the session listener, I saw that the second start-session
event occurred when I clicked the button causing a page jump, not when the page carrying the
button was initially displayed.
In most cases, this is due to browser configuration, such as disabling cookies. Could that be the case?
No, I'm using Mozilla and have it set to use cookies 'normally', which is looser than 'session'.
Have you tried a couple of browsers?
Not yet - will do.
-Erik
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user
-- Bill Winspur Manager, Wynnon Systems Inc Mobile: 403-519-5889
------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user
