Hi All,
I'm starting to have a look at groovy scripting in xwiki and have a couple
of basic questions:
In the example below (from xwiki.org)
<%
def foo(list, value)
{
println "Calling function foo() with param ${value} <br>";
list << value;
}
x = [];
foo(x, 1);
foo(x, 2);
foo(x, 3);
foo(x, 4);
println "Creating list ${x}";
%>
1) does the groovy variable ${value} get translated before the velocity
${value} (if defined) or vice versa?
2) I tried the example and get the following result:
Calling function foo() with param 1
Calling function foo() with param 2
Calling function foo() with param 3
Calling function foo() with param 4
Creating list 1, 2, 3, 4?
where the "1, 2, 3, 4?" is a link to "1,+2,+3,+4". I assume the output from
groovy is then processed by the xwiki syntax?
Thanks
Duke
Hi,
I'm using v0.9.840 with j2sdk-1.4.2_06 authenticating against OpenLDAP. It works but for the known problem where "Login of local XWiki user (not in LDAP) doesn't work when LDAP auth used" [bug, key: XWIKI-72]; So, I'd like to try the code patch provided on that jira page.
However, I'm just an admin and tho I installed ant and downloaded the xwiki source code (and placed that .diff patch next to its target), I didn't get very far out the door:
[no@nowhere xwikisrc]$ ant -debug
Buildfile: build.xml
BUILD FAILED
/home/no/xwikisrc/build.xml:126: taskdef A class needed by class org.apache.cactus.integration.ant.CactusTask cannot be found: junit/framework/Test
I read-up on this and figure that I need junit and maybe to learn ant, but at this point I must ask:
if I start using this patched version will I go down an un-upgradable branch of code and hose my content when I upgrade next?
can I just switch out the existing LDAPAuthServiceImpl.class in my xwiki install with a patched version without having to rebuild the whole app?
and, can anyone point me to an XWIKI-72-patched version of that class b/c I see that merely javac'ing the LDAPAuthServiceImpl.java file doesn't work (cannot resolve symbol errors :)
...if the answer to all of these is "no" I'll just keep trying to build from source, so not too much hand holding needed.
thanks for your help,
Ken
Has anyone seen this issue before? In one particular document (a tutorial
I am trying to write for the XWiki docs), when I click Edit, I get a new
view (no left or right-hand toolbars) - but the document does not display
an edit field or Save button. It seems to be in render mode still (even
though the nature of the view changes somewhat). If I roll back a version,
it works proper. What I had added that seems to break it is some velocity
code inside the {code:xml}...{code} tag.
I am using #\ and $\ to escape Velocity characters inside the code tag.
Any ideas?
Also, does anyone know why I can view page code by adding the URL paramer
raw=1 or xpage=1? What is the difference in the two parameters and why
would I choose one over another if I needed to view page code? The first
question is more important; this one is just an aside.
==================================
Cody Burleson
Does anyone know how, through scripting, we may be able to identify that a
user is in a particular group? Here's what I am trying to do:
I want to permission some wiki spaces to particular groups only.
But I also need to have some pages link to those spaces that are more
public.
I would like to write some script to render or hide links based on whether
or not the authenticated user is in a given group.
Thanks in advance for your help, and thanks for all the help given thus
far.
==================================
Cody Burleson
Hi All,
What does it mean when the #includeTopic has "xwiki:" before the page name?
For example, #includeTopic("xwiki:Dev.GroovyShowHeaders")
Thanks.
Duke
Is there a feature (perhaps somewhat hidden that I haven't noticed) that
could allow users to "watch" for changes on content and recieve email
notifications? If not, would this feature be useful to more than just
myself? Would it be most appropriate as a plug-in or would it be best
developed using scripting at the presentation layer?
==================================
Cody Burleson
Yes, "Main_WebHome.mm" is the name of the attached mindmap.
Could there be an authentication conflict with how the file is getting attached
and the DNS service?
-----Original Message-----
From: jeremi joslin [mailto:jeremi23@gmail.com]
Sent: Thursday, September 08, 2005 4:25 PM
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users] sitemap
I have no ideas!
is "Main_WebHome.mm" is the name of your attached mindmap?
Jérémi
On 9/8/05, Lichman, Mark Eugene <MLICHMAN(a)partners.org> wrote:
> Using a DNS entry (http://lcswiki will load the main xwiki page), tomcat is
set
> on port 80. The sites main url is:
"http://lcswiki/xwiki/bin/view/Main/WebHome".
>
> -----Original Message-----
> From: jeremi joslin [mailto:jeremi23@gmail.com]
> Sent: Thursday, September 08, 2005 4:15 PM
> To: xwiki-users(a)objectweb.org
> Subject: Re: [xwiki-users] sitemap
>
>
> are you sure it's the good URL?
> Are you on the port 8080?
>
> Jérémi
> On 9/8/05, Lichman, Mark Eugene <MLICHMAN(a)partners.org> wrote:
> > Thanks for this, looks great on the runners site.
> >
> > When trying this out I get the popup message:
> > Could not load map at
> > URL:"http://lcswiki/xwiki/bin/download/Main/MindMap/Main_WebHome.mm"
> > (Sorry, intranet only)
> >
> > Once I click OK in the popup and then update, it does correctly attach a
file
> to
> > the page and I can view this file in Freemind and it looks correct in
Freemind
> > but does not display within the wiki.
> >
> > What am I doing wrong? This looks like a great feature and I'd love to get
it
> > working on my site.
> >
> > Please help.
> >
> > Thanks,
> >
> > - Mark
> >
> > -----Original Message-----
> > From: jeremi joslin [mailto:jeremi23@gmail.com]
> > Sent: Saturday, September 03, 2005 4:08 PM
> > To: xwiki-users(a)objectweb.org
> > Subject: Re: [xwiki-users] sitemap
> >
> >
> > On 9/3/05, Cody Burleson <cburleso(a)us.ibm.com> wrote:
> > >
> > > Could you also try to document how to use the code your posted for the
> benefit
> > of all? An ideal format would be:
> > >
> > > 1. How to use the code
> > > 2. The code (snippet)
> > > 3. A working example (preview) of the results
> > >
> >
> > Done
> >
> >
> >
> > --
> > portable : 06.73.20.11.49
> > http://www.jeremi.info
> > http://www.xwiki.com - http://www.moovement.com
> > skype: jeremi23
> >
> >
> >
> >
> >
> > --
> > You receive this message as a subscriber of the xwiki-users(a)objectweb.org
> mailing list.
> > To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
> > For general help: mailto:sympa@objectweb.org?subject=help
> > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> >
> >
> >
>
>
> --
> portable : 06.73.20.11.49
> http://www.jeremi.info
> http://www.xwiki.com - http://www.moovement.com
> skype: jeremi23
>
>
>
>
>
> --
> You receive this message as a subscriber of the xwiki-users(a)objectweb.org
mailing list.
> To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
> For general help: mailto:sympa@objectweb.org?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>
--
portable : 06.73.20.11.49
http://www.jeremi.infohttp://www.xwiki.com - http://www.moovement.com
skype: jeremi23
Using a DNS entry (http://lcswiki will load the main xwiki page), tomcat is set
on port 80. The sites main url is: "http://lcswiki/xwiki/bin/view/Main/WebHome".
-----Original Message-----
From: jeremi joslin [mailto:jeremi23@gmail.com]
Sent: Thursday, September 08, 2005 4:15 PM
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users] sitemap
are you sure it's the good URL?
Are you on the port 8080?
Jérémi
On 9/8/05, Lichman, Mark Eugene <MLICHMAN(a)partners.org> wrote:
> Thanks for this, looks great on the runners site.
>
> When trying this out I get the popup message:
> Could not load map at
> URL:"http://lcswiki/xwiki/bin/download/Main/MindMap/Main_WebHome.mm"
> (Sorry, intranet only)
>
> Once I click OK in the popup and then update, it does correctly attach a file
to
> the page and I can view this file in Freemind and it looks correct in Freemind
> but does not display within the wiki.
>
> What am I doing wrong? This looks like a great feature and I'd love to get it
> working on my site.
>
> Please help.
>
> Thanks,
>
> - Mark
>
> -----Original Message-----
> From: jeremi joslin [mailto:jeremi23@gmail.com]
> Sent: Saturday, September 03, 2005 4:08 PM
> To: xwiki-users(a)objectweb.org
> Subject: Re: [xwiki-users] sitemap
>
>
> On 9/3/05, Cody Burleson <cburleso(a)us.ibm.com> wrote:
> >
> > Could you also try to document how to use the code your posted for the
benefit
> of all? An ideal format would be:
> >
> > 1. How to use the code
> > 2. The code (snippet)
> > 3. A working example (preview) of the results
> >
>
> Done
>
>
>
> --
> portable : 06.73.20.11.49
> http://www.jeremi.info
> http://www.xwiki.com - http://www.moovement.com
> skype: jeremi23
>
>
>
>
>
> --
> You receive this message as a subscriber of the xwiki-users(a)objectweb.org
mailing list.
> To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
> For general help: mailto:sympa@objectweb.org?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>
--
portable : 06.73.20.11.49
http://www.jeremi.infohttp://www.xwiki.com - http://www.moovement.com
skype: jeremi23
Thanks for this, looks great on the runners site.
When trying this out I get the popup message:
Could not load map at
URL:"http://lcswiki/xwiki/bin/download/Main/MindMap/Main_WebHome.mm"
(Sorry, intranet only)
Once I click OK in the popup and then update, it does correctly attach a file to
the page and I can view this file in Freemind and it looks correct in Freemind
but does not display within the wiki.
What am I doing wrong? This looks like a great feature and I'd love to get it
working on my site.
Please help.
Thanks,
- Mark
-----Original Message-----
From: jeremi joslin [mailto:jeremi23@gmail.com]
Sent: Saturday, September 03, 2005 4:08 PM
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users] sitemap
On 9/3/05, Cody Burleson <cburleso(a)us.ibm.com> wrote:
>
> Could you also try to document how to use the code your posted for the benefit
of all? An ideal format would be:
>
> 1. How to use the code
> 2. The code (snippet)
> 3. A working example (preview) of the results
>
Done
--
portable : 06.73.20.11.49
http://www.jeremi.infohttp://www.xwiki.com - http://www.moovement.com
skype: jeremi23
Hello all.
I'm a new xwiki user (and I'll hope to stay a happy xwiki user).
I wanted to install XWiki on my postgresql database. It was not as easy
as I was thinking (but I managed to do it indeed). XWiki runs on my
Tomcat 5.5.11 installation rather well, but I've got the following
message in my catalina.out logfile:
20:32:43,236 WARN TP-Processor28 RequestUtils:createActionForm:177 -
No FormBeanConfig found under 'skin'
20:32:43,248 WARN TP-Processor20 RequestUtils:createActionForm:177 -
No FormBeanConfig found under 'skin'
20:32:43,272 WARN TP-Processor20 RequestUtils:createActionForm:177 -
No FormBeanConfig found under 'skin'
20:32:43,309 WARN TP-Processor28 RequestUtils:createActionForm:177 -
No FormBeanConfig found under 'skin'
20:32:43,455 WARN TP-Processor20 RequestUtils:createActionForm:177 -
No FormBeanConfig found under 'skin'
Well it works, I don't really mind but wonder how can this be resolved.
More anoying, those messages:
20:59:04,424 WARN TP-Processor9 RequestUtils:createActionForm:177 - No
FormBeanConfig found under 'login'
20:59:04,657 WARN TP-Processor9 RequestUtils:createActionForm:177 - No
FormBeanConfig found under 'view'
...
20:59:05,633 ERROR TP-Processor9
http://zorel.org/xwiki/bin/view/Main/WebHome AssertionFailure:<init>:22
- an assertion failure occured (this may indicate a
bug in Hibernate, but is more likely due to unsafe use of the session)
org.hibernate.AssertionFailure: possible nonthreadsafe access to session
at
org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:68)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:239)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:223)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:141)
...
com.xpn.xwiki.XWikiException: Error number 3213 in 3: Exception while
deleting object XWiki.Admin
Wrapped Exception: possible nonthreadsafe access to session
at
com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiCollection(XWikiHibernateStore.java:986)
at
com.xpn.xwiki.stats.impl.XWikiStatsServiceImpl.notify(XWikiStatsServiceImpl.java:209)
at
com.xpn.xwiki.notify.XWikiActionRule.verify(XWikiActionRule.java:51)
...
Wrapped Exception:
org.hibernate.AssertionFailure: possible nonthreadsafe access to session
at
org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:68)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:239)
...
20:59:08,673 WARN Finalizer JDBCContext:finalize:333 -
afterTransactionCompletion() was never called
This message arise when I lon on (the logon works, I'm authenticated).
I'm using jdk1.5.0, tomcat 5.5.11 and XWiki Version 0.9.840.
It seems to come from a misconfiguration of hibernate, but for postgres
I've only change the Driver and the Dialect.
Could some give me a help on this?
Regards.
--
Aurélien DEHAY