[xwiki-users] Transaction commit / rollback exception

2010-06-14 Thread Rieken, Joshua
Hi all,

I'm getting a strange exception involving a DB transaction:

Exception while saving document Code.AddDocsLog
Wrapped Exception: Failed to commit or rollback transaction. Root cause []

I think it may be related to this issue:

http://jira.xwiki.org/jira/browse/XWIKI-1736

Can anyone explain this exception to me and under which circumstances it can 
occur? I'm not able to save this document because of this error.

Here's a full stack trace:

org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Script 
Macro for content [
(script content here)
]
at 
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluate(AbstractJSR223ScriptMacro.java:201)
at 
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluate(AbstractJSR223ScriptMacro.java:50)
at 
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:200)
at 
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.execute(AbstractJSR223ScriptMacro.java:137)
at 
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.execute(AbstractJSR223ScriptMacro.java:50)
at 
org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:175)
at 
org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:120)
at 
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72)
at 
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:6847)
at 
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:6822)
at 
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:725)
at 
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:739)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:492)
at sun.reflect.GeneratedMethodAccessor392.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:191)
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at 
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1806)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1727)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:740)
at sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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.ASTIfSta

Re: [xwiki-users] Scheduler not executing job correctly (or at all)

2010-02-26 Thread Rieken, Joshua


> -Original Message-
> From: users-boun...@xwiki.org
> [mailto:users-boun...@xwiki.org] On Behalf Of Sergiu Dumitriu
> Sent: Friday, February 26, 2010 10:36 AM
> To: XWiki Users
> Subject: Re: [xwiki-users] Scheduler not executing job
> correctly (or at all)
>
> On 02/26/2010 05:20 PM, Rieken, Joshua wrote:
> >
> >
> >> -Original Message-
> >> From: users-boun...@xwiki.org
> >> [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
> >> Sent: Friday, February 26, 2010 10:05 AM
> >> To: XWiki Users
> >> Subject: Re: [xwiki-users] Scheduler not executing job
> correctly (or
> >> at all)
> >>
> >> Could not say for sure but at least i can see some examples using
> >> context and xwiki bindings. See
> >> http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyNotifi
> >> cationTutorial
> >
> > I think there may be a bug in 2.2 then. I created a new job
> with the following script:
> >
> > def eventLog = xwiki.getDocument("CodeTest.TestEventLog")
> > eventLog.setContent("context class: " + context.class + "\n")
> > eventLog.setContent("xwiki class: " + xwiki.class + "\n")
> > eventLog.save()
> >
> >
> >
> > The output in CodeTest.TestEventLog:
> >
> > xwiki class: class com.xpn.xwiki.api.XWiki
> >
> >
> > The context variable is nowhere to be found.
>
> Try xcontext.

That doesn't work either.

>
> > I'll be glad to create a JIRA issue if this indeed is a problem.
> >
> > -Joshua
> >
> >>
> >> On Fri, Feb 26, 2010 at 16:56, Rieken, Joshua
> >>   wrote:
> >>> Thanks for the responses.
> >>>
> >>> After upgrading to 2.2 (I think my main problem was a
> >> combination of 2.1 .war and 2.0 .xar) I got the scheduler to run a
> >> job, but it seems that Groovy jobs don't have access to
> the xcontext
> >> variable. Also, context.class returns null, so is there any way to
> >> get the context within a job script?
> >>>
> >>> -Joshua
> >>>
> >>>> -Original Message-
> >>>> From: users-boun...@xwiki.org
> >>>> [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
> >>>> Sent: Wednesday, February 24, 2010 5:05 PM
> >>>> To: XWiki Users
> >>>> Subject: Re: [xwiki-users] Scheduler not executing job
> >> correctly (or
> >>>> at all)
> >>>>
> >>>> On Wed, Feb 24, 2010 at 22:00, Caleb James DeLisle
> >>>>   wrote:
> >>>>> I don't know much about the scheduler but I know that
> >> your script
> >>>>> should be inclosed in {{groovy}} and {{/groovy}} macro
> >>>> tags, it should
> >>>>> be saved in syntax 2.0, The user who saves the script must have
> >>>>> programming rights for it to execute and eventLog.save()
> >>>> may not work
> >>>>> if the scheduler doesn't have edit right on the eventLog
> >> page. Try
> >>>>> eventLog.saveWithProgrammingRights() to override that possible
> >>>>> problem.
> >>>>
> >>>> No actually scheduler is older than xwiki/2.0 syntax and in a
> >>>> scheduler object you put pure groovy code without
> {{groovy}} macro.
> >>>>
> >>>>>
> >>>>>
> >>>>> Caleb James DeLisle
> >>>>>
> >>>>>
> >>>>>
> >>>>> Rieken, Joshua wrote:
> >>>>>>
> >>>>>>> -Original Message-
> >>>>>>> From: users-boun...@xwiki.org
> >>>>>>> [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
> >>>>>>> Sent: Wednesday, February 24, 2010 2:24 PM
> >>>>>>> To: XWiki Users
> >>>>>>> Subject: Re: [xwiki-users] Scheduler not executing job
> >>>> correctly (or
> >>>>>>> at all)
> >>>>>>>
> >>>>>>> Hi,
> >>>>>>>
> >>>>>>> I think when you create a job it's not enabled by default.
> >>>>>>> You have to "schedule" on
> >>>> http://host/xwiki/bin/view/Scheduler/ UI.
> >>>>>>
> >>>>>> I scheduled it, but it didn't run. I also tried triggering
> >>>> it manually, but that didn't work either.
> >>>>>>
> >>>>>> -Joshua
> >>>>>>
> >>>>>>> On Wed, Feb 24, 2010 at 20:44, Rieken, Joshua
> >>>>>>>   wrote:
> >>>>>>>> Hello,
> >>>>>>>>
> >>>>>>>> I'm attempting to run the following Groovy script with the
> >>>>>>> Scheduler app:
> >>>>>>>> def eventLog = xwiki.getDocument("CodeTest.TestEventLog")
> >>>>>>>> eventLog.setContent(eventLog.getContent() + "This is
> a test.")
> >>>>>>>> eventLog.save()
> >>>>>>>>
> >>>>>>>> However, this does nothing. I have scheduled the job (which
> >>>>>>> is supposed to run every 5 minutes) and triggered it
> >>>> manually, but
> >>>>>>> it still doesn't do anything.
> >>>>>>>> I also tried surrounding the code with {{groovy}}{{/groovy}}.
> >>>>>>>>
> >>>>>>>> My cron expression is the following:
> >>>>>>>> 0 0/5 * * * ?
> >>>>>>>>
> >>>>>>>> Running on XWiki Enterprise 2.1.1.
> >>>>>>>>
> >>>>>>>> Thanks in advance.
> >>>>>>>>
> >>>>>>>> -Joshua
>
>
> --
> 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


Re: [xwiki-users] Scheduler not executing job correctly (or at all)

2010-02-26 Thread Rieken, Joshua


> -Original Message-
> From: users-boun...@xwiki.org
> [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
> Sent: Friday, February 26, 2010 10:05 AM
> To: XWiki Users
> Subject: Re: [xwiki-users] Scheduler not executing job
> correctly (or at all)
>
> Could not say for sure but at least i can see some examples
> using context and xwiki bindings. See
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyNotifi
> cationTutorial

I think there may be a bug in 2.2 then. I created a new job with the following 
script:

def eventLog = xwiki.getDocument("CodeTest.TestEventLog")
eventLog.setContent("context class: " + context.class + "\n")
eventLog.setContent("xwiki class: " + xwiki.class + "\n")
eventLog.save()



The output in CodeTest.TestEventLog:

xwiki class: class com.xpn.xwiki.api.XWiki


The context variable is nowhere to be found.

I'll be glad to create a JIRA issue if this indeed is a problem.

-Joshua

>
> On Fri, Feb 26, 2010 at 16:56, Rieken, Joshua
>  wrote:
> > Thanks for the responses.
> >
> > After upgrading to 2.2 (I think my main problem was a
> combination of 2.1 .war and 2.0 .xar) I got the scheduler to
> run a job, but it seems that Groovy jobs don't have access to
> the xcontext variable. Also, context.class returns null, so
> is there any way to get the context within a job script?
> >
> > -Joshua
> >
> >> -Original Message-
> >> From: users-boun...@xwiki.org
> >> [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
> >> Sent: Wednesday, February 24, 2010 5:05 PM
> >> To: XWiki Users
> >> Subject: Re: [xwiki-users] Scheduler not executing job
> correctly (or
> >> at all)
> >>
> >> On Wed, Feb 24, 2010 at 22:00, Caleb James DeLisle
> >>  wrote:
> >> > I don't know much about the scheduler but I know that
> your script
> >> > should be inclosed in {{groovy}} and {{/groovy}} macro
> >> tags, it should
> >> > be saved in syntax 2.0, The user who saves the script must have
> >> > programming rights for it to execute and eventLog.save()
> >> may not work
> >> > if the scheduler doesn't have edit right on the eventLog
> page. Try
> >> > eventLog.saveWithProgrammingRights() to override that possible
> >> > problem.
> >>
> >> No actually scheduler is older than xwiki/2.0 syntax and in a
> >> scheduler object you put pure groovy code without {{groovy}} macro.
> >>
> >> >
> >> >
> >> > Caleb James DeLisle
> >> >
> >> >
> >> >
> >> > Rieken, Joshua wrote:
> >> >>
> >> >>> -Original Message-
> >> >>> From: users-boun...@xwiki.org
> >> >>> [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
> >> >>> Sent: Wednesday, February 24, 2010 2:24 PM
> >> >>> To: XWiki Users
> >> >>> Subject: Re: [xwiki-users] Scheduler not executing job
> >> correctly (or
> >> >>> at all)
> >> >>>
> >> >>> Hi,
> >> >>>
> >> >>> I think when you create a job it's not enabled by default.
> >> >>> You have to "schedule" on
> >> http://host/xwiki/bin/view/Scheduler/ UI.
> >> >>
> >> >> I scheduled it, but it didn't run. I also tried triggering
> >> it manually, but that didn't work either.
> >> >>
> >> >> -Joshua
> >> >>
> >> >>> On Wed, Feb 24, 2010 at 20:44, Rieken, Joshua
> >> >>>  wrote:
> >> >>>> Hello,
> >> >>>>
> >> >>>> I'm attempting to run the following Groovy script with the
> >> >>> Scheduler app:
> >> >>>> def eventLog = xwiki.getDocument("CodeTest.TestEventLog")
> >> >>>> eventLog.setContent(eventLog.getContent() + "This is a test.")
> >> >>>> eventLog.save()
> >> >>>>
> >> >>>> However, this does nothing. I have scheduled the job (which
> >> >>> is supposed to run every 5 minutes) and triggered it
> >> manually, but
> >> >>> it still doesn't do anything.
> >> >>>> I also tried surrounding the code with {{groovy}}{{/groovy}}.
> >> >>>>
> >> >>>> My cron expression is the follo

Re: [xwiki-users] Scheduler not executing job correctly (or at all)

2010-02-26 Thread Rieken, Joshua
Thanks for the responses.

After upgrading to 2.2 (I think my main problem was a combination of 2.1 .war 
and 2.0 .xar) I got the scheduler to run a job, but it seems that Groovy jobs 
don't have access to the xcontext variable. Also, context.class returns null, 
so is there any way to get the context within a job script?

-Joshua

> -Original Message-
> From: users-boun...@xwiki.org
> [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
> Sent: Wednesday, February 24, 2010 5:05 PM
> To: XWiki Users
> Subject: Re: [xwiki-users] Scheduler not executing job
> correctly (or at all)
>
> On Wed, Feb 24, 2010 at 22:00, Caleb James DeLisle
>  wrote:
> > I don't know much about the scheduler but I know that your script
> > should be inclosed in {{groovy}} and {{/groovy}} macro
> tags, it should
> > be saved in syntax 2.0, The user who saves the script must have
> > programming rights for it to execute and eventLog.save()
> may not work
> > if the scheduler doesn't have edit right on the eventLog page. Try
> > eventLog.saveWithProgrammingRights() to override that possible
> > problem.
>
> No actually scheduler is older than xwiki/2.0 syntax and in a
> scheduler object you put pure groovy code without {{groovy}} macro.
>
> >
> >
> > Caleb James DeLisle
> >
> >
> >
> > Rieken, Joshua wrote:
> >>
> >>> -Original Message-
> >>> From: users-boun...@xwiki.org
> >>> [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
> >>> Sent: Wednesday, February 24, 2010 2:24 PM
> >>> To: XWiki Users
> >>> Subject: Re: [xwiki-users] Scheduler not executing job
> correctly (or
> >>> at all)
> >>>
> >>> Hi,
> >>>
> >>> I think when you create a job it's not enabled by default.
> >>> You have to "schedule" on
> http://host/xwiki/bin/view/Scheduler/ UI.
> >>
> >> I scheduled it, but it didn't run. I also tried triggering
> it manually, but that didn't work either.
> >>
> >> -Joshua
> >>
> >>> On Wed, Feb 24, 2010 at 20:44, Rieken, Joshua
> >>>  wrote:
> >>>> Hello,
> >>>>
> >>>> I'm attempting to run the following Groovy script with the
> >>> Scheduler app:
> >>>> def eventLog = xwiki.getDocument("CodeTest.TestEventLog")
> >>>> eventLog.setContent(eventLog.getContent() + "This is a test.")
> >>>> eventLog.save()
> >>>>
> >>>> However, this does nothing. I have scheduled the job (which
> >>> is supposed to run every 5 minutes) and triggered it
> manually, but
> >>> it still doesn't do anything.
> >>>> I also tried surrounding the code with {{groovy}}{{/groovy}}.
> >>>>
> >>>> My cron expression is the following:
> >>>> 0 0/5 * * * ?
> >>>>
> >>>> Running on XWiki Enterprise 2.1.1.
> >>>>
> >>>> Thanks in advance.
> >>>>
> >>>> -Joshua
> >>>>
> >>>> ___
> >>>> 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
> >>>
> >> ___
> >> 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
> >
>
>
>
> --
> Thomas Mortagne
> ___
> 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] Scheduler not executing job correctly (or at all)

2010-02-24 Thread Rieken, Joshua


> -Original Message-
> From: users-boun...@xwiki.org
> [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
> Sent: Wednesday, February 24, 2010 2:24 PM
> To: XWiki Users
> Subject: Re: [xwiki-users] Scheduler not executing job
> correctly (or at all)
>
> Hi,
>
> I think when you create a job it's not enabled by default.
> You have to "schedule" on http://host/xwiki/bin/view/Scheduler/ UI.

I scheduled it, but it didn't run. I also tried triggering it manually, but 
that didn't work either.

-Joshua

>
> On Wed, Feb 24, 2010 at 20:44, Rieken, Joshua
>  wrote:
> > Hello,
> >
> > I'm attempting to run the following Groovy script with the
> Scheduler app:
> >
> > def eventLog = xwiki.getDocument("CodeTest.TestEventLog")
> > eventLog.setContent(eventLog.getContent() + "This is a test.")
> > eventLog.save()
> >
> > However, this does nothing. I have scheduled the job (which
> is supposed to run every 5 minutes) and triggered it
> manually, but it still doesn't do anything.
> >
> > I also tried surrounding the code with {{groovy}}{{/groovy}}.
> >
> > My cron expression is the following:
> > 0 0/5 * * * ?
> >
> > Running on XWiki Enterprise 2.1.1.
> >
> > Thanks in advance.
> >
> > -Joshua
> >
> > ___
> > 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
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Scheduler not executing job correctly (or at all)

2010-02-24 Thread Rieken, Joshua
Hello,

I'm attempting to run the following Groovy script with the Scheduler app:

def eventLog = xwiki.getDocument("CodeTest.TestEventLog")
eventLog.setContent(eventLog.getContent() + "This is a test.")
eventLog.save()

However, this does nothing. I have scheduled the job (which is supposed to run 
every 5 minutes) and triggered it manually, but it still doesn't do anything.

I also tried surrounding the code with {{groovy}}{{/groovy}}.

My cron expression is the following:
0 0/5 * * * ?

Running on XWiki Enterprise 2.1.1.

Thanks in advance.

-Joshua

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


Re: [xwiki-users] Registering an event listener automatically

2010-02-24 Thread Rieken, Joshua
Thanks for the responses, everyone.

I really like this idea, Jerome. I see the JIRA issue here:

http://jira.xwiki.org/jira/browse/XWIKI-4936

I'll make time to look into implementing it myself. I may need some help, 
however, so I'll probably be asking some questions. :-)

-Joshua

> -Original Message-
> From: users-boun...@xwiki.org
> [mailto:users-boun...@xwiki.org] On Behalf Of Jerome Velociter
> Sent: Wednesday, February 24, 2010 10:31 AM
> To: users@xwiki.org
> Subject: Re: [xwiki-users] Registering an event listener automatically
>
> On 2/24/10 5:24 PM, Caleb James DeLisle wrote:
> > If you're talking about an eventListener in a groovy
> script, I think
> > it's done with a scheduler. You can look at Vincent's IRC bot which
> > does that very thing.
> >
> http://svn.xwiki.org/svnroot/xwiki/platform/xwiki-applications/trunk/i
> > rcbot/src/main/resources/IRC/
>
> We should probably think about "initializable scripts" to
> avoid having to perform this scheduler trick.
>
> An object of class "XWiki.InitializableScript" with a script
> text area?
>
> Jerome.
>
> >
> >
> > Caleb James DeLisle
> >
> >
> > Rieken, Joshua wrote:
> >> Hello,
> >>
> >> I need to find the best way of registering an event
> listener automatically on wiki startup. Right now I have to
> manually register the listener in a manner similar to the one
> illustrated in the Groovy Notification Tutorial
> (http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyNotif
> icationTutorial).
> >>
> >> Thanks in advance for any help.
> >>
> >> - Joshua
> >>
> >> ___
> >> 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
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Registering an event listener automatically

2010-02-24 Thread Rieken, Joshua
Hello,

I need to find the best way of registering an event listener automatically on 
wiki startup. Right now I have to manually register the listener in a manner 
similar to the one illustrated in the Groovy Notification Tutorial 
(http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyNotificationTutorial).

Thanks in advance for any help.

- Joshua

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


[xwiki-users] Getting a user preference as a list

2010-02-23 Thread Rieken, Joshua
Hello,

I'm trying to get the value of a property in XWikiPreferences of type Database 
List that has mutiple-select capability. When I do 
$xwiki.getUserPreference("property_name"), it returns a string that is a 
representation of the value, so something like:

[Value1, Value2, Value4]

However, I need this to be a list so I can check if 
property.contains("Value4"). Is there an easy way to get a list from a 
preference, or do I need to go into the XWikiPreferences page, grab the object 
and get the value from there?

Thanks,

Joshua Rieken
System Software Developer

Reynolds and Reynolds
6700 Hollister | Houston, Texas 77040
office 713.718.1800 ext. 72459 | mobile 806.584.3004
joshua_rie...@reyrey.com

MAKING BUSINESS BETTER.

NOTE: The information contained in this e-mail is personal and confidential and 
may be protected by the attorney-client privilege and/or the work product 
doctrine. It is for the sole use of the intended recipient. Any review, 
reliance, or distribution by others or forwarding without express permission is 
strictly prohibited. If you are not the intended recipient, please contact the 
sender and delete all copies.



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


[xwiki-users] LiveTable column titles

2010-02-17 Thread Rieken, Joshua
I am using the LiveTable macro to build a table similar to the one in 
XWiki.Tableview. I have custom columns and I want to display a column's "pretty 
name" as its header, but I can't find a way to pass a column "pretty name" in 
the column properties or otherwise set the column header. The only way I've 
found to set this column header pretty name is to pass a translationPrefix 
option in the table options.

Is there any way to set the column headers to a "pretty name" without changing 
/ creating translation keys in the core?

Joshua Rieken
System Software Developer

Reynolds and Reynolds
6700 Hollister | Houston, Texas 77040
office 713.718.1800 ext. 72459 | mobile 806.584.3004
joshua_rie...@reyrey.com

MAKING BUSINESS BETTER.

NOTE: The information contained in this e-mail is personal and confidential and 
may be protected by the attorney-client privilege and/or the work product 
doctrine. It is for the sole use of the intended recipient. Any review, 
reliance, or distribution by others or forwarding without express permission is 
strictly prohibited. If you are not the intended recipient, please contact the 
sender and delete all copies.



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


Re: [xwiki-users] Issues with 2.0 syntax code macro (colibri, XWE 2.1.1)

2010-02-10 Thread Rieken, Joshua
Thanks for the reply, Thomas. I've created 3 issues for this:

http://jira.xwiki.org/jira/browse/XWIKI-4878
http://jira.xwiki.org/jira/browse/XWIKI-4879
http://jira.xwiki.org/jira/browse/XWIKI-4880

-Joshua


> -Original Message-
> From: users-boun...@xwiki.org
> [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
> Sent: Wednesday, February 10, 2010 2:42 AM
> To: XWiki Users
> Subject: Re: [xwiki-users] Issues with 2.0 syntax code macro
> (colibri, XWE 2.1.1)
>
> On Tue, Feb 9, 2010 at 18:24, Rieken, Joshua
>  wrote:
> > Hello all,
> >
> > I'm using the code macro as follows:
> >
> > This statement, {{code language="c++"}}int number =
> 0;{{/code}}, is some example C++ code illustrating inline use
> of the code macro.
> >
> > There are a couple of issues:
> >
> > 1.) This sentence renders with an extra newline after the
> code macro. However, when language="none" or no language
> attribute is used, no newline is inserted. Is this a bug and,
> if not, is there any way around it?
>
> Could you report it on http://jira.xwiki.org ? But i'm afraid
> that's a Pygments bug (we could still do something about that).
>
> >
> > 2.) The code macro when using language="c++" does not use a
> monospace font in some places, and this causes problems with
> alignment.
>
> Could you report it on http://jira.xwiki.org (a different
> issue) ? I guess one of the style generated by Pygments for
> some keywords overwrite the general .code CSS class
> configuration some way.
>
> >
> > Any help is greatly appreciated. Don't worry, I do plan to
> contribute
> > back to this wonderful project once I clear my plate a bit. :-)
> >
> > Thanks,
> > Joshua
> >
> > ___
> > 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
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Issues with 2.0 syntax code macro (colibri, XWE 2.1.1)

2010-02-09 Thread Rieken, Joshua
Hello all,

I'm using the code macro as follows:

This statement, {{code language="c++"}}int number = 0;{{/code}}, is some 
example C++ code illustrating inline use of the code macro.

There are a couple of issues:

1.) This sentence renders with an extra newline after the code macro. However, 
when language="none" or no language attribute is used, no newline is inserted. 
Is this a bug and, if not, is there any way around it?

2.) The code macro when using language="c++" does not use a monospace font in 
some places, and this causes problems with alignment.

Any help is greatly appreciated. Don't worry, I do plan to contribute back to 
this wonderful project once I clear my plate a bit. :-)

Thanks,
Joshua

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


Re: [xwiki-users] New blog entry overwrites old

2010-02-04 Thread Rieken, Joshua


> -Original Message-
> From: users-boun...@xwiki.org
> [mailto:users-boun...@xwiki.org] On Behalf Of Sergiu Dumitriu
> Sent: Thursday, February 04, 2010 11:22 AM
> To: XWiki Developers
> Cc: XWiki Users
> Subject: Re: [xwiki-users] New blog entry overwrites old
>
> On 02/04/2010 06:02 PM, Guillaume Lerouge wrote:
> > Hi Daniel,
> >
> > On Thu, Feb 4, 2010 at 5:45 PM, Daniel
> Johanssonwrote:
> >
> >>
> >> Indeed, I just tried in 2.2M2 and it tells you the
> document exists.
> >> in 2.04 I did not delete the older post, it got
> overwritten so now I
> >> had 2 posts with the exact same title and content in the News
> >> category, it's still here in our wiki. And I actually updated  the
> >> first post which updated both posts!
> >> They are identical, same date, title and content.
> >>
> >> The solution to tell user that document already exist is not very
> >> good. In time you may have hundreds of blog entries in one
> category,
> >> making it pretty hard to keep titles unique. In our case
> we wanted to
> >> use it to post what testing is to be done for the week. So
> each week
> >> you want to post an entry such as "Weekly testing". It'll
> be hard to
> >> come up with unique variants to that every week!
> >>
> >
> > You can modify the article creation form to add something like:
> >
> > $xwiki.getUniquePageName($space, $input)
> >
> > see
> >
> http://platform.xwiki.org/xwiki/bin/download/DevGuide/API/xwiki%2Dcore
> > %2D2.1.1%2Djavadoc.jar/index.htmlfor
> > details.
> >
> > Sergiu, I'm starting to think we could add this to most of the
> > creation forms to avoid duplicates, WDYT?
> >
> > I'm increasingly doing it for apps I write on my projects
> (almost all
> > the time now).
>
> I'm not quite fond of this idea, but something more complex
> would work.
> If the page already exists, offer a few options:
>
> - link to the page so that the user can go to it and edit it
> instead of creating a new page
> - let the user type another page name
> - use getUniquePageName, which appends a number at the end
> - append the current date at the end
>

I like these ideas a lot. Having encountered this issue a number of times in my 
projects, these options would be nice to have.

> --
> 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


Re: [xwiki-users] Passing arguments to Groovy object constructor

2009-12-01 Thread Rieken, Joshua


> -Original Message-
> From: users-boun...@xwiki.org
> [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol
> Sent: Tuesday, December 01, 2009 2:55 PM
> To: XWiki Users
> Subject: Re: [xwiki-users] Passing arguments to Groovy object
> constructor
>
>
> On Dec 1, 2009, at 8:44 PM, Rieken, Joshua wrote:
>
> > Hello,
> >
> > Is it possible to pass arguments to a Groovy object
> instantiated using
> > xwiki.parseGroovyFromPage("Blah.Blah"), or is there some
> other way to
> > do it?
>
> BTW note that in XWiki Syntax 2.0 parseGroovyFromPage isn't needed.
> You can use the {{groovy}} and {{include}} macros instead.
>
> -Vincent

Thank you! This solved my issue. I was able to wrap the class in its own page 
with {{groovy}} {{/groovy}}, {{include}} that document, and create a new object 
with constructor arguments.

-Joshua

>
> ___
> 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] Passing arguments to Groovy object constructor

2009-12-01 Thread Rieken, Joshua


> -Original Message-
> From: users-boun...@xwiki.org
> [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
> Sent: Tuesday, December 01, 2009 2:39 PM
> To: XWiki Users
> Subject: Re: [xwiki-users] Passing arguments to Groovy object
> constructor
>
> Hi,
>
> On Tue, Dec 1, 2009 at 20:44, Rieken, Joshua
>  wrote:
> > Hello,
> >
> > Is it possible to pass arguments to a Groovy object
> instantiated using xwiki.parseGroovyFromPage("Blah.Blah"), or
> is there some other way to do it?
>
> You could have some init() methods in your groovy class to
> call when you have the objects.

Ah, yes, that will work for many uses. To be more specific, what I'm looking to 
do is create a class that extends groovy.io.File. A File does not have a 
constructor that takes zero arguments, so I was looking for a way to pass 
arguments when the object is created rather than calling an init(). Otherwise, 
I can't even instantiate the object without just hardcoding the path into the 
class, which is not a viable option.

Any suggestions?

Thanks,
Joshua

>
> >
> > Thanks,
> > Joshua
> >
> > ___
> > 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
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Testing framework within XWiki pages

2009-12-01 Thread Rieken, Joshua


> -Original Message-
> From: users-boun...@xwiki.org
> [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol
> Sent: Tuesday, December 01, 2009 12:45 PM
> To: XWiki Users
> Subject: Re: [xwiki-users] Testing framework within XWiki pages
>
> Hi Joshua,
>
> I worked a bit on this a few years ago. I started a
> Selenium-based test framework but the goal was to test
> functionally wiki pages.
> It's available here:
> http://code.xwiki.org/xwiki/bin/view/Applications/SeleniumApplication

Ah, excellent. Thanks for pointing that out, Vincent. The Selenium app will 
come in handy for certain scenarios, but I'll look into designing a testing 
framework for use within XWiki pages when working with scripts. I'll create a 
JIRA issue when I have a bit of time later.

Thanks,
Joshua


>
> Other than that I don't recall hearing anything similar to
> what you mention.
>
> Let us know how you progress!
>
> Thanks
> -Vincent
>
> On Dec 1, 2009, at 5:40 PM, Rieken, Joshua wrote:
>
> > Hello all,
> >
> > I've been desiring a testing framework to aid my
> development efforts
> > within XWiki pages. Specifically, I want to use test-driven
> > development so that I can write tests for scripts before I
> write the
> > scripts themselves.  These tests would be harnesses (possibly using
> > {{include document="Blah.Blah"}} and
> > xwiki.parseGroovyFromPage("Blah.Blah")) and would report passes /
> > failures / errors. There would also be a way to develop a suite of
> > tests to run all at once, xUnit style. Before taking the time to
> > develop this myself, has anyone developed something like
> this, or are
> > there any recommendations or code you could share?
> >
> > Thanks,
> > Joshua
> ___
> 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


[xwiki-users] Passing arguments to Groovy object constructor

2009-12-01 Thread Rieken, Joshua
Hello,

Is it possible to pass arguments to a Groovy object instantiated using 
xwiki.parseGroovyFromPage("Blah.Blah"), or is there some other way to do it?

Thanks,
Joshua

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


Re: [xwiki-users] Edit bug?

2009-12-01 Thread Rieken, Joshua
Hi Lewis,

> -Original Message-
> From: users-boun...@xwiki.org
> [mailto:users-boun...@xwiki.org] On Behalf Of Lewis Denizen
> Sent: Tuesday, December 01, 2009 11:51 AM
> To: XWiki Users
> Subject: [xwiki-users] Edit bug?
>
> Hi xwiki-users,
>
> When I browse to a new space
> (http://localhost/xwiki_root/bin/view/MySpace)
> and edit the page using the "edit this page" link, it
> forwards me to a different space:
> http://localhost/xwiki_root/bin/edit/view/MySpace).  It works
> when I browse to http://localhost/xwiki_root/bin/edit/MySpace/WebHome,
> but would be nice to have this fixed :-)  But great work
> stuff in XWiki 2.0.x!

You'll need to include the trailing /, like so:
http://localhost/xwiki_root/bin/view/MySpace/

It will then go to the correct page: MySpace.WebHome.

Hope this helps,
Joshua

>
> -- Lewis
> ___
> 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


[xwiki-users] Testing framework within XWiki pages

2009-12-01 Thread Rieken, Joshua
Hello all,

I've been desiring a testing framework to aid my development efforts within 
XWiki pages. Specifically, I want to use test-driven development so that I can 
write tests for scripts before I write the scripts themselves.  These tests 
would be harnesses (possibly using {{include document="Blah.Blah"}} and 
xwiki.parseGroovyFromPage("Blah.Blah")) and would report passes / failures / 
errors. There would also be a way to develop a suite of tests to run all at 
once, xUnit style. Before taking the time to develop this myself, has anyone 
developed something like this, or are there any recommendations or code you 
could share?

Thanks,
Joshua

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


Re: [xwiki-users] Changing the logo

2009-11-24 Thread Rieken, Joshua
Hi Maria,

What is the file size of your image?

-Joshua

> -Original Message-
> From: users-boun...@xwiki.org
> [mailto:users-boun...@xwiki.org] On Behalf Of Maria Carolina Ramirez
> Sent: Tuesday, November 24, 2009 4:43 PM
> To: XWiki Users
> Subject: Re: [xwiki-users] Changing the logo
>
> Hi,
>
> Well, the size of my image is 220 X 80
> The speed of my internet connection is fast for other content
> The speed of my wiki is fast
>
> Thanks in advance
>
> -Original Message-
> From: users-boun...@xwiki.org
> [mailto:users-boun...@xwiki.org] On Behalf Of Guillaume Lerouge
> Sent: Martes, 24 de Noviembre de 2009 05:27 p.m.
> To: XWiki Users
> Subject: Re: [xwiki-users] Changing the logo
>
> Hi Maria,
>
> On Tue, Nov 24, 2009 at 11:09 PM, Maria Carolina Ramirez <
> maria.carolinarami...@emida.net> wrote:
>
> > Hi everyone!
> >
> > I just change the logo of my xwiki but I don't  why, when
> the page is
> > loading, it takes several seconds loading the image. I followed the
> > instructions below:
> >
> > *   Choose an existing image or create a new one
> > *   Resize it so that it is 220 pixels wide and 80 pixels high
> > *   Save it as a PNG file and name it "logo.png"
> > *   Upload the image as an attachment in /
> > xwiki/bin/view/XWiki/DefaultSkin
> >
> > So, I want to know if this is the normal behavior.
> >
>
> The logo display speed depends on at least 3 things:
>
>- The size of your image -> how big is it?
>- The speed of your internet connection -> is it fast for
> other content?
>- The speed of your server's internet connection -> is the
> wiki loading
>fast overall?
>
> Normally once the logo has been displayed once it should be
> cached and display much faster. Is that what's happening for you?
>
> Guillaume
>
> Thanks in advance!
> >
> > MCR
> >
> >
> >
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
>
> --
> Guillaume Lerouge
> Product Manager - XWiki SAS
> Skype: wikibc
> Twitter: glerouge
> http://guillaumelerouge.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
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [ANN] XWiki Enterprise 2.1 Milestone 1 released

2009-11-19 Thread Rieken, Joshua


> -Original Message-
> From: users-boun...@xwiki.org
> [mailto:users-boun...@xwiki.org] On Behalf Of Guillaume Lerouge
> Sent: Thursday, November 19, 2009 11:27 AM
> To: XWiki Users
> Subject: Re: [xwiki-users] [ANN] XWiki Enterprise 2.1
> Milestone 1 released
>
> Hi,
>
> On Thu, Nov 19, 2009 at 6:22 PM, Ecaterina Valica
>  wrote:
>
> > On Thu, Nov 19, 2009 at 19:03, Sergiu Dumitriu
>  wrote:
> >
> > > On 11/19/2009 05:05 PM, Ecaterina Valica wrote:
> > > > not necessarily with a separator - but could in the
> last place -
> > > > as a
> > > final
> > > > action.
> > > >
> > > > another question is: we can simulate a Move action with
> the Rename
> > > > -
> > > would
> > > > be nice if we had this move action more explicit?
> > >
> > > What would be the difference between Move and Rename?
> > >
> >
> > IMO, Move is a spacial action that involves changing the
> wiki or the
> > space of a page, keeping it's current page name.
> > Rename involves changing the page name.
> >
>
> Indeed. A new "rename" action would only change the page name
> (leaving it in the same space) while the "move" would put it
> in another space...

Though I like the flexibility of the current Rename function, separating this 
into two distinct concepts--Move and Rename--is more intuitive, IMO.

-Joshua

>
> We can keep that in mind for later.
>
> Guillaume
>
>
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
>
> --
> Guillaume Lerouge
> Product Manager - XWiki SAS
> Skype: wikibc
> Twitter: glerouge
> http://guillaumelerouge.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] problem with FAQ tutorial .. space assignment?

2009-11-16 Thread Rieken, Joshua
t;>>>>> Subject
> >>>>>> Re: [xwiki-users] problem with FAQ tutorial .. space
> assignment?
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> On Nov 16, 2009, at 3:26 PM, mark_marzi...@bcbsil.com wrote:
> >>>>>>
> >>>>>>> Hi Vincent,
> >>>>>>>
> >>>>>>> Thanks for your help. I'm sure I'm doing something wrong. My
> >>>>>>> difficulty is in finding what it is I'm doing wrong.
> I'll review
> >>>>>>> the steps again, this time paying special attention to the
> >>>>>>> points you raised.
> >>>>>>>
> >>>>>>> It'd help if you could expand on " .. or have set up some
> >>>>>>> different configuration for the default wiki syntax for new
> >>>>>>> pages". I installed xwiki from scratch, then pulled in
> >>>>>>> xwiki-enterprise-wiki-2.0.xar, then started typing in the faq
> >>>>>>> example. If that somehow affected the configuration
> for default
> >>>>>>> wiki syntax, I'm not aware how.
> >>>>>>
> >>>>>> If you haven't touched the default config then all new
> pages are
> >>>>>> created in XWiki Syntax 2.0 by default, which is fine
> and matches
> >>>>>> the FAQ tutorial expectations.
> >>>>>>
> >>>>>> In
> >>>>>>
> >>>>>
> >>>>
> >>>
> >>
> >
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial#HCreatet
> > heFAQClass
> >
> >>
> >>>
> >>>>
> >>>>>
> >>>>>>
> >>>>>> , there's a step where you'll see:
> >>>>>> #set($defaultSpace = 'Main')
> >>>>>>
> >>>>>> As described, replace "Main" with the space where you want the
> >>>>>> docs to be created, for ex: "FAQ".
> >>>>>>
> >>>>>> Thanks
> >>>>>> -Vincent
> >>>>>>
> >>>>>>> Point noted on user contributed code.
> >>>>>>>
> >>>>>>> Thanks,
> >>>>>>> Mark
> >>>>>>>
> >>>>>>> BCBS-IL
> >>>>>>> ph 312-653-4293
> >>>>>>> mark_marzi...@bcbsil.com
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> Vincent Massol  Sent by:
> >>>>>>> users-boun...@xwiki.org
> >>>>>>> 11/16/2009 08:17 AM
> >>>>>>> Please respond to
> >>>>>>> XWiki Users 
> >>>>>>>
> >>>>>>>
> >>>>>>> To
> >>>>>>> XWiki Users 
> >>>>>>> cc
> >>>>>>>
> >>>>>>> Subject
> >>>>>>> Re: [xwiki-users] problem with FAQ tutorial .. space
> assignment?
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> Hi Mark,
> >>>>>>>
> >>>>>>> On Nov 16, 2009, at 2:42 PM, mark_marzi...@bcbsil.com wrote:
> >>>>>>>
> >>>>>>>> Hi Josh,
> >>>>>>>>
> >>>>>>>> Thanks for your reply and interest.
> >>>>>>>>
> >>>>>>>> Unfortunately I haven't been able to figure out what
> the heck
> >>>>>>>> I'm doing wrong in this relatively simple case. Beginning to
> >>>>>>>> look at alternative wikis.
> >>>>>>>>
> >>>>>>>> Definitely xwiki can be used to build 2.0 level of
> >>>>>>>> functionality, but it seems to me there's a little too much
> >>>>>>>>

Re: [xwiki-users] problem with FAQ tutorial .. space assignment?

2009-11-16 Thread Rieken, Joshua
> >>> -Joshua-
> >>>
> >>> mark_marzi...@bcbsil.com wrote:
> >>>> Hi Joshua,
> >>>>
> >>>> (I apologize to all if this appears more than once; I
> haven't been
> >>>> successful posting to the mailing list since before yesterday.
> >>>> Perhaps
> >>>> attachments are prohibited? Trying again without.)
> >>>>
> >>>> Thanks again, your explanation of spaces was very clear and
> >>>> helpful.
> >>>>
> >>>> Now that I have a little better understanding of spaces, I'll
> >>>> present my
> >>>
> >>>> problem. For some reason when I create a FAQ entry, it's
> not going
> >>>> into
> >>>> the FAQ space but instead into the Main space. Per the
> tutorial, I
> >>> haven't
> >>>> created a FAQ space explicitly this go round.
> >>>>
> >>>> It seems to me this can only be happening as a result of the code
> >>>> that
> >>>> adds a FAQ, or perhaps in the class definition code
> which specifies
> >>>> the
> >>>> default space. Looks right to me and jibes with what you've said
> >>>> about
> >>>> spaces. Here it is yanked directly out of my code .. which was
> >>>> simply a
> >>>> copy/paste from the tutorial:
> >>>>
> >>>> FAQClass code:
> >>>> {{velocity}}
> >>>> ## Replace Main with the Space where you want your
> documents to be
> >>>> created.
> >>>> ## Replace the default parent with the one of your
> choice and save
> >>>> the
> >>>> document.
> >>>> ##
> >>>> #set($className = $doc.name.substring(0,
> >>>> $doc.name.indexOf("Class")))
> >>>> #set($defaultParent = 'FAQ.WebHome')
> >>>> #set($defaultSpace = 'FAQ')
> >>>> {{/velocity}}
> >>>>
> >>>> {{include document="XWiki.ClassSheet"/}}
> >>>>
> >>>> FAQTemplate code:
> >>>> {{include document="FAQ.FAQSheet"/}}
> >>>>
> >>>> FAQ WebHome code (
> >>> http://localhost/xwiki/bin/edit/FAQ/WebHome?&editor=wiki
> >>>> ):
> >>>> = Existing FAQ entries =
> >>>>
> >>>> {{velocity}}
> >>>> #set($sql = ", BaseObject as obj where obj.name=doc.fullName and
> >>>> obj.className='FAQ.FAQClass' and obj.name<>'FAQ.FAQTemplate'")
> >>>> #set($results = $xwiki.searchDocuments($sql))
> >>>> #if($results.empty)
> >>>> No FAQ has been created yet!
> >>>> #else
> >>>> #foreach ($item in $results)
> >>>> #set($faq = $xwiki.getDocument($item))
> >>>> * [[${faq.display("question").replace("", "").replace("",
> >>>> "")}>>${item}]]
> >>>> #end
> >>>> #end
> >>>> {{/velocity}}
> >>>>
> >>>> {{velocity}}
> >>>> #if("$!request.docName" != '')
> >>>> ## Request for creating a new instance
> >>>> #set($targetDocName = "${request.spaceName}.${request.docName}")
> >>>> #set($targetDocName = $targetDocName.replace("?",
> "").replace("#",
> >>>> "").trim())
> >>>> #if(!$xwiki.exists($targetDocName) &&
> $xwiki.hasAccessLevel('edit',
> >>>> $context.user, $targetDocName))
> >>>>  $response.sendRedirect($xwiki.getURL($targetDocName, 'inline',
> >>>> "template=${request.template}&parent=${request.parent}"))
> >>>>  ## Stop processing, since we already sent a redirect.
> >>>>  #stop
> >>>> #end
> >>>> #end
> >>>>
> >>>> = Add a new question =
> >>>>
> >>>> #if("$!targetDocName" != '' && $xwiki.exists($targetDocName))
> >>>> {{warning}}The target document already exists. Please choose a
> >>> different
> >>>> name, or [[view the existing
> document>>$targetDocName]]{{/warning}}
> >>>> #elseif("$!targetDocName" != &

Re: [xwiki-users] problem with FAQ tutorial .. space assignment?

2009-11-16 Thread Rieken, Joshua


> -Original Message-
> From: users-boun...@xwiki.org
> [mailto:users-boun...@xwiki.org] On Behalf Of Valdis Vitolinš
> Sent: Monday, November 16, 2009 9:48 AM
> To: XWiki Users
> Subject: Re: [xwiki-users] problem with FAQ tutorial .. space
> assignment?
>
> > I've been told the url http://localhost/xwiki/bin/view/FAQ/ is
> > equivalent to http://localhost/xwiki/bin/view/FAQ/WebHome/
> but I'm a
> > little shaky on that point.
>
>
> For Xwiki tailing slash is the same as WebHome page. So
> description above is not correct.
> Correct explanation is following:
> http://localhost/xwiki/bin/view/FAQ/ is the same as
> http://localhost/xwiki/bin/view/FAQ/WebHome without tailing slash.
> For other pages URL always finishes with Pagename, not slash, e.g.
> http://localhost/xwiki/bin/view/FAQ/Page1
> http://localhost/xwiki/bin/view/FAQ/Page2 etc.
>
> http://localhost/xwiki/bin/view/FAQ/WebHome/ is the same as
> http://localhost/xwiki/bin/view/FAQ/WebHome/WebHome
> (in this case 1st "WebHome" is space under "Main" space, but
> 2nd "WebHome" is page in "WebHome" space).

I don't think this is correct. I just tried navigating to 
http://localhost/xwiki/bin/view/FAQ/WebHome/ in my installation and was brought 
to http://localhost/xwiki/bin/view/FAQ/WebHome. The trailing slash seems to 
have been ignored.

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

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


Re: [xwiki-users] problem with FAQ tutorial .. space assignment?

2009-11-10 Thread Rieken, Joshua
Mark,

You're very welcome. It's not necessary to explicitly create the WebHome in FAQ 
until later in the tutorial. Question/Answer documents that are created from 
the FAQ Class page will go into the FAQ space, which "comes into existence" the 
instant any document is placed in it.

For example, if you add a question/answer page called "FAQ.Howtoeditapage", you 
can still get to it regardless of whether "FAQ.WebHome" exists.

A space "disappears" when every document that is part of the space is deleted. 
So a space is just a collection of documents and doesn't really exist outside 
of those documents. It's really just a convenient way to organize your 
documents.

Good luck, and if you have any more questions, please don't hesitate to ask.

-Joshua-

> -Original Message-
> From: users-boun...@xwiki.org
> [mailto:users-boun...@xwiki.org] On Behalf Of mark_marzi...@bcbsil.com
> Sent: Tuesday, November 10, 2009 3:31 PM
> To: XWiki Users
> Cc: XWiki Users; users-boun...@xwiki.org
> Subject: Re: [xwiki-users] problem with FAQ tutorial .. space
> assignment?
>
> Hi Joshua,
>
> Thanks very much for your prompt reply. It helps a lot to
> know the history and what WebHome means!
>
> Am I correct then in first creating the FAQ space explicitly,
> even though that's not called for in the tutorial? Like so:
>
> "I've first created the FAQ Space, then built the FAQ Class,
> etc, then put the code into the 'home' page for the space, ie
> http://localhost/xwiki/bin/view/FAQ/";
>
>
> Thanks,
> Mark
>
> BCBS-IL
> ph 312-653-4293
> mark_marzi...@bcbsil.com
>
>
>
>
>
> "Rieken, Joshua" 
> Sent by: users-boun...@xwiki.org
> 11/10/2009 03:18 PM
> Please respond to
> XWiki Users 
>
>
> To
> XWiki Users 
> cc
>
> Subject
> Re: [xwiki-users] problem with FAQ tutorial .. space assignment?
>
>
>
>
>
>
> Hi Mark,
>
> http://localhost/xwiki/bin/view/FAQ/ actually takes you to
> http://localhost/xwiki/bin/view/FAQ/WebHome. "WebHome" is the
> home page
> for any given space. The name "WebHome" came from earlier versions of
> XWiki, when a Space was called a Web.
>
> Hope this helps,
> -Joshua-
>
> > -Original Message-
> > From: users-boun...@xwiki.org
> > [mailto:users-boun...@xwiki.org] On Behalf Of
> mark_marzi...@bcbsil.com
> > Sent: Tuesday, November 10, 2009 3:06 PM
> > To: users@xwiki.org
> > Subject: [xwiki-users] problem with FAQ tutorial .. space
> assignment?
> >
> > Hi,
> >
> > I've followed along in the tutorial in the dev guide for
> > creating a FAQ at
> > http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial
> >
> > Here's my first point of confusion: in section 'Create a
> > homepage for your application' it states 'Go to the
> > "FAQ.WebHome" page'. I do not see such a page. In the latest
> > iterations of building the FAQ I've first created the FAQ
> > Space, then built the FAQ Class, etc, then put the code into
> > the 'home' page for the space, ie
> http://localhost/xwiki/bin/view/FAQ/
> >
> > I'm sure my problems stem from my weak understanding of this
> > step and how spaces are created and referenced.
> >
> > Thanks,
> > Mark
> >
> > BCBS-IL
> > ph 312-653-4293
> > mark_marzi...@bcbsil.com
> >
> >
> >
> > HCSC Company Disclaimer
> >
> > The information contained in this communication is
> > confidential, private,
> > proprietary, or otherwise privileged and is intended only for
> > the use of
> > the addressee.  Unauthorized use, disclosure, distribution or
> > copying is
> > strictly prohibited and may be unlawful.  If you have received this
> > communication in error, please notify the sender
> immediately at (312)
> > 653-6000 in Illinois; (800)835-8699 in New Mexico; (918)560-3500 in
> > Oklahoma; or (972)766-6900 in Texas.
> > ___
> > 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
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] problem with FAQ tutorial .. space assignment?

2009-11-10 Thread Rieken, Joshua
Hi Mark,

http://localhost/xwiki/bin/view/FAQ/ actually takes you to 
http://localhost/xwiki/bin/view/FAQ/WebHome. "WebHome" is the home page for any 
given space. The name "WebHome" came from earlier versions of XWiki, when a 
Space was called a Web.

Hope this helps,
-Joshua-

> -Original Message-
> From: users-boun...@xwiki.org
> [mailto:users-boun...@xwiki.org] On Behalf Of mark_marzi...@bcbsil.com
> Sent: Tuesday, November 10, 2009 3:06 PM
> To: users@xwiki.org
> Subject: [xwiki-users] problem with FAQ tutorial .. space assignment?
>
> Hi,
>
> I've followed along in the tutorial in the dev guide for
> creating a FAQ at
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial
>
> Here's my first point of confusion: in section 'Create a
> homepage for your application' it states 'Go to the
> "FAQ.WebHome" page'. I do not see such a page. In the latest
> iterations of building the FAQ I've first created the FAQ
> Space, then built the FAQ Class, etc, then put the code into
> the 'home' page for the space, ie http://localhost/xwiki/bin/view/FAQ/
>
> I'm sure my problems stem from my weak understanding of this
> step and how spaces are created and referenced.
>
> Thanks,
> Mark
>
> BCBS-IL
> ph 312-653-4293
> mark_marzi...@bcbsil.com
>
>
>
> HCSC Company Disclaimer
>
> The information contained in this communication is
> confidential, private,
> proprietary, or otherwise privileged and is intended only for
> the use of
> the addressee.  Unauthorized use, disclosure, distribution or
> copying is
> strictly prohibited and may be unlawful.  If you have received this
> communication in error, please notify the sender immediately at (312)
> 653-6000 in Illinois; (800)835-8699 in New Mexico; (918)560-3500 in
> Oklahoma; or (972)766-6900 in Texas.
> ___
> 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] Color Theme Changes Ignored in 2.0.2

2009-10-27 Thread Rieken, Joshua
Hi Andy,

Could this be your issue?
http://jira.xwiki.org/jira/browse/XSCOLIBRI-50

If so, it is fixed and should work in 2.0.3:
http://jira.xwiki.org/jira/browse/XWIKI-4523

Best,
-Joshua-

> -Original Message-
> From: users-boun...@xwiki.org
> [mailto:users-boun...@xwiki.org] On Behalf Of Andreas Schaefer
> Sent: Tuesday, October 27, 2009 11:19 AM
> To: XWiki Users
> Subject: [xwiki-users] Color Theme Changes Ignored in 2.0.2
>
> Hi
>
> I upgraded to 2.0.2 without a problem (http://madplanet.com/xwiki).
> The only issue I encountered so far is that I am not able to
> change the 'Color Theme' in the Administration ->
> Presentation even though I use the Colibri skin as my default skin.
>
> This does not work for the entire Wiki nor for a particular Space.
> That said I can access the Color Themes in the ColorThemes
> space and the look and feel looks right.
>
> Any idea why?
>
> Thanks - Andy
> ___
> 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] newbie question: How change 'Welcome to your Wiki' text?

2009-10-23 Thread Rieken, Joshua
Hi Mark,

What you call a "key":

$msg.get("xe.home.title")

is actually a Velocity variable. See here:

http://velocity.apache.org/engine/devel/vtl-reference-guide.html


Good luck,
-Joshua-

> -Original Message-
> From: users-boun...@xwiki.org
> [mailto:users-boun...@xwiki.org] On Behalf Of mark_marzi...@bcbsil.com
> Sent: Friday, October 23, 2009 2:14 PM
> To: XWiki Users
> Subject: Re: [xwiki-users] newbie question: How change
> 'Welcome to your Wiki' text?
>
> Hi Marius,
>
> Thanks very much! I did see $msg.get("xe.home.title") but I
> was reluctant to plug a literal in, I figured it would be
> used as a key and I couldn't
> (can't) see where the key is resolved. I guess if the literal
> doesn't work as a key, it's used raw.
>
> Thanks again,
> Mark
>
>
>
>
>
> Marius Dumitru Florea  Sent
> by: users-boun...@xwiki.org
> 10/23/2009 02:04 PM
> Please respond to
> XWiki Users 
>
>
> To
> XWiki Users 
> cc
>
> Subject
> Re: [xwiki-users] newbie question: How change 'Welcome to
> your Wiki' text?
>
>
>
>
>
>
> Hi Mark,
>
> mark_marzi...@bcbsil.com wrote:
> > Hi,
> >
> > Like to change 'Welcome to your Wiki' on WebHome to something else.
> >
> > Sorry, just can't see how to do it. Editing the page
> doesn't bring up
> > anything obvious. Poked around in header.vm and other
> templates. Not
> > seeing it.
>
> In edit mode there is a "Title" input above the text area.
> Replace the
> current text:
>
> $msg.get("xe.home.title")
>
> with your own title. The current title ("Welcome to your
> Wiki") is not
> used directly because it's translated in many languages and
> $msg.get(key) retrieves the translation for the current language.
>
> Hope this helps,
> Marius
>
> >
> > Do I have to wade into building or modifying the skin for
> this sort of a
>
> > change?
> >
> > Thanks,
> > Mark
> >
> >
> >
> >
> > HCSC Company Disclaimer
> >
> > The information contained in this communication is confidential,
> private,
> > proprietary, or otherwise privileged and is intended only
> for the use of
> > the addressee.  Unauthorized use, disclosure, distribution
> or copying is
> > strictly prohibited and may be unlawful.  If you have received this
> > communication in error, please notify the sender
> immediately at (312)
> > 653-6000 in Illinois; (800)835-8699 in New Mexico; (918)560-3500 in
> > Oklahoma; or (972)766-6900 in Texas.
> > ___
> > 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
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] XWiki book

2009-10-14 Thread Rieken, Joshua
Is anyone working on an XWiki book and can tell us about it? :-) I think the 
current documentation improvement efforts are great, but what we really need is 
a good book that ties together XWiki capabilities with up-to-date examples.

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


Re: [xwiki-users] [ANN] XWiki Enterprise 2.0.1 and XWiki Enterprise Manager 2.0.1 Released

2009-10-14 Thread Rieken, Joshua
Nice! This fixed a few bugs I've been experiencing, mostly in the new WYSIWYG 
editor. Great job, everyone!

-Joshua-

> -Original Message-
> From: users-boun...@xwiki.org
> [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
> Sent: Wednesday, October 14, 2009 1:29 PM
> To: XWiki Developers; XWiki Users
> Subject: [xwiki-users] [ANN] XWiki Enterprise 2.0.1 and XWiki
> Enterprise Manager 2.0.1 Released
>
> The XWiki development team is pleased to announce the release
> of XWiki Enterprise 2.0.1 and XWiki Enterprise Manager 2.0.1.
>
> Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download
>
> This is a bugfixes an improvements release.
>
> 83 Jira issues has been closed for this release since 2.0 release.
>
> Changes since 2.0
>
> * Rendering improvements and bugfixes
> * WYSIWYG improvements and bugfixes
> * Colibri skin improvements and bugfixes
> * Watchlist improvements and bugfixes
> * many others bugfixes
>
> For more information see the Release notes at:
> http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnte
> rprise201
> and http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXEM201.
>
> Thanks
> -The XWiki dev team
> ___
> 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] [Vote] New colors for the XWiki.org websites

2009-10-13 Thread Rieken, Joshua
+.75 for both [2] and [3]

> -Original Message-
> From: users-boun...@xwiki.org
> [mailto:users-boun...@xwiki.org] On Behalf Of Guillaume Lerouge
> Sent: Tuesday, October 13, 2009 8:59 AM
> To: XWiki Developers; XWiki Users
> Subject: [xwiki-users] [Vote] New colors for the XWiki.org websites
>
> Hi XWikiers,
> after a long discussion on the dev list we eventually
> narrowed down the new colors for XWiki.org to 3 options (see
> http://markmail.org/thread/2b3io6wv4yzr324q for details):
>
>- [1] Pastel:
>
> http://incubator.myxwiki.org/xwiki/bin/view/ColorThemes/XWORKS
> PACES2/#Attachments
>- [2] Dark borders:
>
> http://incubator.myxwiki.org/xwiki/bin/view/ColorThemes/PlainB
> lue/#Attachments
>- [3] Grey borders:
>
> http://incubator.myxwiki.org/xwiki/bin/view/ColorThemes/XWATCH
> 7/#Attachments
>
> Each of these proposals is a set of colors that would be
> declined on the various subwikis of the XWiki.org farm.
>
> Please vote for the one you like best.
>
> I'm +1 for [1]
>
> Thanks for your feedback,
> Guillaume
>
> --
> Guillaume Lerouge
> Product Manager - XWiki SAS
> Skype: wikibc
> Twitter: glerouge
> http://guillaumelerouge.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


[xwiki-users] XWiki request object argument list

2009-10-08 Thread Rieken, Joshua
Hi again,

Is there a way to programmatically get a list of all arguments in an HTTP 
request?
I know you can access each argument if you know its name (e.g., 
request.confirm), but
is there a way to get a container of all provided arguments?

Thanks,
-Joshua-
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Browse button in a macro

2009-10-01 Thread Rieken, Joshua
Greetings,

I would like to add a "Browse..." button to a macro like the one in the Image 
dialogue that lets the users choose a directory. Is there a way to do this 
using macros in wiki pages, or do I need to write Java?

Thanks.

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


[xwiki-users] [xwiki-devs] Who can design nice and unique color themes for xwiki.org

2009-09-29 Thread Rieken, Joshua
Caty,

I like Proposal 7 the best. The last one could use a darker shade of green, but 
the other 3 are simple and elegant IMO.

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


[xwiki-users] XE and Platform Developers' Most Desired Fixes

2009-09-29 Thread Rieken, Joshua
Hello all,

I enjoyed perusing the Features Survey Results, and I have a related request. 
I'm looking for the major XE and Platform contributors to give their opinions 
on which features absolutely must be fixed / added within a reasonable amount 
of time. I'm already aware of one-- easy deletion of class properties. Are 
there any others that a potential contributor could try to fix that are biggers 
challenges than Paper Cuts, but are still managable?

Thanks,
Joshua
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] XWiki Enterprise and XWiki Enterprise Manager 2.0 released

2009-09-25 Thread Rieken, Joshua
The new release looks great! Thank you for all the hard work, and I look 
forward to contributing as well!

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


[xwiki-users] 2.0 RC2 - Spaces list not sorted

2009-09-22 Thread Rieken, Joshua
Hello,

The spaces list ($xwiki.getSpaces()) appears to be unsorted in 2.0 RC2. I 
upgraded my WAR from 1.9.3. Is this known and, if so, is there a workaround?

Thank you,
Joshua
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users