Hi,
+1.
Silvia
Pe 10.11.2010 15:35, Guillaume Lerouge a scris:
> Hi XWiki Devs,
>
> I've been performing some XWiki demos recently and it came to my attention
> that when adding a comment to a page and then going back to the homepage, my
> comments didn't show up in the recent activity section of the dashboard.
> This is due to the fact that adding a comment is considered a minor event.
>
> This behavior is still taking place in the most recent versions of XWiki
> Enterprise (I tested a XE 2.7 snapshot this morning). I believe that
> comments should be treated as major events, the same way that adding an
> object or an annotation to a page is.
>
> Therefore I propose making adding a comment a major event instead of a minor
> one.
>
> Here's my +1 for this.
>
> Thanks,
>
> Guillaume
> _______________________________________________
> devs mailing list
> devs(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/devs
Hi,
I want to create an application similar or based on the attachment panel
application at the bottom of the xwiki pages. The application should let the
user select the file to upload to the xwiki server and write a description
of the file. Then, the file name and description should be automatically
added to a table. The first column of the table is the file name, that is a
link to the file. The second column of the table is the description of the
file. So, the table is like a repository of the files and its respective
descriptions.
My question is. Is there a macro or code snipped to add a file to the
attachment panel application?
Regards,
Abel
Hi XWiki Users,
I've been performing some XWiki demos recently and it came to my attention
that when adding a comment to a page and then going back to the homepage, my
comments didn't show up in the recent activity section of the dashboard.
This is due to the fact that adding a comment is considered a minor event.
This behavior is still taking place in the most recent versions of XWiki
Enterprise (I tested a XE 2.7 snapshot this morning). I believe that
comments should be treated as major events, the same way that adding an
object or an annotation to a page is.
Therefore I propose making adding a comment a major event instead of a minor
one.
Here's my +1 for this.
Thanks,
Guillaume
Hi All,
I want to show a dialog window similar to the one that is shown when you
want to add a user. A "Registration" window is shown. I was looking for
documentation on how to do that but I couldn't find it. So I used the Modal
Box component. But I want to keep the consistency on the look of my xwiki
site. Could somebody point me some documentation on how to add a dialog
window similar to the one that is shown when you want to add a user? I want
to show the dialog window using groovy or velocity code, if possible.
Regards,
Abel
Hi all,
it's a couple of weeks that the daily scheduling for watchlist notification
doesn't work anymore. in particular, i get the following error message on
catalina.out log file:
2010-11-02 15:15:11,642 [DefaultQuartzScheduler_Worker-2] ERROR
watchlist.WatchListPlugin - Exception while running job
java.lang.NullPointerException
at
com.xpn.xwiki.plugin.watchlist.WatchListNotifier.sendEmailNotification(WatchListNotifier.java:84)
at
com.xpn.xwiki.plugin.watchlist.WatchListJob.executeJob(WatchListJob.java:262)
at
com.xpn.xwiki.plugin.scheduler.AbstractJob.execute(AbstractJob.java:75)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
java.lang.NullPointerException
at
com.xpn.xwiki.plugin.watchlist.WatchListNotifier.sendEmailNotification(WatchListNotifier.java:84)
at
com.xpn.xwiki.plugin.watchlist.WatchListJob.executeJob(WatchListJob.java:262)
at
com.xpn.xwiki.plugin.scheduler.AbstractJob.execute(AbstractJob.java:75)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
as you can see, the message is not very explanative, and can't find out any
solution. I already tried to unschedule -> change the fire time ->
reschedule. Is there an already known issue and, maybe, its solution? The
hourly scheduler works (good) as before, so i don't think this problem is
about malformed documents.
Any idea?
Thanks a lot,
claudio
--
View this message in context: http://xwiki.475771.n2.nabble.com/watchlist-daily-notifier-doesn-t-work-tp5…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi guys,
I am trying to export my xwiki workspace so but every time i try it i get
the following error
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2882)
at
java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
at
java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
at java.lang.StringBuffer.append(StringBuffer.java:224)
at org.suigeneris.jrcs.rcs.impl.Node.toText(Node.java:719)
at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:914)
I know this is an error where the JVM has not enough memory. My JVM memory
settings are set as follows
set "JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF8 -Duser.timezone=GMT
-Xmx1024m -XX:MaxPermSize=1024m"
Everytime i try to increase it to anything above the above values Tomact
does not startup. Any clues as to how i can fix this?
I am running xwiki on the following environment
Tomcat 6.0.29
Xwiki 2.4.3
Mysql 5.1
Windows Xp
Thanks
You guys are moving too fast for me.
I was busy trying to install release 2.5 and now i find out release 2.6 RC1
is already out.
I bet release 2.6 GA will be available when i finish installing release 2.5?
:)
Hello,
I try to test Activity macro in my Wiki (XWiki 2.5) with the provided sample:
{{recentactivity space="$doc.space" author="XWiki.Admin" tag="xwiki" /}}
and also
{{velocity}}
{{recentactivity space="$doc.space" author="XWiki.Admin" tag="xwiki" /}}
{{/velocity}}
Test page returns:
> Unknown macro: recentactivity
> The "recentactivity" macro is not in the list of registered macros. Verify the spelling or contact your administrator.
So my questions are:
1- Since which XWiki version Activity macro is bundled within XWiki?
2- Could we update all pages of macros bundled with XWiki with the
minimal XWiki version there are bundled with or at least the last
XWiki version we made significant update on?
Regards,
Arnaud.
Hi everybody!
I just started using XWiki and I'm liking a lot! But, I was having
some trouble with attachment versioning. I was using XWiki with Tomcat
as a Service with Windows Server and I couldn't sotre more than one
revision of my attachments. All the old attachment revisions were lost
after restarting XWiki...
The fast workaround is: Configure Tomcat to run as a User account, not
a System Account (in the service properties window).
The explanation is: XWiki uses a "kind of" CVS repository to store the
attachment revisions. When Tomcat is running as a service with a
System account, XWiki stores the author name with a "$". This
"corrupts" the repository and XWiki can't load it again! Using a User
account is a simple workaround for this! Maybe this could be changed
in the next version....
Best regards!
Felipe Luiz Christófolli Giotto
Linux User #497287
I can't use 'update' in HQL expressions in Velocity scripts. Stack trace:
org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate
Velocity Macro for content [{{html wiki="true"}}
{{/html}}
#if($request.searchDocumentsQuery)
== Ergebnis ==
#if(!$request.privapi||$request.privapi==''||$request.privapi=='false')
## Simple API
#set($results=$xwiki.searchDocuments($request.searchDocumentsQuery.trim()))
#else
## Privileged API, cp.
http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples
#set($results=$xwiki.search($request.searchDocumentsQuery.trim()))
##
#set($results=$xwiki.queryManager.xwql($request.searchDocumentsQuery.trim()).execute())
#end
#foreach($result in $results)
* $result
#end
#end]
at
org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:125)
at
org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:44)
at
org.xwiki.rendering.macro.script.AbstractScriptMacro.evaluateBlock(AbstractScriptMacro.java:299)
at
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:191)
at
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)
at
org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:184)
at
org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:129)
at
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:85)
at
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7401)
at
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7351)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:829)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:780)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:872)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:527)
at sun.reflect.GeneratedMethodAccessor263.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
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:336)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:196)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:161)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1855)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1793)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:896)
at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:196)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:161)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1903)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1825)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:155)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:225)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to evaluate
content with id [xwiki:Sandbox.tst-2010-11-05-001]
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:205)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:161)
at
org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:118)
... 93 more
Caused by: org.apache.velocity.exception.MethodInvocationException:
Invocation of method 'search' in class com.xpn.xwiki.api.XWiki threw
exception com.xpn.xwiki.XWikiException: Error number 3223 in 3: Exception
while searching documents with sql update XWikiDocument doc set
doc.title='asdf poiu quer' where doc.fullName='tst-2010-11-03-lIqw'
Wrapped Exception: Not supported for DML operations [update
com.xpn.xwiki.doc.XWikiDocument doc set doc.title='asdf poiu quer' where
doc.fullName='tst-2010-11-03-lIqw'] at xwiki:Sandbox.tst-2010-11-05-001[line
30, column 22]
at
org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
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:336)
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.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:196)
... 95 more
Caused by: com.xpn.xwiki.XWikiException: Error number 3223 in 3: Exception
while searching documents with sql update XWikiDocument doc set
doc.title='asdf poiu quer' where doc.fullName='tst-2010-11-03-lIqw'
Wrapped Exception: Not supported for DML operations [update
com.xpn.xwiki.doc.XWikiDocument doc set doc.title='asdf poiu quer' where
doc.fullName='tst-2010-11-03-lIqw']
at
com.xpn.xwiki.store.XWikiHibernateStore.search(XWikiHibernateStore.java:2398)
at
com.xpn.xwiki.store.XWikiHibernateStore.search(XWikiHibernateStore.java:2327)
at
com.xpn.xwiki.store.XWikiHibernateStore.search(XWikiHibernateStore.java:2315)
at com.xpn.xwiki.store.XWikiCacheStore.search(XWikiCacheStore.java:660)
at com.xpn.xwiki.XWiki.search(XWiki.java:1728)
at com.xpn.xwiki.api.XWiki.search(XWiki.java:512)
at sun.reflect.GeneratedMethodAccessor458.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
... 106 more
My script is basically:
{{velocity filter="indent"}}
#set($searchDocumentsQuery="update XWikiDocument doc set doc.title='asdf
poiu quer' where doc.fullName='tst-2010-11-03-lIqw'")
#set($results=$xwiki.search($searchDocumentsQuery))
{{/velocity}}
Am I missing something?
(XWiki 2.2 and 2.4.)
--
View this message in context: http://xwiki.475771.n2.nabble.com/Failed-to-execute-the-velocity-macro-DML-…
Sent from the XWiki- Users mailing list archive at Nabble.com.