[xwiki-users] debian installer
Is there more information for the xwiki debian installer out there? Volker -- View this message in context: http://xwiki.475771.n2.nabble.com/debian-installer-tp7110261p7110261.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Interacting between groovy & velocity script
Thomas Mortagne wrote > > ... What this script is doing > is to register a java object created with groovy, your velocity will > never be called when an event is received. > > Basically what happen: > * when you view the page: a java listener is created and registered in > groovy and your velocity is executed but onEvent is not called > * when an event is received: onEvent of previously registred java > object is called and nothing else, the script is not executed > > So if you need to do something when an event is received you need to > do it fully in the onEvent method. > Thanks Thomas! As I understand, I should include all my planned script actions inside groovy script (same as groovy script make changes in a title of source page)... According to this, I have another question. I should include ALL my actions inside this onEvent object? For example, can I have on another page something like macros (like velocity macros) and everytime, when I need (when onEvent is called) - call this macros from onEvent object and execute this? This is can be helpful if I need to repeat (when onEvent received) some actions (for example - change title not only for source page, but for all pages of a some class). If I can - it is possible to call velocity macros, or all like this procedures should be written on groovy? -- Best regards Eugen Colesnicov! -- View this message in context: http://xwiki.475771.n2.nabble.com/Interacting-between-groovy-velocity-script-tp7107913p7109241.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Interacting between groovy & velocity script
On Mon, Dec 19, 2011 at 4:02 PM, Eugen Colesnicov wrote: > > Thomas Mortagne wrote >> >> What change did you make exactly ? Could you paste your new scripts ? >> >> What error do you get exactly ? >> > > I Attached file with content of my page (contains 2 scripts groovy & > velocity) > http://xwiki.475771.n2.nabble.com/file/n7108420/Sandbox.pEventListener.txt > Sandbox.pEventListener.txt > groovy script ia same to > http://extensions.xwiki.org/xwiki/bin/view/Extension/Title+Post+Processing+Using+Groovy. > > Only small changes in new title definition (according to my own properties) > and CRITICAL line: > xcontext.put("eventsource",source.getFullName()) > > If I add this line to this script - event listener stops working ... (no any > changes in a title). I cannot see any error (or I don't know how). I think, > that it is error, because event listener stops working - no any changes in > title of a modified page. I checked java log errors - also not there any > errors ... > > Without this line: > xcontext.put("eventsource",source.getFullName()) > groovy script works perfectly and also works velocity script (cannot get > value from xcontext, but works). What do you mean exactly by velocity works ? What this script is doing is to register a java object created with groovy, your velocity will never be called when an event is received. Basically what happen: * when you view the page: a java listener is created and registered in groovy and your velocity is executed but onEvent is not called * when an event is received: onEvent of previously registred java object is called and nothing else, the script is not executed So if you need to do something when an event is received you need to do it fully in the onEvent method. > > -- > Best regards > Eugen Colesnicov > > -- > View this message in context: > http://xwiki.475771.n2.nabble.com/Interacting-between-groovy-velocity-script-tp7107913p7108420.html > Sent from the XWiki- Users mailing list archive at Nabble.com. > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Question marks in Blog titles
Hi again, There is a closely related problem on Blog/WebHome with question marks too (the link on the 3 dots). Is there is similar fix? I tried myself, but none of my guesses worked. Cheers, Olaf - Ursprüngliche Message - > Von: O Voss > An: XWiki Users > Cc: > Gesendet: 12:41 Montag, 21.November 2011 > Betreff: Re: [xwiki-users] Question marks in Blog titles > >T hanks a lot, Sergiu, that works fine! > > Cheers, > > Olaf > > > > >> >> Von: Sergiu Dumitriu >> An: XWiki Users >> Gesendet: 8:27 Montag, 21.November 2011 >> Betreff: Re: [xwiki-users] Question marks in Blog titles >> >> On 11/20/2011 09:14 AM, O Voss wrote: >>> when the title of a blog message contains a question mark. For example > the recent blog post panel shows such posts as non-existent >> >> This was a bug, which I just fixed for the upcoming 3.3 Milestone version. > See http://jira.xwiki.org/browse/XWIKI-7166 for more details. >> >> You can pick the fix to integrate in your current instance from > https://github.com/xwiki/xwiki-platform/commit/4961447b1cf0931e862db2a25678acd3181f2a74 >> >> -- Sergiu Dumitriu >> http://purl.org/net/sergiu/ >> ___ >> users mailing list >> users@xwiki.org >> http://lists.xwiki.org/mailman/listinfo/users >> >> >> > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Interacting between groovy & velocity script
Thomas Mortagne wrote > > What change did you make exactly ? Could you paste your new scripts ? > > What error do you get exactly ? > I Attached file with content of my page (contains 2 scripts groovy & velocity) http://xwiki.475771.n2.nabble.com/file/n7108420/Sandbox.pEventListener.txt Sandbox.pEventListener.txt groovy script ia same to http://extensions.xwiki.org/xwiki/bin/view/Extension/Title+Post+Processing+Using+Groovy. Only small changes in new title definition (according to my own properties) and CRITICAL line: xcontext.put("eventsource",source.getFullName()) If I add this line to this script - event listener stops working ... (no any changes in a title). I cannot see any error (or I don't know how). I think, that it is error, because event listener stops working - no any changes in title of a modified page. I checked java log errors - also not there any errors ... Without this line: xcontext.put("eventsource",source.getFullName()) groovy script works perfectly and also works velocity script (cannot get value from xcontext, but works). -- Best regards Eugen Colesnicov -- View this message in context: http://xwiki.475771.n2.nabble.com/Interacting-between-groovy-velocity-script-tp7107913p7108420.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Interacting between groovy & velocity script
This works for me: --8<-- {{groovy}} xcontext.put("foo", "bar") {{/groovy}} {{velocity}} Velocity: $xcontext.foo {{/velocity}} -->8-- I tested on a 3.4 snapshot but it should work on older versions too. Hope this helps, Marius On Mon, Dec 19, 2011 at 2:01 PM, Eugen Colesnicov wrote: > Hi everybody! > > I need help to organize interacting beetween groovy and velocity script on a > page. I need to transmit a value of a parameter from groovy script - to > velocity script (both scripts placed on one page). > > I know theory, that need to use xcontext: > xcontext.put("variable","value") inside groovy script > and $xcontext.get("variable") inside velocity script > > but in my situation - this doesn't work ... I cannot understand, what object > in my groovy script representing xcontext object ... > > As a groovy script, I am using "Title Post Processing Using Groovy" based on > event listener technology, originally taken from here > http://extensions.xwiki.org/xwiki/bin/view/Extension/Title+Post+Processing+Using+Groovy. > I only made small changes on this script (calculates title according to my > properties). It works perfectly. > > Also, I inserted on same page (where event listener script was placed) one > more script - velocity script (below groovy script). My idea - when an event > was happen - should execute 2 scripts. And all is working perfectly! Execute > and "Title Post Processing Using Groovy" and my own velocity-script - this > part working without any problems. > > I need to make small next step - to transmit a value of a parameter (page > name where an event was happens) from groovy to velocity. But if I try to > write inside this groovy script: > xcontext.put("eventsource",source.getFullName()) - event listener stops > working ... (looks like some error) > > If I trying to use (as a xcontext) - crtContext (variable which defines some > context-related object in this script) - event listener working, but when I > trying inside velocity-script to get: > $xcontext.get("eventsource") - value is empty ... > > As a result - my question is - how need to use xcontext.put(... in this > groovy script of event listenter which I am using and how I can get xcontext > variable in a below-placed velocity script (which is also executes)? > > If will be small example - will be perfectly, because I am not groovy- or > java-programmer and have some difficulties of understanding object-oreiented > organization of xwiki ... > > -- > Thanks beforehand! > Eugen Colesnicov > > -- > View this message in context: > http://xwiki.475771.n2.nabble.com/Interacting-between-groovy-velocity-script-tp7107913p7107913.html > Sent from the XWiki- Users mailing list archive at Nabble.com. > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Interacting between groovy & velocity script
On Mon, Dec 19, 2011 at 1:01 PM, Eugen Colesnicov wrote: > Hi everybody! > > I need help to organize interacting beetween groovy and velocity script on a > page. I need to transmit a value of a parameter from groovy script - to > velocity script (both scripts placed on one page). > > I know theory, that need to use xcontext: > xcontext.put("variable","value") inside groovy script > and $xcontext.get("variable") inside velocity script > > but in my situation - this doesn't work ... I cannot understand, what object > in my groovy script representing xcontext object ... > > As a groovy script, I am using "Title Post Processing Using Groovy" based on > event listener technology, originally taken from here > http://extensions.xwiki.org/xwiki/bin/view/Extension/Title+Post+Processing+Using+Groovy. > I only made small changes on this script (calculates title according to my > properties). It works perfectly. > > Also, I inserted on same page (where event listener script was placed) one > more script - velocity script (below groovy script). My idea - when an event > was happen - should execute 2 scripts. And all is working perfectly! Execute > and "Title Post Processing Using Groovy" and my own velocity-script - this > part working without any problems. What change did you make exactly ? Could you paste your new scripts ? > > I need to make small next step - to transmit a value of a parameter (page > name where an event was happens) from groovy to velocity. But if I try to > write inside this groovy script: > xcontext.put("eventsource",source.getFullName()) - event listener stops > working ... (looks like some error) What error do you get exactly ? > > If I trying to use (as a xcontext) - crtContext (variable which defines some > context-related object in this script) - event listener working, but when I > trying inside velocity-script to get: > $xcontext.get("eventsource") - value is empty ... > > As a result - my question is - how need to use xcontext.put(... in this > groovy script of event listenter which I am using and how I can get xcontext > variable in a below-placed velocity script (which is also executes)? > > If will be small example - will be perfectly, because I am not groovy- or > java-programmer and have some difficulties of understanding object-oreiented > organization of xwiki ... > > -- > Thanks beforehand! > Eugen Colesnicov > > -- > View this message in context: > http://xwiki.475771.n2.nabble.com/Interacting-between-groovy-velocity-script-tp7107913p7107913.html > Sent from the XWiki- Users mailing list archive at Nabble.com. > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Not getting logout from xwiki application
Folks Please let me know the inputs from your side on below issue. I tried many things from my side but did not work out . latest is below one but still i am not able to logout. What iam trying to do below is if action is logout then redirecting to default page i.e /bin/view/Main but it still does not do logout public XWikiUser checkAuth(XWikiContext context) throws XWikiException { HttpServletRequest req = null; if (context.getRequest()!=null) req = context.getRequest().getHttpServletRequest(); if (req==null) return null; if (context.getAction().equals("logout")) { XWikiResponse response = context.getResponse(); String redirect = context.getURLFactory().createURL("Main", "WebHome", "view", context).toString(); if (redirect != null) { try { response.sendRedirect(redirect); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); log.error("not able toog out"); } } return null; } On Sun, Dec 18, 2011 at 11:27 PM, mohit gupta wrote: > i have implemented the single sign on of xwiki with my web application. > Basically when i click xwiki hyperlink on my webapplication it takes me to > xwiki site hosted on another port > without asking the credentials. Behind the scenes it creates an empty > user in xwiki databse with no password. Till here its perfect.But when i > click on logout on right top of the page it does not do logout. it brings > me on the same page.I tried debugging the issue whole day but could not > find any concrete finding. > > when i do the login on xwiki site directly with some created > credentials(i mean in giving address in address bar directly)and do the > logout it does the log out. I found the major difference is when we do the > login manually it sets the username and password in cookies and sets some > other stuff too like user principal in request and onlogout it retrieves > the same info from cookie and gets successfully logout.But in my case as it > creates the empty user i.e with no password it does not set the above > stuff in cookie and when i click on logout it stays on the same page.i am > not getting how to get thru this. Any help would be highly appreciated. > > > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Interacting between groovy & velocity script
Hi everybody! I need help to organize interacting beetween groovy and velocity script on a page. I need to transmit a value of a parameter from groovy script - to velocity script (both scripts placed on one page). I know theory, that need to use xcontext: xcontext.put("variable","value") inside groovy script and $xcontext.get("variable") inside velocity script but in my situation - this doesn't work ... I cannot understand, what object in my groovy script representing xcontext object ... As a groovy script, I am using "Title Post Processing Using Groovy" based on event listener technology, originally taken from here http://extensions.xwiki.org/xwiki/bin/view/Extension/Title+Post+Processing+Using+Groovy. I only made small changes on this script (calculates title according to my properties). It works perfectly. Also, I inserted on same page (where event listener script was placed) one more script - velocity script (below groovy script). My idea - when an event was happen - should execute 2 scripts. And all is working perfectly! Execute and "Title Post Processing Using Groovy" and my own velocity-script - this part working without any problems. I need to make small next step - to transmit a value of a parameter (page name where an event was happens) from groovy to velocity. But if I try to write inside this groovy script: xcontext.put("eventsource",source.getFullName()) - event listener stops working ... (looks like some error) If I trying to use (as a xcontext) - crtContext (variable which defines some context-related object in this script) - event listener working, but when I trying inside velocity-script to get: $xcontext.get("eventsource") - value is empty ... As a result - my question is - how need to use xcontext.put(... in this groovy script of event listenter which I am using and how I can get xcontext variable in a below-placed velocity script (which is also executes)? If will be small example - will be perfectly, because I am not groovy- or java-programmer and have some difficulties of understanding object-oreiented organization of xwiki ... -- Thanks beforehand! Eugen Colesnicov -- View this message in context: http://xwiki.475771.n2.nabble.com/Interacting-between-groovy-velocity-script-tp7107913p7107913.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users