Jos Vos wrote:
Is the recommended way to "remove" a document that is stored via a scope-serializer to serialize a new document containing just <null xsi:nil="true"/>, or is there a better way?
Yes, that would be the way.
The Scope serializer should actually detect this case and remove the attribute, instead of storing the null document. This could become a problem if you generate many different keys over time and want to cear them. Should be easy enough to do.
Adding an RFE for this:
http://sourceforge.net/tracker/index.php?func=detail&aid=1101157&group_id=116683&atid=675663
Related to this:
How do I remove all session-scope documents when I want to "forget"
a session (e.g., when the user logs out from the application),
without repeating the above step for all possible keys used in an
application? And an application can dynamically generate keys, so
that I do not know the names of all keys, which makes this problem even worse...
Easy one: you can use the Session Invalidator processor:
<p:processor name="oxf:session-invalidator"/>
-Erik
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ orbeon-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/orbeon-user
