How silly am I!!!!! I was dealing with the problem in the wrong way. Instead to add some tag on saving page, some piece of velocity code in my Sheet (in view mode) must doing the right thinks... (I will paste the code when I finish it)
(Anyway my batch working :-/) -------------------------------------------- En date de : Ven 3.4.15, Pascal BASTIEN <[email protected]> a écrit : Objet: Re: [xwiki-users] A way to add some tags on saved page with class À: "XWiki Users" <[email protected]> Date: Vendredi 3 avril 2015, 15h45 FI with JS document.observe("xwiki:actions:save"). method my script doesn't work well... When I save and close my page: my tag is added OR my field are update OR the script going well OR I obtain a nice error message: Information détaillée: Error number 3201 in 3: Exception while saving document xwiki:FormSMQ.SMQ-P3-FPIAC-Jolie Fiche com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document xwiki:FormSMQ.SMQ-P3-FPIAC-Jolie Fiche -------------------------------------------- En date de : Ven 3.4.15, Pascal BASTIEN <[email protected]> a écrit : Objet: Re : [xwiki-users] A way to add some tags on saved page with class À: "XWiki Users" <[email protected]> Date: Vendredi 3 avril 2015, 11h00 Finally I added some CSS Id on my inline form (in my Sheet) and getProperty value with JS and document.observe("xwiki:actions:save"). I call my TagUpdater Page with AJAX var request=$.ajax({method: "POST", url: Url, data: UrlParams, dataType: "html", async: false}); My Ajax requests are sent synchronous if not sometimes my page is recorded before Tag added, and sometimes not, ... I know it is ugly way but I haven't choice. (Anyway, I will schedule some batch to fix my tags) _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
