On Tue, Mar 25, 2014 at 8:28 PM, DeHaynes <[email protected]> wrote:
Didn't work either. I even tried remarking the renaming line out and just do a redirect to a static page.
// source.rename(FullDocumentName, crtContext); crtContext.response.sendRedirect(xwiki.getURL("Main.WebHome"))
Still didn't work.
Save action does its own redirect to view mode at the end (after your listener is called) which overwrites, I think, your redirect. See https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwik... . The redirect done by the Save action take into account the xredirect request parameter though, so an option is to wrap the request and to "overwrite/add" the value of this parameter. Hope this helps, Marius
-- View this message in context: http://xwiki.475771.n2.nabble.com/Looking-for-help-with-groovy-tp7589782p758... Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs