Re: [xwiki-users] Generating a DocumentReference

2015-08-05 Thread Thomas Mortagne
It all depend why you need a DocumentReference. * if you are in Velocity and need to pass a DocumentReference to a method then you can directly pass the string and it will be converted to DocumentReference automatically based on the current context * otherwise for this use case you are usually sup

[xwiki-users] Generating a DocumentReference

2015-08-05 Thread Peter Huisman
Hi, I am looking for a way to create a document reference without the “hassle” of worrying about the WikiName. In a listener, I get a document name which I use for input in a query. The result is a list of documentNames in the format [space.docname]. I need to transform this into a DocumentRefe