On 7 Apr 2008, at 17:41, Santy, Michael wrote: > I've created a custom document type extending File to store a > specific dialect of XML. I've registered an EventListener for > beforeDocumentModification in which I validate the document's > content against its schema. If the document is invalid, I would > like to cancel the save transaction, but have not seen a way to do > this. Could someone please point me in the right direction? >
The EventListeners are not designed to abort tasks. You will have to do an explicit check before doing the modification. For the UI side, if you use JSF, a custom JSF validator is probably the best way. Florent -- Florent Guillaume, Director of R&D, Nuxeo Open Source Enterprise Content Management (ECM) http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87 _______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm
