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
users-request(a)xwiki.org het volgende geschreven:
Send users mailing list submissions to
users(a)xwiki.org
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
users-request(a)xwiki.org
You can reach the person managing the list at
users-owner(a)xwiki.org
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 <p.huisman(a)ximm.nl>
Onderwerp: [xwiki-users] DocumentSavingEvent
Datum: 10 juli 2015 11:05:14 CEST
Aan: users(a)xwiki.org
Antwoord aan: XWiki Users <users(a)xwiki.org>
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 <p.huisman(a)ximm.nl>
Onderwerp: [xwiki-users] DocumentCreatingEvent
Datum: 10 juli 2015 11:06:59 CEST
Aan: users(a)xwiki.org
Antwoord aan: XWiki Users <users(a)xwiki.org>
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 <thomas.mortagne(a)xwiki.com>
Onderwerp: Antw.: [xwiki-users] DocumentSavingEvent
Datum: 10 juli 2015 11:08:49 CEST
Aan: XWiki Users <users(a)xwiki.org>
Antwoord aan: XWiki Users <users(a)xwiki.org>
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 <p.huisman(a)ximm.nl> 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
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne
Van: Thomas Mortagne <thomas.mortagne(a)xwiki.com>
Onderwerp: Antw.: [xwiki-users] DocumentCreatingEvent
Datum: 10 juli 2015 11:09:30 CEST
Aan: XWiki Users <users(a)xwiki.org>
Antwoord aan: XWiki Users <users(a)xwiki.org>
Same answer than for DocumentSavingEvent mail.
On Fri, Jul 10, 2015 at 11:06 AM, Peter Huisman <p.huisman(a)ximm.nl> 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
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org