Re: [xwiki-users] How to display strucured Data

2016-01-21 Thread Guillaume Delhumeau
Example:
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-wiki/xwiki-platform-wiki-default/src/main/java/org/xwiki/wiki/internal/descriptor/builder/DefaultWikiDescriptorBuilder.java#L254-254

2016-01-21 14:47 GMT+01:00 Guillaume Delhumeau :

> When you save a document with the Java API, you need to set a content
> author to the document. Otherwise, the change is saved with "Unknow User",
> which has not the right to write scripts.
>
> 2016-01-21 12:59 GMT+01:00 Giordano Ninonà :
>
>> P.S. I am working on Java, thus in each page I see that the last
>> modification was performed by "Unknown user".
>>
>> 2016-01-21 12:58 GMT+01:00 Giordano Ninonà :
>>
>> > Hi users,
>> >
>> > Searching and reading plenty of material, I have understood some of the
>> > XClass and Sheet behaviour, but I have still some problems because,
>> even if
>> > I have created an XClass and a related Sheet (binded adding an
>> > "XWiki.ClassSheetBinding" object to the XClass document) and after have
>> > inserted in the sheet the velocity script:
>> >
>> > {{velocity}}\n
>> >#set($class = $doc.getObject('MySpace.myXClass').xWikiClass)
>> >#foreach($prop in $class.properties)
>> > === $prop.prettyName ===
>> > :$doc.display($prop.getName())\n";
>> > #end
>> > {{/velocity}}\n";
>> >
>> > When I update my pages in each pages I get this Velocity error:
>> > "
>> >
>> > org.xwiki.rendering.macro.MacroExecutionException: The execution of the
>> [velocity] script macro is not allowed. Check the rights of its last author
>> or the parameters if it's rendered from another script.
>> >   at
>> org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:178)
>> >   at
>> org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)
>> >   at
>> org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:269)
>> >   at
>> org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
>> >   at
>> org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:95)
>> >   at
>> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:253)
>> >   at
>> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:126)
>> >   at
>> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:56)
>> >   at
>> org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)
>> >   at
>> org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)
>> >   at
>> org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:229)
>> >   at
>> org.xwiki.sheet.internal.SheetDocumentDisplayer.applySheet(SheetDocumentDisplayer.java:209)
>> >   at
>> org.xwiki.sheet.internal.SheetDocumentDisplayer.maybeDisplayWithSheet(SheetDocumentDisplayer.java:164)
>> >   at
>> org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:102)
>> >   at
>> org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50)
>> >   at
>> org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)
>> >   at
>> org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)
>> >   at
>> com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1164)
>> >   at
>> com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1127)
>> >   at
>> com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1179)
>> >   at
>> com.xpn.xwiki.api.Document.getRenderedContent(Document.java:692)
>> >   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >   at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> >   at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> >   at java.lang.reflect.Method.invoke(Method.java:606)
>> >   at
>> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
>> >   at
>> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
>> >   at
>> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
>> >   at
>> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
>> >   at
>> org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)
>> >   at
>> org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
>> >

[xwiki-users] Fresh XWiki, getting "HTTP Status 500 - com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL"

2016-01-21 Thread Frank Thommen

Hi,

that's what I get, when browsing to our freshly installed XWiki instance

"HTTP Status 500 - com.xpn.xwiki.XWikiException: Error number 11007 in 
0: Failed to extract Entity Resource Reference from URL"


The error appears, after the "XWiki Loading..." status has reached ca 
50%.  The complete stacktrace can be found at http://pastebin.com/SnuA0AY8.


I've found quite some references to the error "Error number 11007", but 
most of them referred to the PostgreSQL JDBC driver not being installed. 
 This is not the case on our system.


One reference (http://jira.xwiki.org/browse/XWIKI-11477) seems to 
exactly match our error, but unfortunately none of the explanations 
given in this ticket are understandable for me.


Our system is running on OpenSuSE 13.1 with PostgreSQL 9.2.14 (from 
repo), Apache Tomcat 8.0.30 (manually installed) and XWiki Enterprise 
7.4 (WEB, manually installed).


Any pointer to fix this problem is appreciated.  Additional information 
can be provided if it is required.


Cheers
Frank
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] How to display strucured Data

2016-01-21 Thread Giordano Ninonà
Hi users,

Searching and reading plenty of material, I have understood some of the
XClass and Sheet behaviour, but I have still some problems because, even if
I have created an XClass and a related Sheet (binded adding an
"XWiki.ClassSheetBinding" object to the XClass document) and after have
inserted in the sheet the velocity script:

{{velocity}}\n
   #set($class = $doc.getObject('MySpace.myXClass').xWikiClass)
   #foreach($prop in $class.properties)
=== $prop.prettyName ===
:$doc.display($prop.getName())\n";
#end
{{/velocity}}\n";

When I update my pages in each pages I get this Velocity error:
"

org.xwiki.rendering.macro.MacroExecutionException: The execution of
the [velocity] script macro is not allowed. Check the rights of its
last author or the parameters if it's rendered from another script.
at 
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:178)
at 
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)
at 
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:269)
at 
org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
at 
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:95)
at 
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:253)
at 
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:126)
at 
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:56)
at 
org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)
at 
org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)
at 
org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:229)
at 
org.xwiki.sheet.internal.SheetDocumentDisplayer.applySheet(SheetDocumentDisplayer.java:209)
at 
org.xwiki.sheet.internal.SheetDocumentDisplayer.maybeDisplayWithSheet(SheetDocumentDisplayer.java:164)
at 
org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:102)
at 
org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50)
at 
org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)
at 
org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)
at 
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1164)
at 
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1127)
at 
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1179)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:692)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
at 
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)
at 
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at 
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at 
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at 
org.xwiki.velocity.introspection.TryCatchDirective.render(TryCatchDirective.java:72)
at 
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256)
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)
at 

Re: [xwiki-users] How to display strucured Data

2016-01-21 Thread Giordano Ninonà
P.S. I am working on Java, thus in each page I see that the last
modification was performed by "Unknown user".

2016-01-21 12:58 GMT+01:00 Giordano Ninonà :

> Hi users,
>
> Searching and reading plenty of material, I have understood some of the
> XClass and Sheet behaviour, but I have still some problems because, even if
> I have created an XClass and a related Sheet (binded adding an
> "XWiki.ClassSheetBinding" object to the XClass document) and after have
> inserted in the sheet the velocity script:
>
> {{velocity}}\n
>#set($class = $doc.getObject('MySpace.myXClass').xWikiClass)
>#foreach($prop in $class.properties)
> === $prop.prettyName ===
> :$doc.display($prop.getName())\n";
> #end
> {{/velocity}}\n";
>
> When I update my pages in each pages I get this Velocity error:
> "
>
> org.xwiki.rendering.macro.MacroExecutionException: The execution of the 
> [velocity] script macro is not allowed. Check the rights of its last author 
> or the parameters if it's rendered from another script.
>   at 
> org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:178)
>   at 
> org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)
>   at 
> org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:269)
>   at 
> org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
>   at 
> org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:95)
>   at 
> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:253)
>   at 
> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:126)
>   at 
> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:56)
>   at 
> org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)
>   at 
> org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)
>   at 
> org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:229)
>   at 
> org.xwiki.sheet.internal.SheetDocumentDisplayer.applySheet(SheetDocumentDisplayer.java:209)
>   at 
> org.xwiki.sheet.internal.SheetDocumentDisplayer.maybeDisplayWithSheet(SheetDocumentDisplayer.java:164)
>   at 
> org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:102)
>   at 
> org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50)
>   at 
> org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)
>   at 
> org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)
>   at 
> com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1164)
>   at 
> com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1127)
>   at 
> com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1179)
>   at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:692)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:606)
>   at 
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
>   at 
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
>   at 
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
>   at 
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
>   at 
> org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)
>   at 
> org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
>   at 
> org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
>   at 
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
>   at 
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
>   at 
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
>   at 
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
>   at 
> org.xwiki.velocity.introspection.TryCatchDirective.render(TryCatchDirective.java:72)
>   at 
> org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
>   at 
> 

Re: [xwiki-users] How to display strucured Data

2016-01-21 Thread Guillaume Delhumeau
When you save a document with the Java API, you need to set a content
author to the document. Otherwise, the change is saved with "Unknow User",
which has not the right to write scripts.

2016-01-21 12:59 GMT+01:00 Giordano Ninonà :

> P.S. I am working on Java, thus in each page I see that the last
> modification was performed by "Unknown user".
>
> 2016-01-21 12:58 GMT+01:00 Giordano Ninonà :
>
> > Hi users,
> >
> > Searching and reading plenty of material, I have understood some of the
> > XClass and Sheet behaviour, but I have still some problems because, even
> if
> > I have created an XClass and a related Sheet (binded adding an
> > "XWiki.ClassSheetBinding" object to the XClass document) and after have
> > inserted in the sheet the velocity script:
> >
> > {{velocity}}\n
> >#set($class = $doc.getObject('MySpace.myXClass').xWikiClass)
> >#foreach($prop in $class.properties)
> > === $prop.prettyName ===
> > :$doc.display($prop.getName())\n";
> > #end
> > {{/velocity}}\n";
> >
> > When I update my pages in each pages I get this Velocity error:
> > "
> >
> > org.xwiki.rendering.macro.MacroExecutionException: The execution of the
> [velocity] script macro is not allowed. Check the rights of its last author
> or the parameters if it's rendered from another script.
> >   at
> org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:178)
> >   at
> org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)
> >   at
> org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:269)
> >   at
> org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
> >   at
> org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:95)
> >   at
> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:253)
> >   at
> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:126)
> >   at
> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:56)
> >   at
> org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)
> >   at
> org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)
> >   at
> org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:229)
> >   at
> org.xwiki.sheet.internal.SheetDocumentDisplayer.applySheet(SheetDocumentDisplayer.java:209)
> >   at
> org.xwiki.sheet.internal.SheetDocumentDisplayer.maybeDisplayWithSheet(SheetDocumentDisplayer.java:164)
> >   at
> org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:102)
> >   at
> org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50)
> >   at
> org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)
> >   at
> org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)
> >   at
> com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1164)
> >   at
> com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1127)
> >   at
> com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1179)
> >   at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:692)
> >   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >   at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> >   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >   at java.lang.reflect.Method.invoke(Method.java:606)
> >   at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
> >   at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
> >   at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
> >   at
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
> >   at
> org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)
> >   at
> org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
> >   at
> org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
> >   at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
> >   at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
> >   at
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
> >   at
> 

[xwiki-users] Fw : Re: How can I get event object through a form (a form to choose and delete manually some events)

2016-01-21 Thread Pascal BASTIEN


--- En date de : Jeu 21.1.16, vinc...@massol.net  a écrit :

> De: vinc...@massol.net 

> Arial;font-size:13px;}Very nice Bastien, I
> wasn't asking that much! :)

np :-)
You are right some nice screenshot is always better.

> I’ve taken the liberty
> of editing the page to tune the language here and there, I
> hope you don’t mind. I’ve also used the {{image}} macro
> which is our best practice in order to have similar images
> across xwiki.org.

In fact, I hoped secretly that you (or nice xwiki team) correct my "english" 
;-))

> Thanks a lot for providing
> this, I’m sure it’ll help others!-Vincent PS: I’ve
> checked a bit the non-working link (the fact that the user
> cannot click on it). The generated HTML seems to have a
> wrong  :

Ok thxs

Pascal
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How can I get event object through a form (a form to choose and delete manually some events)

2016-01-21 Thread vinc...@massol.net
Very nice Bastien, I wasn't asking that much! :)

I’ve taken the liberty of editing the page to tune the language here and there, 
I hope you don’t mind. I’ve also used the {{image}} macro which is our best 
practice in order to have similar images across xwiki.org.

Thanks a lot for providing this, I’m sure it’ll help others!
-Vincent
PS: I’ve checked a bit the non-working link (the fact that the user cannot 
click on it). The generated HTML seems to have a wrong  :

add
 an Extension Compatibility Object

The code that generates this is:

      #set($addobjecturl = $doc.getURL('objectadd', 
"classname=ExtensionCode.ExtensionCompatibilityClass_token=$!{services.csrf.getToken()}"))
      : General Compatibility
      : For registering information about a Tested configuration please [[add 
an Extension Compatibility Object>>path:$addobjecturl]] instead (save your 

So it seems that getURL() could be wrongly URL-encoding the query string (need 
to check the code).

Thanks
-Vincent

On 21 Jan 2016 at 10:04:37, Pascal BASTIEN (pbasnews-xw...@yahoo.fr) wrote:

A form to choose and delete manually some event from Activity Stream:
http://extensions.xwiki.org/xwiki/bin/view/Extension/CleanActivityStream
Bon appetit then!

BTW, in inline mode of extension page the link "Extension Compatibility Object" 
from <> doesn't work.
We must add manually ExtensionCode.ExtensionCompatibilityClass object at the 
extension page.


En date de : Mer 20.1.16, vinc...@massol.net  a écrit :

Objet: Re: [xwiki-users] How can I get event object through a form (a form to 
choose and delete manually some events)
À: "XWiki Users" 
Date: Mercredi 20 janvier 2016, 15h09




On 20 Jan 2016 at 11:49:31,
Pascal BASTIEN (pbasnews-xw...@yahoo.fr)
wrote:

greedy! 


indeed :)



Ok I will find some time to post that :-) 


cool,
thanks

-Vincent
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How can I get event object through a form (a form to choose and delete manually some events)

2016-01-21 Thread Pascal BASTIEN
A form to choose and delete manually some event from Activity Stream:
http://extensions.xwiki.org/xwiki/bin/view/Extension/CleanActivityStream
Bon appetit then!

BTW, in inline mode of extension page the link "Extension Compatibility Object" 
from <> doesn't work.
We must add manually ExtensionCode.ExtensionCompatibilityClass object at the 
extension page.


En date de : Mer 20.1.16, vinc...@massol.net  a écrit :

 Objet: Re: [xwiki-users] How can I get event object through a form (a form to 
choose and delete manually some events)
 À: "XWiki Users" 
 Date: Mercredi 20 janvier 2016, 15h09
 
 
 
 
 On 20 Jan 2016 at 11:49:31,
 Pascal BASTIEN (pbasnews-xw...@yahoo.fr)
 wrote:
 
 greedy! 
 
 
 indeed :)
 
 
 
 Ok I will find some time to post that :-) 
 
 
 cool,
 thanks
 
 -Vincent
 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Fresh XWiki, getting "HTTP Status 500 - com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL"

2016-01-21 Thread vinc...@massol.net
Hi Franck,

On 21 Jan 2016 at 15:10:59, Frank Thommen 
(f.thom...@dkfz-heidelberg.de(mailto:f.thom...@dkfz-heidelberg.de)) wrote:

> Hi,
>  
> that's what I get, when browsing to our freshly installed XWiki instance
>  
> "HTTP Status 500 - com.xpn.xwiki.XWikiException: Error number 11007 in
> 0: Failed to extract Entity Resource Reference from URL"
>  
> The error appears, after the "XWiki Loading..." status has reached ca
> 50%. The complete stacktrace can be found at http://pastebin.com/SnuA0AY8.
>  
> I've found quite some references to the error "Error number 11007", but
> most of them referred to the PostgreSQL JDBC driver not being installed.
> This is not the case on our system.
>  
> One reference (http://jira.xwiki.org/browse/XWIKI-11477) seems to
> exactly match our error, but unfortunately none of the explanations
> given in this ticket are understandable for me.
>  
> Our system is running on OpenSuSE 13.1 with PostgreSQL 9.2.14 (from
> repo), Apache Tomcat 8.0.30 (manually installed) and XWiki Enterprise
> 7.4 (WEB, manually installed).
>  
> Any pointer to fix this problem is appreciated. Additional information
> can be provided if it is required.

If you check the stack trace you’ve pasted you can see the root cause is:

org.xml.sax.SAXParseException; lineNumber: 230; columnNumber: 21; The content 
of element type "session-factory" must match 
"(property*,mapping*,(class-cache|collection-cache)*,event*,listener*)”.

This means you’ve modified hibernate.cfg.xml but haven’t followed the defined 
schema. You’ve probably put xml tags in the wrong order.

You need to check and fix the changes you’ve brought to that file.

Thanks
-Vincent

> Cheers
> Frank
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Fresh XWiki, getting "HTTP Status 500 - com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL"

2016-01-21 Thread Frank Thommen

Hi Vincent,

thanks for your very quick answer

On 01/21/2016 03:15 PM, vinc...@massol.net wrote:

Hi Franck,

On 21 Jan 2016 at 15:10:59, Frank Thommen
(f.thom...@dkfz-heidelberg.de(mailto:f.thom...@dkfz-heidelberg.de)) wrote:

 > Hi,
 >
 > that's what I get, when browsing to our freshly installed XWiki instance
 >
 > "HTTP Status 500 - com.xpn.xwiki.XWikiException: Error number 11007 in
 > 0: Failed to extract Entity Resource Reference from URL"
 >
 > [...]
 >
 > Any pointer to fix this problem is appreciated. Additional information
 > can be provided if it is required.

If you check the stack trace you’ve pasted you can see the root cause is:

org.xml.sax.SAXParseException; lineNumber: 230; columnNumber: 21; The
content of element type "session-factory" must match
"(property*,mapping*,(class-cache|collection-cache)*,event*,listener*)”.

This means you’ve modified hibernate.cfg.xml but haven’t followed the
defined schema. You’ve probably put xml tags in the wrong order.

You need to check and fix the changes you’ve brought to that file.


In fact I had uncommented the PostgreSQL section in hibernate.cfg.xml 
but I had overlooked, that I should also have commented out the 
"Configuration for the default database.".  This is now done and the 
error changed to a PostgreSQL access problem.  But that's an other 
story. ;-)


Thanks again
Frank
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] document library

2016-01-21 Thread Paul Pinkerton (ACLCO)
We are using a SharePoint site to house a document library.  I'd like to move 
this into our xwiki site, but haven't figured out how to configure pages in a 
way that would make this viable.

We use lists in SP - so people can add documents and when they upload them, 
they need to add in fields such as a description of the document and notes, 
usually related to when the document was current as of.  The site auto adds in 
who uploaded it.  

While I can add pages that use the Attachment macro and that makes it easy to 
display documents, it’s the extra fields that make the information more 
valuable - and that's the functionality I'd be interested in.
One thought I had was to use a form which would then populate a table, but not 
sure if that's a truly workable solution.

Thoughts or ideas would be welcomed!

Paul Pinkerton
KnowledgeNow Project/ ACLCO
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] document library

2016-01-21 Thread Aaron Hardy at AC
I can't speak to whether there's a better/more sensible way to do it, but
your last idea is certainly workable - on several XWiki sites I've defined
a custom class to hold attachment meta-data and then built a submission
form that saves meta-data (including the attachment url) along with the
attachment. The custom class is then used for display in a table, rather
than the built-in Attachment macro. It's a bit inelegant, but it works.

aaron

On Thu, Jan 21, 2016 at 11:14 AM, Paul Pinkerton (ACLCO) 
wrote:

> We are using a SharePoint site to house a document library.  I'd like to
> move this into our xwiki site, but haven't figured out how to configure
> pages in a way that would make this viable.
>
> We use lists in SP - so people can add documents and when they upload
> them, they need to add in fields such as a description of the document and
> notes, usually related to when the document was current as of.  The site
> auto adds in who uploaded it.
>
> While I can add pages that use the Attachment macro and that makes it easy
> to display documents, it’s the extra fields that make the information more
> valuable - and that's the functionality I'd be interested in.
> One thought I had was to use a form which would then populate a table, but
> not sure if that's a truly workable solution.
>
> Thoughts or ideas would be welcomed!
>
> Paul Pinkerton
> KnowledgeNow Project/ ACLCO
> ___
> 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] document library

2016-01-21 Thread Dmitriy Surdu
STOP lanceofl...@gmail.com

2016-01-21 18:31 GMT+02:00 Aaron Hardy at AC :

> I can't speak to whether there's a better/more sensible way to do it, but
> your last idea is certainly workable - on several XWiki sites I've defined
> a custom class to hold attachment meta-data and then built a submission
> form that saves meta-data (including the attachment url) along with the
> attachment. The custom class is then used for display in a table, rather
> than the built-in Attachment macro. It's a bit inelegant, but it works.
>
> aaron
>
> On Thu, Jan 21, 2016 at 11:14 AM, Paul Pinkerton (ACLCO) <
> pink...@lao.on.ca>
> wrote:
>
> > We are using a SharePoint site to house a document library.  I'd like to
> > move this into our xwiki site, but haven't figured out how to configure
> > pages in a way that would make this viable.
> >
> > We use lists in SP - so people can add documents and when they upload
> > them, they need to add in fields such as a description of the document
> and
> > notes, usually related to when the document was current as of.  The site
> > auto adds in who uploaded it.
> >
> > While I can add pages that use the Attachment macro and that makes it
> easy
> > to display documents, it’s the extra fields that make the information
> more
> > valuable - and that's the functionality I'd be interested in.
> > One thought I had was to use a form which would then populate a table,
> but
> > not sure if that's a truly workable solution.
> >
> > Thoughts or ideas would be welcomed!
> >
> > Paul Pinkerton
> > KnowledgeNow Project/ ACLCO
> > ___
> > 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