How can I pass a NotesDocument / NotesViewEntry collection to a custom control using a custom property?
2 answers
If you pass the data source instead, you get reinstall-safe objects that are passed to user control.
For example, if the XPage defines a document data source, and you pass a reference to that data source to CC, the Java object passed in is a DominoDocument, which is a recycle-free wrapper around the "back" of the document. Document transfer is directly related to the fact that the associated C object becomes an orphan between requests.
Likewise, passing a reference to the view data source provides CC a DominoView, which is essentially a recyclable wrapper around the appearance of the ViewEntryCollection.
In most cases, you can just pass the back end object directly, but passing the data source is much safer.
+7
source to share