Re: [xwiki-users] Getting user name with a Java Component

2014-11-28 Thread vinc...@massol.net
  On 28 Nov 2014 at 07:00:26, Marius Dumitru Florea (mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com)) wrote: On Nov 28, 2014 12:33 AM, Bryn Jeffries wrote: I wrote: What's the right way to get the current user from the execution context within a Java

Re: [xwiki-users] Handling exceptions from components

2014-11-28 Thread vinc...@massol.net
  On 28 Nov 2014 at 01:00:37, Bryn Jeffries (bryn.jeffr...@sydney.edu.au(mailto:bryn.jeffr...@sydney.edu.au)) wrote: What's the preferred way to deal with errors occuring in Java components? Is it OK to throw an exception from within the component, yes and can this be caught within the

[xwiki-users] Mocca Calendar Application 2.2.1 released - with a glitch

2014-11-28 Thread Clemens Klein-Robbenhaar
To folks who have the Mocca Calendar[1] application installed in their XWiki instances: I have just released a new version 2.2.1 to which you might want to update to, as it contains quite a few bugfixes and improvements, thanks to patches send in by several contributors.[2] However the new

[xwiki-users] Migration from 5.4.5 Standalone to 6.3 Tomcat

2014-11-28 Thread D R
Hi, in our company we used the standalone version of XWiki for testing and are very satisfied with it so we want to migrate to the new version and a more robust setup. The setup is Windows Server 2003 R2 (sadly only 32 bits) with Apache 2.4, MySQL 5 and Tomcat 7. XWiki 6.3 is setup now

Re: [xwiki-users] SOLR and object search

2014-11-28 Thread Gerritjan Koekkoek
On Mon, Nov 24, 2014 at 9:46 AM, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: Hi, I'm trying to understand the new SOLR search (i did not understand the old Lucene very well) My use-case is the following. We have a special FAQ application where the object has, amongst others, the

Re: [xwiki-users] Migration from 5.4.5 Standalone to 6.3 Tomcat

2014-11-28 Thread Thomas Mortagne
On Fri, Nov 28, 2014 at 3:02 PM, D R rir@gmail.com wrote: Hi, in our company we used the standalone version of XWiki for testing and are very satisfied with it so we want to migrate to the new version and a more robust setup. The setup is Windows Server 2003 R2 (sadly only 32 bits) with

Re: [xwiki-users] Getting user name with a Java Component

2014-11-28 Thread Bryn Jeffries
From: vinc...@massol.net [vinc...@massol.net] OK, so I should not use ExecutionContext at all? You’re right, our goal is to have all context information (including the user) be put in the Execution Context. However, currently, we’re in a transition phase, trying to move from the old

Re: [xwiki-users] Getting user name with a Java Component

2014-11-28 Thread Bryn Jeffries
From Marius: 3) Presumably the document reference captures the full location of the user's profile page. The DocumentReference API doesn't appear to have a page name accessor, so presumably to extract the user name I need to pull it out of userDoc.toString(). What information do you need

Re: [xwiki-users] Handling exceptions from components

2014-11-28 Thread Bryn Jeffries
Said Vincent: and can this be caught within the Velocity or Groovy code that calls it? errors are automatically caught in the script macros ({{velocity}}, {{groovy}}, etc). OK, looks like Groovy has explicit try/catch (http://groovy.codehaus.org/JN3035-Exceptions). I couldn't see anything

Re: [xwiki-users] Handling exceptions from components

2014-11-28 Thread Thomas Mortagne
On Fri, Nov 28, 2014 at 9:17 PM, Bryn Jeffries bryn.jeffr...@sydney.edu.au wrote: Said Vincent: and can this be caught within the Velocity or Groovy code that calls it? errors are automatically caught in the script macros ({{velocity}}, {{groovy}}, etc). OK, looks like Groovy has explicit