SaveAction is only one way to modify a document, it won't cover things like scripts for example. On Fri, Jul 10, 2015 at 12:07 PM, Peter Huisman <[email protected]> wrote:
Thanks Thomas,
Sorry about the double question. It was intended to be only one :-) I am however able to cancel the SAVE by canceling the ActionExecutingEvent(SaveAction.ACTION_NAME) which is triggered by the Save. This however displays an empty page when I send an event.cancel().
It would be a solution if I could somehow display the previous page or some kind of error message. I’m not that much of an expert in Java / xWiki that I understand if and how this could be accomplished. Any suggestions?
Br,
Peter
Op 10 jul. 2015, om 12:00 heeft [email protected] het volgende geschreven:
Send users mailing list submissions to [email protected]
To subscribe or unsubscribe via the World Wide Web, visit http://lists.xwiki.org/mailman/listinfo/users or, via email, send a message with subject or body 'help' to [email protected]
You can reach the person managing the list at [email protected]
When replying, please edit your Subject line so it is more specific than "Re: Contents of users digest..." Today's Topics:
1. DocumentSavingEvent (Peter Huisman) 2. DocumentCreatingEvent (Peter Huisman) 3. Re: DocumentSavingEvent (Thomas Mortagne) 4. Re: DocumentCreatingEvent (Thomas Mortagne)
Van: Peter Huisman <[email protected]> Onderwerp: [xwiki-users] DocumentSavingEvent Datum: 10 juli 2015 11:05:14 CEST Aan: [email protected] Antwoord aan: XWiki Users <[email protected]>
Hi,
I was wondering if there is a way to stop the document from being saved using this event listener (or any similar event listener for that matter)?
With kind regards,
Peter
Van: Peter Huisman <[email protected]> Onderwerp: [xwiki-users] DocumentCreatingEvent Datum: 10 juli 2015 11:06:59 CEST Aan: [email protected] Antwoord aan: XWiki Users <[email protected]>
Hi,
I was wondering if there is a way to stop the document from being saved using this event listener (or any similar event listener for that matter)?
With kind regards,
Peter
Van: Thomas Mortagne <[email protected]> Onderwerp: Antw.: [xwiki-users] DocumentSavingEvent Datum: 10 juli 2015 11:08:49 CEST Aan: XWiki Users <[email protected]> Antwoord aan: XWiki Users <[email protected]>
Nop you can't cancel saving right now, but you can use DocumentSavingEvent to revert any change you don't like in the document before the save.
On Fri, Jul 10, 2015 at 11:05 AM, Peter Huisman <[email protected]> wrote:
Hi,
I was wondering if there is a way to stop the document from being saved using this event listener (or any similar event listener for that matter)?
With kind regards,
Peter _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
Van: Thomas Mortagne <[email protected]> Onderwerp: Antw.: [xwiki-users] DocumentCreatingEvent Datum: 10 juli 2015 11:09:30 CEST Aan: XWiki Users <[email protected]> Antwoord aan: XWiki Users <[email protected]>
Same answer than for DocumentSavingEvent mail.
On Fri, Jul 10, 2015 at 11:06 AM, Peter Huisman <[email protected]> wrote:
Hi,
I was wondering if there is a way to stop the document from being saved using this event listener (or any similar event listener for that matter)?
With kind regards,
Peter _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne