--- En date de : Lun 9.2.15, Jeremie BOUSQUET <jeremie.bousquet(a)gmail.com> a écrit :
> De: Jeremie BOUSQUET <jeremie.bousquet(a)gmail.com>
> Objet: Re: [xwiki-users] Fw : Re: Fw : Re: Need doc about access object in a page (and use doc)
> À: "Pascal BASTIEN" <pbasnews-xwiki(a)yahoo.fr>, "XWiki Users" <users(a)xwiki.org>
> Date: Lundi 9 février 2015, 16h36
> Hi,
>
> 2015-02-09 15:37 GMT+01:00
> Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>:
> Thxs god! xwiki is a
> wonderfull world ... when we manage to do what we want (or
> we can understand javadoc) ... hum!
>
> Note that javadoc may not be the
> better entry point to understand the xwiki model, but you
> may find this page interesting ;)
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/DataModel
Yes thxs you I knew this page :-)
About he doc I use frequently this one http://platform.xwiki.org/xwiki/bin/view/SRD/Navigation end https://network.xwiki.com/xwiki/bin/view/DocXE542Fr/XWikiDocTable, but examples miss me.
I failed often to guess object type/collection, etc. in my loop or methods.
>
>
>
The XWiki development team is proud to announce the availability of XWiki
7.0 Milestone 1.
This is the first milestone release of the 7.x cycle. It features a
Document Index Tree Finder for the Index Application, integration of the
new Tree Widget with the WYSIWYG editor and some usability improvements.
Developers have a new Finder Plugin for the Tree Widget and the old Lucene
search module was finally retired to Contrib.
You can download it here: http://www.xwiki.org/xwiki/bin/view/Main/Download
Make sure to review the release notes:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki70M1
Thanks
-The XWiki dev team
Hi XWIKI Team,
Please, is there any way to make a search inside page sources.
I need to search for a word inside page sources in the Space "Main".
Even by a query on the database.
Thanks in advance.
Best Regards,
Walid YAICH
Thxs god! xwiki is a wonderfull world ... when we manage to do what we want (or we can understand javadoc) ... hum!
More seriously, thxs a lot for your help (I pulled my hair during all this week-end).
I wil probably add your nice code on this page: http://platform.xwiki.org/xwiki/bin/view/DevGuide/APIGuide#HAccessobjectsin…
## get the document which has the object (only one here) - this is the page where I can see things in the object editor
#set( $MyDoc = $xwiki.getDocument("MySpace.MyNiceDoc"))
## get the document wich contains the class definition: this page has entries in the class editor
#set( $class = $xwiki.getClass("MySpace.MyClass"))
#foreach($prop in $class.properties) ## go through all properties
* ${prop.prettyName} : $MyDoc.display($prop.getName())
#end
and
#set($MyDoc = $xwiki.getDocument("MySpace.MyNiceDoc"))
#set($class = $xwiki.getClass("MySpace.MyClass"))
## loop over all objects
#foreach($obj in $MyDoc.getObjects("MySpace.MyClass"))
## empty line is intentionally to create a new paragraph
Object number $velocityCount
#set($discard = $MyDoc.use($obj))
#foreach($prop in $class.properties) ## go through all properties
* ${prop.prettyName} : $MyDoc.display($prop.getName())
#end
#end
Pascal B.
--- En date de : Lun 9.2.15, Clemens Klein-Robbenhaar <c.robbenhaar(a)espresto.com> a écrit :
> De: Clemens Klein-Robbenhaar <c.robbenhaar(a)espresto.com>
> Objet: Re: [xwiki-users] Fw : Re: Need doc about access object in a page (and use doc)
> À: users(a)xwiki.org
> Date: Lundi 9 février 2015, 14h53
> On 02/09/2015 02:12 PM,
> Pascal BASTIEN wrote:
> > This code
> (probably false) doesn't work.
> >
> #set( $Class =
> $xwiki.getClass("MySpace.MyClass"))
> > #foreach($prop in $class.properties) ## go
> through all properties
> > *
> ${prop.prettyName} : $doc.display($prop.getName())
> > #end
>
> It
> works for me if I do something like:
>
> {{velocity}}
> ## get the
> document which has the object (only one here) - this is the
> page where I can see things in the object editor
> #set( $adminDoc =
> $xwiki.getDocument("XWiki.Admin"))
> ## get the document wich contains the class
> definition: this page has entries in the class editor
> #set( $class =
> $xwiki.getClass("XWiki.XWikiUsers"))
> #foreach($prop in $class.properties) ## go
> through all properties
> * ${prop.prettyName}
> : $adminDoc.display($prop.getName())
> #end
> {{/velocity}}
>
> This code should work for you 1:1 unless you
> have deleted you "Admin" user. toapply for your
> ise case you will have to adapt the name of the class and of
> the document containing the objects
>
> Note that there is a difference between:
>
> - the document _defining_ the
> class - for users this is XWiki.XWikiUsers and you can see
> it at
> http://localhost:8080/xwiki/bin/view/XWiki/XWikiUsers
> and you can cnage it in the
> class editor:
> http://localhost:8080/xwiki/bin/edit/XWiki/XWikiUsers?editor=class
> but this document is in itself a
> user: the object eduitor is emprty:
>
> http://localhost:8080/xwiki/bin/edit/XWiki/XWikiUsers?editor=object
> (not completely empty, but does
> not contain XWiki.XWikiUsers objects)
>
> - the "admin" User document is not a
> class:
> http://localhost:8080/xwiki/bin/edit/XWiki/Admin?editor=class
> but has a Users oject
> attached:
> http://localhost:8080/xwiki/bin/edit/XWiki/Admin?editor=object
>
>
> Anyway, if
> you have more than one object on a page, you will have to
> loop over them and use "$doc.use".
>
> the following works for me
> (even though it is useless in this case, as is loops over
> all users on a page, while there should be only one ...)
>
> {{velocity}}
> #set($adminDoc =
> $xwiki.getDocument("XWiki.Admin"))
> #set($class =
> $xwiki.getClass("XWiki.XWikiUsers"))
> ## loop over all objects
> #foreach($obj in
> $adminDoc.getObjects("XWiki.XWikiUsers"))
> ## empty line is intentionally to create a
> new paragraph
>
> Object
> number $velocityCount
> #set($discard =
> $adminDoc.use($obj))
> #foreach($prop in
> $class.properties) ## go through all properties
> * ${prop.prettyName} :
> $adminDoc.display($prop.getName())
>
> #end
> #end
>
> {{/velocity}}
>
>
> hth,
>
> clemens
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
--- En date de : Lun 9.2.15, Clemens Klein-Robbenhaar <c.robbenhaar(a)espresto.com> a écrit :
> De: Clemens Klein-Robbenhaar <c.robbenhaar(a)espresto.com>
> Objet: Re: [xwiki-users] Need doc about access object in a page (and use doc)
> À: users(a)xwiki.org
> Date: Lundi 9 février 2015, 13h29
> On 02/09/2015 10:15 AM,
> Pascal BASTIEN wrote:
> > Hello,
> > I read/apply this doc with succcess:
> > http://platform.xwiki.org/xwiki/bin/view/DevGuide/APIGuide#HAccessobjectsin…
> >
> > With this code I can
> display all objects ATTACHED to THIS page.
> > ***********
> >
> #set($class = $obj.xWikiClass) ## access the class object
> representing SomeSpace.SomeClass
> >
> #foreach($prop in $class.properties) ## go through all
> properties
> > ...
> >
> ***********
> > but if I attached some
> class to another page, how can I list properties?
>
> the $xwiki object has a method
> to access the class if you know the name
>
> #set( $someClass =
> $xwiki.getClass("SomeSpace.SomeClass"))
>
> http://maven.xwiki.org/site/docs/xwiki-javadoc-4.1.x/com/xpn/xwiki/api/XWik…
This code (probably false) doesn't work.
#set( $Class = $xwiki.getClass("MySpace.MyClass"))
#foreach($prop in $class.properties) ## go through all properties
* ${prop.prettyName} : $doc.display($prop.getName())
#end
>
> > Another question:
> > I have a page with 3 same Class, how to
> list them (like ?editor=class did)?
>
> you can get a list of of objects of a certain
> class via
> $doc.getObjects("SomeSpace.SomeClass")
>
> http://maven.xwiki.org/site/docs/xwiki-javadoc-4.1.x/com/xpn/xwiki/api/Docu…
$doc.getObjects("SomeSpace.SomeClass")
I failed to :-(
The thing I don't understand is, my values are stored in a doc with attached class. I need theses value from another doc but all method have Class name parameter ... Class name contain only field (properties) name?
(Hope I will understand how find answer in javadoc to avoid disturbed nice people of user list)
Thxs
>
> > An example:
> >
> MySpaceMyClass contain this Class properties:
> > - My Field ID (IdField: String)
> > - My Lib Field (LibField: String)
> > I create MySpace.MyNiceDoc and add my
> previous Class MySpace/MyNiceDoc?editor=object
> > and contain:
> > Objets
> de type MySpace.MyClass (2)
> > * MyClass
> 0
> > - My Field ID
> > - My Lib Field
> >
> *MyClass 1:
> > - My Field ID
> > - My Lib Field
> >
> > With it I like to fill a select list from
> this doc (but from another doc to).
> > How
> can I proceed? because on MySpace.MyNiceDoc I can only
> display one/First Lib values with this code:
> > {{velocity}}
> > ##
> Retrieve the first object (index [0]) among all objects
> attached to this page and of a certain class
> > #set($obj =
> $doc.getObject('MySpace.MyClass'))
> > #set($class = $obj.xWikiClass) ## access
> the class object representing SomeSpace.SomeClass
> > #foreach($prop in $class.properties) ## go
> through all properties
> > *
> ${prop.prettyName} : $doc.display($prop.getName())
> > #end
> > {{/velocity}}
> > I guess i need a loop but which one?
> >
> > And the big question
> (who I think it will interest everyone), how can I use
> documentation
> > ( http://platform.xwiki.org/xwiki/bin/view/SRD/Navigation?xpage=embed
> and or http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/or…
> )
> > to guess xWikiClass (or my loop)
> by example?
> >
> > A
> doc/example to use documentation will be welcome. :-)
> >
> > thxs for any
> help.
> >
> > Pascal
> B
> >
> _______________________________________________
> > users mailing list
> > users(a)xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
>
> mit freundlichen Grüßen
> Clemens Klein-Robbenhaar
>
> --
> Clemens Klein-Robbenhaar
> Software Development
> EsPresto
> AG
> Breite Str. 30-31
> 10178
> Berlin/Germany
> Tel: +49.(0)30.90 226.763
> Fax: +49.(0)30.90 226.760
> robbenhaar(a)espresto.com
>
> HRB 77554 B -
> Berlin-Charlottenburg
> Vorstand: Maya
> Biersack, Peter Biersack
> Vorsitzender des
> Aufsichtsrats: Dipl.-Wirtsch.-Ing. Winfried Weber
> Zertifiziert nach ISO 9001:2008
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
Hello,
I read/apply this doc with succcess:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/APIGuide#HAccessobjectsin…
With this code I can display all objects ATTACHED to THIS page.
***********
#set($class = $obj.xWikiClass) ## access the class object representing SomeSpace.SomeClass
#foreach($prop in $class.properties) ## go through all properties
...
***********
but if I attached some class to another page, how can I list properties?
Another question:
I have a page with 3 same Class, how to list them (like ?editor=class did)?
An example:
MySpaceMyClass contain this Class properties:
- My Field ID (IdField: String)
- My Lib Field (LibField: String)
I create MySpace.MyNiceDoc and add my previous Class MySpace/MyNiceDoc?editor=object
and contain:
Objets de type MySpace.MyClass (2)
* MyClass 0
- My Field ID
- My Lib Field
*MyClass 1:
- My Field ID
- My Lib Field
With it I like to fill a select list from this doc (but from another doc to).
How can I proceed? because on MySpace.MyNiceDoc I can only display one/First Lib values with this code:
{{velocity}}
## Retrieve the first object (index [0]) among all objects attached to this page and of a certain class
#set($obj = $doc.getObject('MySpace.MyClass'))
#set($class = $obj.xWikiClass) ## access the class object representing SomeSpace.SomeClass
#foreach($prop in $class.properties) ## go through all properties
* ${prop.prettyName} : $doc.display($prop.getName())
#end
{{/velocity}}
I guess i need a loop but which one?
And the big question (who I think it will interest everyone), how can I use documentation
( http://platform.xwiki.org/xwiki/bin/view/SRD/Navigation?xpage=embed and or http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/or… )
to guess xWikiClass (or my loop) by example?
A doc/example to use documentation will be welcome. :-)
thxs for any help.
Pascal B
Hello all,
I'm hoping someone can give me a suggestion to save my skin. When I was
brand new to xwiki I quickly created an application for "ticketing" using
AppWithinMinutes because it seemed like the easiest way for a newbie to
create an application. In doing so I created a form which had several
controls on it (e.g.. around 20 or so). In order to maintain business logic
I wrote EXTENSIVE JavaScript which enforces business rules and prevents a
save (basically cancelling the postback through JavaScript) if they aren't
met. Admittedly this isn't that great of a solution as now I'm having
problems with JavaScript failures (mostly with other libraries being loaded
with xwiki which prevents my JavaScript from running) which then allow the
pages to be saved despite validation failures.
What I'm hoping is that there is some way to "shim" some server side code in
using an event listener, or some sort of "before save" event in velocity or
groovy that can evaluate the submitted page and prevent a save if the
business logic rules are broken.
I don't really have the luxury of re-writing or refactoring the solution
I've written because it's in production at this point and works 95% of the
time, but I definitely need to do more in relation to validation since
broken rules cause downstream impacts to other applications relying on clean
data.
So, any help is GREATLY appreciated. I have seen this
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Creating+a+form+with+valid
ation+and+tooltips and reviewed it, but I can't really figure out how I
would use it with an existing page or with AppWithinMinutes.
Also, I already have an event listener configured which does some stuff that
I might be able to use for this purpose.. but I think those events
(DocumentCreatedEvent() and DocumentUpdatedEvent()) happens AFTER the save
and I haven't really been able to find a way to "block" the save if it does
happen before anyway..
I would need to invoke validation on save and update of documents too.. I'm
hoping there might be some way of adding code to the AppWithinMinutes
generated page that can do some post save validation and stop the save if it
fails.
So help !!! :)
Hi,
when we import a PDF document (which can be opened in Libre Office
successfully) into XWiki we get the error message:
*500 Internal Server Error The call failed on the server; see server log
for details*
Looking at the Tomcat 7 server logs there are several entries, see below.
Out setups is the following:
Windows Server 2003 R2 (32-bit), Tomcat 7, JDK 7 u71, Apache 2.4, XWiki
6.3, Libre Office 4.3.4.1.
Is there something I need to configure or is this a bug?
Log entries:
[1] localhost.2015-02-05.log
Feb 06, 2015 9:27:37 AM org.apache.catalina.core.ApplicationContext log
SEVERE: Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public
abstract java.lang.String
org.xwiki.gwt.wysiwyg.client.plugin.importer.ImportService.officeToXHTML(org.xwiki.gwt.wysiwyg.client.wiki.Attachment,java.util.Map)'
threw an unexpected exception: java.lang.RuntimeException: Error while
converting document [SMART Migration Installation.pdf] into html.
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:389)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:579)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:545)
at
org.xwiki.wysiwyg.server.XWikiRemoteServiceServlet.processCall(XWikiRemoteServiceServlet.java:52)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:305)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.xwiki.wysiwyg.server.filter.XWikiContextInitializationFilter.doFilter(XWikiContextInitializationFilter.java:85)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:197)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Error while converting document
[SMART Migration Installation.pdf] into html.
at
org.xwiki.wysiwyg.server.internal.plugin.importer.XWikiImportService.officeToXHTML(XWikiImportService.java:137)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
... 37 more
[2] tomcat7-stdout.2015-01-17.log
2015-02-06 09:27:37,149 [
http://de-ben-wiki/xwiki/resources/js/xwiki/wysiwyg/xwe/ImportService.gwtrpc]
ERROR x.w.s.i.p.i.XWikiImportService - Exception while importing office
document [SMART Migration Installation.pdf]
org.xwiki.officeimporter.OfficeImporterException: Error while converting
document [SMART Migration Installation.pdf] into html.
at
org.xwiki.officeimporter.internal.builder.DefaultXHTMLOfficeDocumentBuilder.build(DefaultXHTMLOfficeDocumentBuilder.java:97)
~[xwiki-platform-legacy-office-importer-6.3.jar:na]
at
org.xwiki.officeimporter.internal.builder.DefaultXDOMOfficeDocumentBuilder.build(DefaultXDOMOfficeDocumentBuilder.java:84)
~[xwiki-platform-legacy-office-importer-6.3.jar:na]
at
org.xwiki.wysiwyg.server.internal.plugin.importer.XWikiImportService.convertAttachmentContent(XWikiImportService.java:184)
~[xwiki-platform-wysiwyg-server-6.3.jar:na]
at
org.xwiki.wysiwyg.server.internal.plugin.importer.XWikiImportService.importAttachment(XWikiImportService.java:161)
~[xwiki-platform-wysiwyg-server-6.3.jar:na]
at
org.xwiki.wysiwyg.server.internal.plugin.importer.XWikiImportService.officeToXHTML(XWikiImportService.java:133)
~[xwiki-platform-wysiwyg-server-6.3.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[na:1.7.0_71]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
~[na:1.7.0_71]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[na:1.7.0_71]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_71]
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
[gwt-servlet-2.6.0.jar:na]
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:545)
[gwt-servlet-2.6.0.jar:na]
at
org.xwiki.wysiwyg.server.XWikiRemoteServiceServlet.processCall(XWikiRemoteServiceServlet.java:52)
[xwiki-platform-wysiwyg-server-6.3.jar:na]
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:305)
[gwt-servlet-2.6.0.jar:na]
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
[gwt-servlet-2.6.0.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
[servlet-api.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
[servlet-api.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
[catalina.jar:7.0.42]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
[catalina.jar:7.0.42]
at
org.xwiki.wysiwyg.server.filter.XWikiContextInitializationFilter.doFilter(XWikiContextInitializationFilter.java:85)
[xwiki-platform-wysiwyg-server-6.3.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
[catalina.jar:7.0.42]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
[catalina.jar:7.0.42]
at
org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
[xwiki-platform-container-servlet-6.3.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
[catalina.jar:7.0.42]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
[catalina.jar:7.0.42]
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
[xwiki-platform-webdav-server-6.3.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
[catalina.jar:7.0.42]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
[catalina.jar:7.0.42]
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
[xwiki-platform-container-servlet-6.3.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
[catalina.jar:7.0.42]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
[catalina.jar:7.0.42]
at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
[xwiki-platform-container-servlet-6.3.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
[catalina.jar:7.0.42]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
[catalina.jar:7.0.42]
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
[catalina.jar:7.0.42]
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
[catalina.jar:7.0.42]
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
[catalina.jar:7.0.42]
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
[catalina.jar:7.0.42]
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
[catalina.jar:7.0.42]
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
[catalina.jar:7.0.42]
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
[catalina.jar:7.0.42]
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
[catalina.jar:7.0.42]
at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:197)
[tomcat-coyote.jar:7.0.42]
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
[tomcat-coyote.jar:7.0.42]
at
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)
[tomcat-coyote.jar:7.0.42]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[na:1.7.0_71]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[na:1.7.0_71]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_71]
Caused by: org.xwiki.officeimporter.converter.OfficeConverterException:
Error while performing conversion.
at
org.xwiki.officeimporter.internal.converter.DefaultOfficeConverter.convert(DefaultOfficeConverter.java:116)
~[xwiki-platform-legacy-office-importer-6.3.jar:na]
at
org.xwiki.officeimporter.internal.builder.DefaultXHTMLOfficeDocumentBuilder.build(DefaultXHTMLOfficeDocumentBuilder.java:94)
~[xwiki-platform-legacy-office-importer-6.3.jar:na]
... 46 common frames omitted
Caused by: org.artofsolving.jodconverter.office.OfficeException:
unsupported conversion
at
org.artofsolving.jodconverter.AbstractConversionTask.storeDocument(AbstractConversionTask.java:121)
~[jodconverter-core-3.0-beta-4-xwiki-20110822.jar:na]
at
org.artofsolving.jodconverter.AbstractConversionTask.execute(AbstractConversionTask.java:61)
~[jodconverter-core-3.0-beta-4-xwiki-20110822.jar:na]
at
org.artofsolving.jodconverter.office.ExternalOfficeManager.execute(ExternalOfficeManager.java:80)
~[jodconverter-core-3.0-beta-4-xwiki-20110822.jar:na]
at
org.artofsolving.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConverter.java:78)
~[jodconverter-core-3.0-beta-4-xwiki-20110822.jar:na]
at
org.artofsolving.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConverter.java:69)
~[jodconverter-core-3.0-beta-4-xwiki-20110822.jar:na]
at
org.xwiki.officeimporter.internal.converter.DefaultOfficeConverter.convert(DefaultOfficeConverter.java:100)
~[xwiki-platform-legacy-office-importer-6.3.jar:na]
... 47 common frames omitted
Hi,
I've set up a blog for a single space using the "blog inside an existing
space" option, so the blog URL is ".../xwiki/bin/view/MySpace/Blog"
As per the documentation, I added the following line to the HTTP Meta Info
section in the space's admin options:
<link rel="alternate" type="application/rss+xml" title="Blog RSS Feed"
href="$xwiki.getURL('Blog.BlogRss', 'view', 'xpage=plain')" />
Now how do I generate an RSS feed for only the space blog?
When I try ".../xwiki/bin/view/MySpace/Blog/BlogRss?xpage=plain" I get an
unformatted HTML page.
What am I doing wrong?
Thanks,
J
--
View this message in context: http://xwiki.475771.n2.nabble.com/RSS-feeds-for-Space-specific-blogs-tp7593…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi !
I recently installed xWiki.
Everything goes fine except when i want to add a gadget in my dashboard.
I got this message. (Be sure that ived try a lot of thing to fix it)
404 Not Found <html><head><title>Apache Tomcat/7.0.42 - Error report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color :
black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 -
/resources/js/xwiki/wysiwyg/xwe/MacroService.gwtrpc</h1><HR size="1"
noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b>
<u>/resources/js/xwiki/wysiwyg/xwe/MacroService.gwtrpc</u></p><p><b>description</b> <u>The requested
resource is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache
Tomcat/7.0.42</h3></body></html>
If i remove html tag
404 Not Found Apache Tomcat/7.0.42 - Error report
HTTP Status 404 - /resources/js/xwiki/wysiwyg/xwe/MacroService.gwtrpc
type Status report
message /resources/js/xwiki/wysiwyg/xwe/MacroService.gwtrpc
description
The requested resource is not available.
i red about something like the path of ressources of "gwtrpc" in web.xml but i'm not sure what to
do.
someone have a idea ?
thx a lot
Jean-François Boily
Technicien Informatique
Téléphone : 418 683-1591
( tel:4186831591) , poste 2134
Télécopieur : 418 682-8938
( tel:4186828938)
Sans frais : 1 800 208-1463
( tel:18002081463)
I would like to customize the solr schema.xml and solrconfig.xml used
for our instance of xwiki (enterprise 6.1) to provide some additional
fields and to customize (and enforce) search behaviors.
My first attempt at modifying xwiki's data/solr/xwiki/conf/*.xml seemed
successful at first, but after xwiki restarts the solr index appeared
flawed in some way (all search gave zero results) even after full index
rebuilds.
I see clues in xwiki.properties that custom solr config dirs and even
external solr instances are supported, but have not found any specific
documentation. I'm not certain the above implies that solr configuration
customization is supported. Is it possible and, if so, is there any
general guidance on utilizing custom schemas or external solrs?
Thanks,
Mike
> >
> > Then i think, I found the solution to get
> prefix in a sheet:
> >
> >
> #set ($DocClass= 'MySpace.MydocClass')
> > #set($class =
> $doc.getObject(${DocClass}).xWikiClass)
> >
> ##Boucle sur toutes les properties de la classe DocClass
> > #foreach($prop in $class.properties)
>
> > *
> ${escapetool.xml($class.name)}_${class.number}_$prop.Name
>
> The XML escaping is needed
> above because the class name is used inside
> HTML. In your case you seem to have only wiki
> syntax (unless you have
> a {{html
> wiki="true"}} somewhere).
Yes I don't need escapetool.xml even I use {{html wiki="true"}} because I know my docClass name (without space and special characters)
And the $class
> doesn't have any
> number. As I said in my
MyClass use only one XWiki.ClassSheetBinding object: MySpace.MySheet.
/bin/edit/MySpace/MyClass?editor=object indicate "ClassSheetBinding 0: MySheet sheet docclass object"
I suppose ClassSheetBinding 0 indicate my _0_?
_0_ in the id of input field in my form is not
#set ($object = $doc.getObject('MySpace.MyClass'))
$object.number ?
It is the only way I found in #macro(displayObject $obj $class $props $firstField) of skins/flamingo/editobject.vm
> first reply and as Clemens has emphasized the
> object has the number, because you can have
> multiple objects of the
> same type/class on
> the same wiki page.
Thxs
>
> >
> #end
> >
> > Notice: sorry
> about miss formating mail, I think it is yahoo webmail
> fault?
> >
> > Pascal
> B.
> >
> >
> --------------------------------------------
> > En date de : Mar 3.2.15, Clemens
> Klein-Robbenhaar <c.robbenhaar(a)espresto.com>
> a écrit :
> >
> >
> Objet: Re: [xwiki-users] Howto getprefix in a Sheet?
> > À: users(a)xwiki.org
> > Date: Mardi 3 février 2015, 10h38
> >
> >
> > The
> > number is not
> the number of the property in the class, but
> > the number of the object on the page.
> > I.e.
> > you can have
> one, two, or manye objects of the same type
> > MySpace.MyClass on the same page.
> >
> > A Macro where you
> can see how the ID gets
> > rendered is
> in templates/editobject.vm and/or
> >
> webapps/xwiki/skins/flamingo/editobject.vm
> > see the #macro displayObject
> >
> >
> > On 02/03/2015
> >
> 10:12 AM, Pascal BASTIEN wrote:
> > >
> ThxsI
> > verified and it seem it is
> always _0_ for each properties
> >
> (even for multiple properties of same type)ie If I have 2
> > properties with 'date' type in
> MySpace.MyClass
> > (date_entry and
> birthday), $doc.display($prop.getName() will
> > generate this form
> > > <input
> >
> id="MySpace.MyClass_0_date_entry" xxxx<input
> >
> id="MySpace.MyClass_0_birthday" xx
> > > But If I have a 'database
> list'
> > with checkbox property
> "BirthdayYear" in
> >
> MySpace.MyClass, $doc.display($prop.getName() will
> generate
> > this form (with 2 similar
> hidden input field ! Maybe a bug?)
> >
> :<label class="xwiki-form-listclass"
> >
> for="xwiki-form-A_Expert-0-0"><input
> >
> id="xwiki-form-A_Expert-0-0"
> > type="checkbox"
> value="1980"
> >
> name="MySpace.MyClass_0_BirthdayYear">1980</label><label
> >
> class="xwiki-form-listclass"
> >
> for="xwiki-form-BirthdayYear-0-1"><input
> >
> id="xwiki-form-A_Expert-0-1"
> > type="checkbox"
> value="1981"
> >
> name="MySpace.MyClass_0_BirthdayYear">1981</label>...
> > > <label
> >
> class="xwiki-form-listclass"
> >
> for="xwiki-form-BirthdayYear-0-n"><input
> >
> id="xwiki-form-A_Expert-0-n"
> > type="checkbox"
> value="20nn"
> >
> name="MySpace.MyClass_0_BirthdayYear">
> > 20nn</label><input
> type="hidden"
> >
> value=""
> >
> name="MySpace.MyClass_0_BirthdayYear"><input
> > type="hidden"
> value=""
> >
> name="MySpace.MyClass_0_BirthdayYear"> I
> > didn't find what is generate this
> _0_ (macro or java
> > stuf)
> > > ThxsPascal B
> >
> >
> >
> > >
> De : Marius Dumitru
> >
> Florea <mariusdumitru.florea(a)xwiki.com>
> > > À : Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>;
> > XWiki Users <users(a)xwiki.org>
> >
> > > Envoyé le :
> Mardi 3 février 2015
> > 8h16
> > > Objet : Re: [xwiki-users]
> Howto
> > getprefix in a Sheet?
> > >
> > > ...
> > >> If any have
> > an (or many) idea how I can obtain this
> prefix in my
> > Sheet
> > >
> > >> (If
> not
> > I can concanet
> MySpace.docClass_0_$prop.Name but I'm not
> > sure about _0_)
> >
> >
> > >
> >
> I'm afraid you have to compute the prefix yourself. 0
> > represents the
> >
> > object number. So
> >
> MySpace.MyClass_4_age refers to the 'age'
> > property
> > > of
> the MySpace.MyClass object
> > with
> number 4 (normally the fifth object
> >
> > of that type from the target document).
> > >
> > > Hope
> this helps,
> > > Marius
> > >
> > >
> > >
> > >>
> > >> 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
> > >
> >
> >
> >
> > mit freundlichen Grüßen
> > Clemens Klein-Robbenhaar
> >
> > --
> > Clemens Klein-Robbenhaar
> > Software Development
> > EsPresto
> > AG
> > Breite Str. 30-31
> >
> 10178
> > Berlin/Germany
> > Tel: +49.(0)30.90 226.763
> > Fax: +49.(0)30.90 226.760
> > robbenhaar(a)espresto.com
> >
> > HRB 77554 B -
> > Berlin-Charlottenburg
> > Vorstand: Maya
> >
> Biersack, Peter Biersack
> > Vorsitzender
> des
> > Aufsichtsrats:
> Dipl.-Wirtsch.-Ing. Winfried Weber
> >
> Zertifiziert nach ISO 9001:2008
> >
> _______________________________________________
> > 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
Hello,I have a docClass with some properties and use a linked Sheet to display my data.On this thread http://xwiki.475771.n2.nabble.com/Help-with-custom-display-td508630.htmlI saw we can get this value in "custom display" field of docClass properties.- $name = the name of the displayed field
- $prefix = a prefix for the form field
- $object = the displayed object
- $type = the intended display mode (view, edit, hidden, search...)
- $value = the property value
I try to have same value from mydocSheet (in particulary prefix the id of the field in edit form)
There Velocity code in my docSheet:
#set($class = $doc.getObject('MySpace.docClass').xWikiClass)
#foreach($prop in $class.properties)
* "$prop.Name" * $prop.?????? How to obtain the prefix ??? * $object (it doesn't matter) * $xcontext.action * $doc.getValue($prop.Name)
$prop.prettyName $doc.display($prop.getName())
#end
#break
If any have an (or many) idea how I can obtain this prefix in my Sheet
(If not I can concanet MySpace.docClass_0_$prop.Name but I'm not sure about _0_)
Thxs
Pascal B
How can I create spaces and pages from a component in Java?
I've just tried with this code but doesn't work..
XWikiContext context = getXWikiContext();
XWiki wiki = context.getWiki();
DocumentReference doc = new DocumentReference("Home","MySpace","MyPage");
try {
wiki.getDocument(doc, context);
return 0;
} catch (XWikiException e) {
e.printStackTrace();
return 1;
}
--
View this message in context: http://xwiki.475771.n2.nabble.com/Create-spaces-and-pages-from-a-component-…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
I'd like to create a new panel and place it in the sidebar of every wiki in
my wiki farm. Is there a way to automatically make panels that I create for
the main wiki available to subwikis, or do I have to manually copy them
over?
Thanks,
Jamal
--
View this message in context: http://xwiki.475771.n2.nabble.com/Creating-a-panel-for-all-wikis-tp7593806.…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello xWikiers,
I’ve just registered to the mailing list and I’m pleased to introduce you the site http://apice.unibo.it,
developed by the APICe Research Group, which belong to The Department of Information Engineering and Computer Science (DISI)
of University of bologna, Italy.
The site is up since 2007, starting from xwiki 1.1.
Since then it has been migrated step by step and is now powered by xwiki 2.1.2.
It’s my aim to migrate to latest version, but I’m stuck in the middle of the process,
because of a problem during migration to 2.2.6 with the rendering of the comments, attachments, history and Information
Here's what happens:
http://apice.unibo.it/xwiki/bin/download/Sandbox/WebHome/bug226.jpg
As can be seen, I use a cloned test site to simulate every upgrade task;
I’ve injected some debug code in the docextra.vm template (as in attachmentsinline.vm)
To solve the bug, I’m focusing on docextra.vm template: the $doc and the $tdoc variables are “undefined”
when the *inline.vm template are called inside the javascrit,
with document.observe or Event.observe that run XWiki.displayDocExtra("${extraAnchor}", "${extraTemplate}", false);
for instance ${extraAnchor} = “attachments”, ${extraTemplate} = “attachmentsinline.vm”
From the log it’s clear that this is the problem ($tdoc variable is “undefined”) because I find in the log:
https://test.apice.unibo.it/xwiki/bin/view/Publications/undefined?xpage=xpa…
instead the correct url should be, for example:
https://test.apice.unibo.it/xwiki/bin/view/Publications/BioSac2012?xpage=xp…
that actually works!
I do not can understand why The $doc and the $tdoc variable is “undefined” at runtime…
Any suggestion?
Thank you very much
Nazzareno Pompei
PS: I’m experiencing a problem with import page too, is it entangled?
http://apice.unibo.it/xwiki/bin/download/Sandbox/WebHome/importBug.png
--------------------------------------------------------------------------------------------+
Ing. Nazzareno Pompei
DISI - Dipartimento di Informatica: Scienze ed Ingegneria
e-mail :nazzareno.pompei@unibo.it
Tel. : +39 0547339205 Fax. : +39 0547339208
Il presente messaggio ed i suoi allegati devono intendersi
di tipo confidenziale ad uso esclusivo dei suoi destinatari.
Il mittente declina ogni responsabilità in caso di intercettazione o modifica.
In caso di ricezione per errore del messaggio, si prega di cancellarlo,
di distruggerne ogni copia e di darne opportuno avviso al mittente.
--------------------------------------------------------------------------------------------+
Hello all,
I migrated Xwiki to 6.3 to 6.4 but I have this issue : http://jira.xwiki.org/browse/XE-1463 <http://jira.xwiki.org/browse/XE-1463>
I try to delete data/solr but I deleted the wrong dir and I destroy the dir containing “org.xwiki.search.solr.internal.EmbeddedSolrInstance”.
Obviously… When I start XWiki, I have this error :p
2015-02-02 17:56:39,567 [main] ERROR o.x.s.s.i.SolrInstanceProvider -
org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.search.solr.internal.EmbeddedSolrInstance] identified by [role = [interface org.xwiki.search.solr.internal.api.SolrInstance] hint = [embedded]]
How do in order to desactived solr and reinstall this with extension manager? Or another solution?
Thanks!
Marc
Hi,
I’m trying to build a docker container (https://registry.hub.docker.com/u/njouanin/xwiki/ <https://registry.hub.docker.com/u/njouanin/xwiki/>) for xwiki and being able to link it to a database container.
So, I’ve created a dockerfile which install xwiki .deb package on debian image. Because I just need tomcat + wiki installation i’m installing xwiki-enterprise-tomcat-common package.
The problem is that apt-get tries to install mysql server. I guess there’s a dependency between xwiki-enterprise-tomcat-common package and mysql, which is not needed here :
# apt-get install xwiki-enterprise-tomcat-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
dbconfig-common fonts-dejavu fonts-dejavu-extra libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysql-java libmysqlclient18 libterm-readkey-perl mysql-client-5.5
mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5 psmisc ttf-dejavu ttf-dejavu-core ttf-dejavu-extra xwiki-enterprise-common xwiki-enterprise-mysql-common
xwiki-enterprise-tomcat7-mysql
Suggested packages:
virtual-mysql-client mysql-client postgresql-client libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl libipc-sharedcache-perl libslf4j-java mailx tinyca
The following NEW packages will be installed:
dbconfig-common fonts-dejavu fonts-dejavu-extra libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysql-java libmysqlclient18 libterm-readkey-perl mysql-client-5.5
mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5 psmisc ttf-dejavu ttf-dejavu-core ttf-dejavu-extra xwiki-enterprise-common xwiki-enterprise-mysql-common
xwiki-enterprise-tomcat-common xwiki-enterprise-tomcat7-mysql
Nicolas.
Is there a "right" way to make a LiveTable refresh?
I have a page that includes a LiveTable to show the results of a query on an external database, and a form triggers an AJAX call to modify the database (e.g., insert a new row). I'd like the AJAX call to include an action within OnSuccess to make the LiveTable refresh to show these modifications.
http://xwiki.475771.n2.nabble.com/Proposal-Hightlight-applied-filters-in-li…
and
http://jira.xwiki.org/browse/XWIKI-5100
appear to discuss something of this kind, but I couldn't find any instructions. The closest thing was a line in livetable.js
https://github.com/xwiki/xwiki-platform/blob/4f92c9fc4dc9d4bb7b42a54f3e289f…
where it looks like a refresh is triggered on event "xwiki:livetable:mylivetable:filtersChanged". I have tried calling
document.fire('xwiki:livetable:mylivetable:filtersChanged');
from within a javascript function, but this did not appear to make the "mylivetable" LiveTable update. Could anyone direct me further?
Thanks,
Bryn
Hello everyone!
I have a problem with frames on my xwiki (http://dafedin.myxwiki.org) . Look screenshot in attachment. I have updated wiki but it's dont helps. Help me!
with respect? Dmytro
С уважением,
Дмитрий Федин
dafedin(a)mail.ru
Hi All,
i have a working groovy script which is:
I use a class and add an object to a document. Everytime a object is
attached i look for it with the query and do something with the objects. the
strange thing is that i try to port it to a service to java. where i get in
groovy an title of the document it is NOT given in java.
The java code of the service
I didn't get it. Did i do something wrong? i never get a title of the
document. I can read the document, the object of the document, but i did not
get the title. I tried also to get translated documents because i use locals
de and en. But even there i get the title back.
You know why?
Regards,
Matthias
--
View this message in context: http://xwiki.475771.n2.nabble.com/Empty-Document-Title-tp7593748.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello,
I just wanted to check in on my request for a wiki "growinghome" on the
community farm. I submitted my request 8 days ago on the 20th. When can I
expect this process to be complete? I haven't heard one way or the other
if the request was granted.
Thanks very much.
-Kyndel
On Wed, Jan 28, 2015 at 4:00 AM, <users-request(a)xwiki.org> wrote:
> Send users mailing list submissions to
> users(a)xwiki.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.xwiki.org/mailman/listinfo/users
> or, via email, send a message with subject or body 'help' to
> users-request(a)xwiki.org
>
> You can reach the person managing the list at
> users-owner(a)xwiki.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of users digest..."
>
>
> Today's Topics:
>
> 1. Re: Refreshing a LiveTable (Clemens Klein-Robbenhaar)
> 2. Re: Manage rights for author (Guillaume Lerouge)
> 3. Re: Error: The Context Component Manager should only be used
> for read access. (Bryn Jeffries)
> 4. Re: Error: The Context Component Manager should only be used
> for read access. (=?utf-8?Q?vincent=40massol.net?=)
> 5. some issues upgrading to 6.4
> (Ricardo.Julio.Rodriguez.Fernandez(a)sergas.es)
> 6. Re: some issues upgrading to 6.4 (Thomas Mortagne)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 27 Jan 2015 13:54:18 +0100
> From: Clemens Klein-Robbenhaar <c.robbenhaar(a)espresto.com>
> To: users(a)xwiki.org
> Subject: Re: [xwiki-users] Refreshing a LiveTable
> Message-ID: <54C78A7A.10106(a)espresto.com>
> Content-Type: text/plain; charset=windows-1252
>
> On 01/27/2015 02:52 AM, Bryn Jeffries wrote:
> > Is there a "right" way to make a LiveTable refresh?
> >
>
> I do not know of a "right way", but one that currently works is to fetch
> the livetable by its name, and refetch the current rows via some not-so
> obvious code,
> like:
>
> var livetable = window['livetable_'+ id_of_livetable_here ] ;
> var end = livetable.limit;
> var start = Math.max(livetable.lastOffset, 1);
> livetable.clearCache();
> livetable.getRows(start, end, start, end);
>
>
> That works in some little extension I wrote:
>
>
> https://github.com/xwiki-contrib/application-reviewpages/blob/master/applic…
>
> I think I even "borrowed" it from some other xwiki-contrib code, but
> cannot remember from where.
> Certainly this is not "using any API" and it is expected to break without
> notice in any new XWiki version, but for now it does the job (for me at
> least).
>
> Sure there is a better way, to do this, (or at least it should ;)) but I
> do not know about it.
>
> > I have a page that includes a LiveTable to show the results of a query
> on an external database, and a form triggers an AJAX call to modify the
> database (e.g., insert a new row). I'd like the AJAX call to include an
> action within OnSuccess to make the LiveTable refresh to show these
> modifications.
> >
> >
> http://xwiki.475771.n2.nabble.com/Proposal-Hightlight-applied-filters-in-li…
> > and
> > http://jira.xwiki.org/browse/XWIKI-5100
> > appear to discuss something of this kind, but I couldn't find any
> instructions. The closest thing was a line in livetable.js
> >
> https://github.com/xwiki/xwiki-platform/blob/4f92c9fc4dc9d4bb7b42a54f3e289f…
> > where it looks like a refresh is triggered on event
> "xwiki:livetable:mylivetable:filtersChanged". I have tried calling
> > document.fire('xwiki:livetable:mylivetable:filtersChanged');
> > from within a javascript function, but this did not appear to make the
> "mylivetable" LiveTable update. Could anyone direct me further?
> >
> > Thanks,
> >
> > Bryn
> > _______________________________________________
> > users mailing list
> > users(a)xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 27 Jan 2015 18:37:55 +0100
> From: Guillaume Lerouge <guillaume(a)xwiki.com>
> To: XWiki Users <users(a)xwiki.org>
> Subject: Re: [xwiki-users] Manage rights for author
> Message-ID:
> <CALC6keWLgRX-uiWdBfqEEd-ByXoC_o1VhWsrK=
> dd8v1ARbp9pg(a)mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> Hi Marc,
>
> by default, the creator of a page has edit rights on that page. If that
> users switches to "advanced mode" on their user profile, then go back to
> their page, they will be able to see an "Access rights" option in the
> "Edit" button.
>
> Thanks,
>
> Guillaume
>
> On Tue, Jan 27, 2015 at 9:31 AM, Marc AUDEFROY <audefroy.marc(a)gmail.com>
> wrote:
>
> > Hi all!
> >
> > How could an author manage the rights on the pages he created? How put
> > this default behavior?
> >
> > Thanks!
> >
> > Marc
> > _______________________________________________
> > users mailing list
> > users(a)xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 27 Jan 2015 18:33:51 +0000
> From: Bryn Jeffries <bryn.jeffries(a)sydney.edu.au>
> To: "vincent(a)massol.net" <vincent(a)massol.net>, XWiki Users
> <users(a)xwiki.org>
> Subject: Re: [xwiki-users] Error: The Context Component Manager should
> only be used for read access.
> Message-ID: <7DAF466372B27747B8EA808BE5651FA57AD73440@ex-mbx-pro-01>
> Content-Type: text/plain; charset="Windows-1252"
>
> Vincent said:
> >> Using Utils.getRootComponentManager() worked for me, so many thanks.
> >> Even using a deprecated method lets me progress with the task.
> >
> > The recommended way is the one I?ve now documented at
> >
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module#HAcce…
>
> Thanks very much. Using services.component.getComponentManager(null) worked
> fine. FWIW I see that the the related problem I observed on your website
> http://platform.xwiki.org/xwiki/bin/view/SRD/ was down to
> Utils.getComponentManager() being called from
> AppWithinMinutes.DynamicMessageTool, which has since been updated in XWiki
> 6.3. It might be worth backporting a fix so that we can access the
> mentioned page.
>
> Again, many thanks for the prompt help and responses.
>
> Bryn
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 28 Jan 2015 09:11:50 +0100
> From: "=?utf-8?Q?vincent=40massol.net?=" <vincent(a)massol.net>
> To: Bryn Jeffries <bryn.jeffries(a)sydney.edu.au>, XWiki Users
> <users(a)xwiki.org>
> Subject: Re: [xwiki-users] Error: The Context Component Manager should
> only be used for read access.
> Message-ID: <etPan.54c899c6.440badfc.14071(a)vmassol.local>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Bryn,
>
> On 27 Jan 2015 at 19:34:14, Bryn Jeffries (bryn.jeffries(a)sydney.edu.au
> (mailto:bryn.jeffries@sydney.edu.au)) wrote:
>
> > Vincent said:
> > >> Using Utils.getRootComponentManager() worked for me, so many thanks.
> > >> Even using a deprecated method lets me progress with the task.
> > >
> > > The recommended way is the one I?ve now documented at
> > >
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module#HAcce…
> >
> > Thanks very much. Using services.component.getComponentManager(null)
> worked
> > fine. FWIW I see that the the related problem I observed on your website
> > http://platform.xwiki.org/xwiki/bin/view/SRD/ was down to
> > Utils.getComponentManager() being called from
> > AppWithinMinutes.DynamicMessageTool, which has since been updated in
> XWiki
> > 6.3. It might be worth backporting a fix so that we can access the
> > mentioned page.
>
> Fixed, thanks
> -Vincent
>
> > Again, many thanks for the prompt help and responses.
> >
> > Bryn
>
>
>
> ------------------------------
>
> Message: 5
> Date: Wed, 28 Jan 2015 11:11:41 +0000
> From: <Ricardo.Julio.Rodriguez.Fernandez(a)sergas.es>
> To: <users(a)xwiki.org>
> Subject: [xwiki-users] some issues upgrading to 6.4
> Message-ID:
> <DC9A560C773D69488F5B7B26AC06497943729140(a)ASSCC760S.sergas.local>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Good morning!
>
> I've just updated a 6.3 installation to 6.4 and it seems to me that
> something went wrong... I think I followed the same steps I successfully
> did in previous upgrades of the 6.x series, but this time it doesn't work.
> The process is outlined in the first comment of this page...
>
> http://atriumkm.idisantiago.es/bin/ICT/XWikiUpgrade
>
> This time, the last line was not true...
>
> "The upgrade of the interface will be launched once an administrator log
> in."
>
> Nothing happened once I've restarted the server. Thus, I've tried to
> import the 6.4 xar file. After a number of "bad gateway errors", I managed
> to import all new files selecting only some pages in a series of import
> actions. Then, change default Admin password, remove login right to Guest
> and config again All and Admin groups.
>
> Almost all seems OK now, but there are at least a couple of issues here...
>
> 1) The installation keeps telling that it is a 6.3 release. This means
> that $xwiki.getVersion() is not aware of the update, or that the update has
> not succeed! You can check it here...
>
> http://portal.idisantiago.es
> http://portal.idisantiago.es/xwiki/bin/view/ICT/GetVersion
>
> 2) All top level links at
> http://portal.idisantiago.es/xwiki/bin/admin/XWiki/XWikiPreferences
> (Configuration, Email, Look & Feel, ), led to this error...
>
>
> http://portal.idisantiago.es/xwiki/bin/download/ICT/Error/UpgradeTo6.4.Rele…
>
> Please, could you help me with this issues?
>
> Thanks!
>
> Ricardo
>
> --
> Ricardo Rodr?guez
> Research Management and Promotion Technician
> Technical Secretariat
> Health Research Institute of Santiago de Compostela (IDIS)
> http://www.idisantiago.es
>
> ________________________________
>
> Nota: A informaci?n contida nesta mensaxe e os seus posibles documentos
> adxuntos ? privada e confidencial e est? dirixida ?nicamente ? seu
> destinatario/a. Se vostede non ? o/a destinatario/a orixinal desta mensaxe,
> por favor elim?nea. A distribuci?n ou copia desta mensaxe non est?
> autorizada.
>
> Nota: La informaci?n contenida en este mensaje y sus posibles documentos
> adjuntos es privada y confidencial y est? dirigida ?nicamente a su
> destinatario/a. Si usted no es el/la destinatario/a original de este
> mensaje, por favor elim?nelo. La distribuci?n o copia de este mensaje no
> est? autorizada.
>
> See more languages: http://www.sergas.es/aviso_confidencialidad.htm
>
>
> ------------------------------
>
> Message: 6
> Date: Wed, 28 Jan 2015 12:34:52 +0100
> From: Thomas Mortagne <thomas.mortagne(a)xwiki.com>
> To: XWiki Users <users(a)xwiki.org>
> Subject: Re: [xwiki-users] some issues upgrading to 6.4
> Message-ID:
> <
> CAPnKnLFc9igssu_Bet-YyW4-rtqBxuRTkOaBVbwgZKYtMdwLWA(a)mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> Did you removed solr index as suggested in the release note at
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki64 ?
>
> ""
> In this release, we're now providing an easy way to install SOLR as an
> external server. When doing this change, we moved a plugin inside the
> SOLR index directory. Thus, if you're using XWiki with SOLR in
> embedded mode (the default), when you upgrade, this plugin will not be
> present in your SOLR directory and XWiki will fail to start. To work
> around this problem, you'll need to remove the <permanent
> directory>/solr/ directory (which will trigger a new reindexing when
> you next start XWiki). This will be fixed in XWiki 6.4.1.
> ""
>
> On Wed, Jan 28, 2015 at 12:11 PM,
> <Ricardo.Julio.Rodriguez.Fernandez(a)sergas.es> wrote:
> > Good morning!
> >
> > I've just updated a 6.3 installation to 6.4 and it seems to me that
> something went wrong... I think I followed the same steps I successfully
> did in previous upgrades of the 6.x series, but this time it doesn't work.
> The process is outlined in the first comment of this page...
> >
> > http://atriumkm.idisantiago.es/bin/ICT/XWikiUpgrade
> >
> > This time, the last line was not true...
> >
> > "The upgrade of the interface will be launched once an administrator log
> in."
> >
> > Nothing happened once I've restarted the server. Thus, I've tried to
> import the 6.4 xar file. After a number of "bad gateway errors", I managed
> to import all new files selecting only some pages in a series of import
> actions. Then, change default Admin password, remove login right to Guest
> and config again All and Admin groups.
> >
> > Almost all seems OK now, but there are at least a couple of issues
> here...
> >
> > 1) The installation keeps telling that it is a 6.3 release. This means
> that $xwiki.getVersion() is not aware of the update, or that the update has
> not succeed! You can check it here...
> >
> > http://portal.idisantiago.es
> > http://portal.idisantiago.es/xwiki/bin/view/ICT/GetVersion
> >
> > 2) All top level links at
> http://portal.idisantiago.es/xwiki/bin/admin/XWiki/XWikiPreferences
> (Configuration, Email, Look & Feel, ), led to this error...
> >
> >
> http://portal.idisantiago.es/xwiki/bin/download/ICT/Error/UpgradeTo6.4.Rele…
> >
> > Please, could you help me with this issues?
> >
> > Thanks!
> >
> > Ricardo
> >
> > --
> > Ricardo Rodr?guez
> > Research Management and Promotion Technician
> > Technical Secretariat
> > Health Research Institute of Santiago de Compostela (IDIS)
> > http://www.idisantiago.es
> >
> > ________________________________
> >
> > Nota: A informaci?n contida nesta mensaxe e os seus posibles documentos
> adxuntos ? privada e confidencial e est? dirixida ?nicamente ? seu
> destinatario/a. Se vostede non ? o/a destinatario/a orixinal desta mensaxe,
> por favor elim?nea. A distribuci?n ou copia desta mensaxe non est?
> autorizada.
> >
> > Nota: La informaci?n contenida en este mensaje y sus posibles documentos
> adjuntos es privada y confidencial y est? dirigida ?nicamente a su
> destinatario/a. Si usted no es el/la destinatario/a original de este
> mensaje, por favor elim?nelo. La distribuci?n o copia de este mensaje no
> est? autorizada.
> >
> > See more languages: http://www.sergas.es/aviso_confidencialidad.htm
> > _______________________________________________
> > users mailing list
> > users(a)xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
>
>
>
> --
> Thomas Mortagne
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
>
> ------------------------------
>
> End of users Digest, Vol 90, Issue 36
> *************************************
>