Nope: both method doesn't work with velocity macro...
Do you want a nice xar to check? Then where I can upload it? in Jira?
--- En date de : Lun 14.9.15, vincent(a)massol.net <vincent(a)massol.net> a écrit :
> De: vincent(a)massol.net <vincent(a)massol.net>
> Objet: Re: [xwiki-users] Fw : Include & Co board effect
> À: "XWiki Users" <users(a)xwiki.org>
> Cc: pbasnews-xwiki(a)yahoo.fr
> Date: Lundi 14 septembre 2015, 14h00
> #yiv5668446636
> body{font-family:Helvetica,
> Arial;font-size:13px;}Hi Pascal,
> You should use {{include}}
> for transclusions and {{display}} for inserting the result
> of the execution of some page.
> Thanks-Vincent
>
> On 10 Sep 2015 at 11:26:25,
> Pascal BASTIEN (pbasnews-xwiki(a)yahoo.fr)
> wrote: NB: new
> include function {{include
> reference="BacASable.Page"
> type="document" /}} doesn't work well when
> target page contains a velocity macro
>
> If target page contains a macro velocity
> (#macro( foo $color ), the main page containing
> "include reference" can't call foo macro.
>
> (with includeInContext it's working)
>
>
>
> --- En date de : Jeu 10.9.15, Pascal
> BASTIEN <pbasnews-xwiki(a)yahoo.fr> a écrit :
>
>
>
> > De: Pascal BASTIEN
> <pbasnews-xwiki(a)yahoo.fr>
>
> > Objet: [xwiki-users] Include & Co
> board effect
>
> > À: "XWiki Users"
> <users(a)xwiki.org>
>
> > Date: Jeudi 10 septembre 2015, 10h33
>
> > Hello,
>
> >
>
> > In my velocity script I try to include
> some velocity code
>
> > from another page.
>
> > I want similare function like
> "source" in bash, it's like
>
> > copy/paste some code in main script
> from another file.
>
> > I read
> https://network.xwiki.com/xwiki/bin/view/DocXE31Fr/IncludeInVelocity
>
> > and use
> #includeInContext("mySpace.myPage") but there
>
> > are board effect:
>
> > #includeInContext return HTML code
> like this
>
> > <p>I call
> MyMacro<br/><p>My color is
>
> > Red</p>...
>
> > Then to obtain what I want I must user
> html tag:
>
> > {{html}}
>
> >
> #includeInContext("mySpace.myPage")
>
> > {{/html}}
>
> >
>
> > Is it normal?
>
> >
>
> >
>
> > Thxs,
>
> >
>
> > Pascal B
>
> >
> _______________________________________________
>
> > users mailing list
>
> > users(a)xwiki.org
>
> >
> http://lists.xwiki.org/mailman/listinfo/users
>
> >
>
> _______________________________________________
>
> users mailing list
>
> users(a)xwiki.org
>
> http://lists.xwiki.org/mailman/listinfo/users
>
>
NB: new include function {{include reference="BacASable.Page" type="document" /}} doesn't work well when target page contains a velocity macro
If target page contains a macro velocity (#macro( foo $color ), the main page containing "include reference" can't call foo macro.
(with includeInContext it's working)
--- En date de : Jeu 10.9.15, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr> a écrit :
> De: Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>
> Objet: [xwiki-users] Include & Co board effect
> À: "XWiki Users" <users(a)xwiki.org>
> Date: Jeudi 10 septembre 2015, 10h33
> Hello,
>
> In my velocity script I try to include some velocity code
> from another page.
> I want similare function like "source" in bash, it's like
> copy/paste some code in main script from another file.
> I read https://network.xwiki.com/xwiki/bin/view/DocXE31Fr/IncludeInVelocity
> and use #includeInContext("mySpace.myPage") but there
> are board effect:
> #includeInContext return HTML code like this
> <p>I call MyMacro<br/><p>My color is
> Red</p>...
> Then to obtain what I want I must user html tag:
> {{html}}
> #includeInContext("mySpace.myPage")
> {{/html}}
>
> Is it normal?
>
>
> Thxs,
>
> Pascal B
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
Hi,
I need to modify an XWiki application to add some functionality, but I
am new to XWiki and I am having a really hard time understanding it.
I'm running XWiki Enterprise 7.1.2. The FAQ application tutorial
<http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorialManual>
looks promising, but the instructions are outdated and I can't figure
out how to get a finished product that looks like what the tutorial
has. The following instructions are particularly problematic:
> In the code, change the word "Main" with the name of the space where you want you FAQ pages to be created
There is no word "Main".
> If you click on "View the template document" and edit that page in wiki mode, you will see the following code: {{include document="FAQ.FAQClassSheet"/}}
The page is blank, I don't see any code.
> Use the Create top level menu (when using the Colibri skin) or the Create Panel to create the FAQ.WebHome page
I don't see anything marked "Create".
Is there an experienced XWiki developer who would be willing to go
through the FAQ application tutorial and rewrite it to make sense for
the latest version of XWiki?
More generally, it would be very helpful to have a glossary that
defines and relates terms like "application", "page", "document",
"object", "property", "class", "template", and "template provider".
These terms are used in the documentation with little or no
explanation, which adds to the confusion.
-Alex
Hi,
After deleting a document, XWiki first shows a confirmation page and after that displays the deleted document(s). I was wondering if I’m able to redirect the user to a different page after the confirmation he has to give on the delete action. I have noticed some remaks on the topic such as the JIRA issue XWIKI-9906 but I;m not sure if there have been any changes on this.
I don’t mind solving the issue myself and I would expect to be able to use the DocumentDeleted event listener. I do not have enough detailed knowledge on the topic to be able to sort this out entirely by myself so that leaves the following questions:
1 - Any news on the JIRA issue in any XWIKI version?
2 - Is it possible to use the DocumentDeleted listener for this purpose?
3 - If yes, does anyone have any suggestion on the approach?
4 - if no, is there any other way to solve this?
Thanks in advance for the feedback,
Br,
Peter
Hi,
I’m looking for the return type for the following Query type in Java:
select doc.space, doc.name from XWikiDocument doc, BaseObject obj…
I know it should be some kind of List<List<String>> since this is what works in Velocity but I can’t do a typecast from List<Object> to List<List<String>.
Can anyone help me on this?
Br,
Peter
Hello,
In my velocity script I try to include some velocity code from another page.
I want similare function like "source" in bash, it's like copy/paste some code in main script from another file.
I read https://network.xwiki.com/xwiki/bin/view/DocXE31Fr/IncludeInVelocity and use #includeInContext("mySpace.myPage") but there are board effect:
#includeInContext return HTML code like this
<p>I call MyMacro<br/><p>My color is Red</p>...
Then to obtain what I want I must user html tag:
{{html}}
#includeInContext("mySpace.myPage")
{{/html}}
Is it normal?
Thxs,
Pascal B
Hi,
After update from 6.4.2 to 7.1.2 we faced with message in LDAP settings:
But it work, I can access to xwiki with my LDAP login and password.
I changed logging level for
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl in debug mode and see
in log:
DEBUG u.i.L.XWikiLDAPAuthServiceImpl - LDAP authentication succeed with
principal [XWiki.aleksey-s]
xwiki.cfg for 6.4.2 and 7.1.2 identical.
We tested rollback xwiki to 6.4.2 and message "LDAP service is not
available. Please verify your installation." disappeared..
Why the message "LDAP service is not available. Please verify your
installation" appeared on 7.1.2 ?
--
View this message in context: http://xwiki.475771.n2.nabble.com/LDAP-service-is-not-available-after-updat…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello,
Is it possible not to import an existing document in a XAR Package ?
because I have 350 documents in that package and i really don't want to
check if every document exists...
Regards,
Quentin
--
View this message in context: http://xwiki.475771.n2.nabble.com/Do-not-import-existing-document-tp7595939…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello,
we try to run XWIKI with an Oracle 12c Database, but have not been succesful
yet.
We changed the property in the hibernate.cfg.xml to
<property name="dialect">org.hibernate.dialect.Oracle12cDialect</property>
but we only get this error:
{"level":"ERROR","thread":"XWiki
initialization","logger":"com.xpn.xwiki.internal.XWikiInitializerJob","context":"etu1appqk01_plis-portalhilfe","exception":"com.xpn.xwiki.XWikiException:
Error number 3202 in 3: Exception while reading document
[xwiki:XWiki.XWikiComments]\n\tat
com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:958)\n\tat
com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:291)\n\tat
com.xpn.xwiki.XWiki.getDocument(XWiki.java:1299)\n\tat
com.xpn.xwiki.XWiki.getDocument(XWiki.java:1347)\n\tat
com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:773)\n\tat
com.xpn.xwiki.XWiki.initXWiki(XWiki.java:733)\n\tat
com.xpn.xwiki.XWiki.initXWiki(XWiki.java:654)\n\tat
com.xpn.xwiki.XWiki.<init>(XWiki.java:643)\n\tat
com.xpn.xwiki.internal.XWikiInitializerJob.runInternal(XWikiInitializerJob.java:115)\n\tat
org.xwiki.job.internal.AbstractJob.runInContext(AbstractJob.java:209)\n\tat
org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:192)\n\tat
java.lang.Thread.run(Thread.java:722)\nCaused by:
org.hibernate.HibernateException: Dialect class not found:
org.hibernate.dialect.Oracle12cDialect\n\tat
org.hibernate.dialect.resolver.DialectFactory.constructDialect(DialectFactory.java:159)\n\tat
org.hibernate.dialect.resolver.DialectFactory.buildDialect(DialectFactory.java:99)\n\tat
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:117)\n\tat
org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2863)\n\tat
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2859)\n\tat
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1870)\n\tat
com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:253)\n\tat
com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:682)\n\tat
com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:827)\n\t...
11 common frames omitted\nCaused by: java.lang.ClassNotFoundException:
org.hibernate.dialect.Oracle12cDialect\n\tat
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)\n\tat
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)\n\tat
java.lang.Class.forName0(Native Method)\n\tat
java.lang.Class.forName(Class.java:186)\n\tat
org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:192)\n\tat
org.hibernate.dialect.resolver.DialectFactory.constructDialect(DialectFactory.java:156)\n\t...
19 common frames
omitted\n","zeitstempel":"2015-0904T08:22:54.312Z","nachricht":"Exception
thrown during job
execution","korrelationsid":"none","marker":["xwiki.translation"]}
Does XWIKI support oracle12c? This artikel
<http://dev.xwiki.org/xwiki/bin/view/Community/DatabaseSupportStrategy>
says that only 11.x is supported, but the article was updated the in 2014
the last time.
If there is a way to run xwiki with an oracle 12c database, what do we have
to do?
thanks for your help
best regards
Bastian
--
View this message in context: http://xwiki.475771.n2.nabble.com/Does-XWIKI-Support-Oracle12c-tp7595891.ht…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi there
First time trying to install xwiki and I'm having this problem at almost any
page in the site.
I'm using tomcat and xwiki 7.1.2
I can't see some basic files (template files) if they are formed without the
prefix "/xwiki/bin/skins/" prefix, for example the xwiki logo it's formed
like
/xwiki/skins/flamingo/logo.png
And can not be rendered by tomcat, but if I use the same url but adding the
bin/skins/ it shows correctly
/xwiki/bin/skins/skins/flamingo/logo.png
There are many other files in the resources/ directory that are not being
loaded.
Any clue will be helpful.
Thank you.
--
View this message in context: http://xwiki.475771.n2.nabble.com/Problem-trying-to-access-skins-tp7595918.…
Sent from the XWiki- Users mailing list archive at Nabble.com.