Hello,
Is there a way to configure SMTP Server (for email notifications) in
xwiki.cfg or xwiki.properties (or any core files) instead of in the
XWiki.XWikiPreferences page ? Indeed, like I use a farm, I'd prefer to set
up it once and not in all wikis. I know that I can use wiki template to make
it easier but I'd prefer to set up SMTP Server only once and not to use a
"trick".
Do you know if it's possible ?
Thanks,
Marine
Hello!
My experience with classes in XWiki is obtained after creating a Todo
application. The tutorial is published here:
http://www.theserverside.com/news/1363830/XWiki-A-Platform-for-Collaborativ…
It is obsoleted, but I've got the basics.
There is a class fabric at XWiki.XWikiClasses. It is straightforward to
create a Class, a Sheet and a Template using this fabric. Sheet is being
used to hold control over presentation of increasing number of class
instances and Template injects a reference to Sheet in new instances.
Everything is fine, but I don't understand how to hold control over page
titles. That is, if once in a blue moon I will want to change title
format from $doc.getObject('SomeSpace.SomeClass').get('SomeField') to
something different, every class instance must be affected (except those
ones which have their title edited manually).
My naive tries don't work as expected. Is it ever possible?
--
If you want to get to the top, you have to start at the bottom
Hi,
I've used the code snippet included in this thread to display a list of
sub-spaces and pages under a space and seems to work very well. However, if
Admin has created a page within s space then, normal users will not see the
Admin created pages (even though they have access rights to these pages and
can browse to them directly).
I am guessing that this might be the search documents query within the code
snippet not returning results of pages created by Admin? (I am new to all
things xwiki/velocity/etc so I am really guessing here!)
Is there any way to modify the code snippet to allow normal users to see all
children pages of a space for which they supposedly have access rights?
Thanks in advance for any help on this.
Regards,
PM
Does anybody had this idea before?
I'd like to establish the mapping as follows:
http://something.metrolace.ru/Page ->
http://metrolace.ru/bin/view/Something/Page/http://something.another.metrolace.ru/ ->
http://metrolace.ru/bin/view/SomethingAnother/WebHome/
That is, the whole domain is a collaborative wiki with
pretty short URLs. New domains are being created on demand
because they are essentially good old Spaces.
I'm going to use url_rewrite in Squid (in particular, because I
don't know why it's so difficult to get rid of /bin/) and custom
XWikiURLFactory implementation.
Any advices? Did somebody already write custom URLFactory before?
--
If you want to get to the top, you have to start at the bottom
Hello,
To understand how the creation of xwiki component works, I followed the
tutorial at
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents and I
previously read the Building XWiki from sources page (
http://dev.xwiki.org/xwiki/bin/view/Community/Building). My goal is to
integrate the HelloWorld component (the tutorial one) in my xwiki instance
and to be able to access it in page by velocity.
Here is what I did :
* install maven 3.0 beta and put the settings.xml files in the .m2
* download the xwiki-archetype-velocity-component-1.0-SNAPSHOT.jar<http://platform.xwiki.org/xwiki/bin/download/DevGuide/WritingComponents/xwi…>,
install it and generate the xwiki component from it
* in the pom.xml of the component, I replace the
<platform.core.version>1.8-SNAPSHOT</platform.core.version> by
<platform.core.version>2.3-SNAPSHOT</platform.core.version>
Then, I tried to install the component (with mvn install) in order to create
a jar I can put in my WEB-INF/lib directory. But, I had the following error
:
*[INFO] Scanning for projects...*
> *[INFO]*
> *[INFO]
> ------------------------------------------------------------------------*
> *[INFO] Building xwiki-essai-component 1.1-SNAPSHOT*
> *[INFO]
> ------------------------------------------------------------------------*
> *[WARNING] Missing POM for velocity-tools:velocity-tools:jar:1.4*
> *[INFO]
> ------------------------------------------------------------------------*
> *[INFO] BUILD FAILURE*
> *[INFO]
> ------------------------------------------------------------------------*
> *[INFO] Total time: 1.050s*
> *[INFO] Finished at: Tue Jul 06 13:25:45 CEST 2010*
> *[INFO] Final Memory: 2M/4M*
> *[INFO]
> ------------------------------------------------------------------------*
> *[ERROR] Failed to execute goal on project xwiki-essai-component: Missing:
> *
> *----------*
> *1) org.xwiki.platform:xwiki-core-component:jar:2.3-SNAPSHOT*
> * Try downloading the file manually from the project website.*
> * Then, install it using the command:*
> * mvn install:install-file -DgroupId=org.xwiki.platform
> -DartifactId=xwiki-c*
> *ore-component -Dversion=2.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
> *
> * Alternatively, if you host your own repository you can deploy the file
> there:*
> * mvn deploy:deploy-file -DgroupId=org.xwiki.platform
> -DartifactId=xwiki-core-component -Dversion=2.3-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]*
> * Path to dependency:*
> * 1) com.xpn.xwiki.products:xwiki-essai-component:pom:1.1-SNAPSHOT*
> * 2) org.xwiki.platform:xwiki-core-component:jar:2.3-SNAPSHOT*
> *----------*
> *1 required artifact is missing.*
> *for artifact:*
> * com.xpn.xwiki.products:xwiki-essai-component:pom:1.1-SNAPSHOT*
> *from the specified remote repositories:*
> * xwiki-externals (http://maven.xwiki.org/externals, releases=true,
> snapshots=true),*
> * xwiki-releases (http://maven.xwiki.org/releases, releases=true,
> snapshots=false),*
> * xwiki-snapshots (http://maven.xwiki.org/snapshots, releases=false,
> snapshots=true),*
> * central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
> *
> *-> [Help 1]*
> *[ERROR]*
> *[ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.*
> *[ERROR] Re-run Maven using the -X switch to enable full debug logging.*
> *[ERROR]*
> *[ERROR] For more information about the errors and possible solutions,
> please read the following articles:*
> *[ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MultipleArtifactsNotFoundE…
> *
>
I'm new in Maven so i don't understand where is the problem. But I
dowloaded, as explained, the file
missing<http://maven.xwiki.org/snapshots/org/xwiki/platform/xwiki-core-component/2.…>and
install it with :
*mvn install:install-file -DgroupId=org.xwiki.platform
-DartifactId=xwiki-core-component -Dversion=2.3-20100702.153251-358
-Dpackaging=jar -Dfile=C:\Users\fnac\Desktop\May\testMVN\pom.xml*
This time, the build succeeded but I didn't have any jar file. And, when I
tried again "mvn install", I had the same error.
I also tried "mvn -nsu clean install" (I read that somewhere) and it was the
same.
Do I miss something ? Is "mvn install" the good way to have a jar ? (I tried
"mvn package" too)
Marine
Hello.
As you probably noticed some of the colibri menu icons recently modified,
especially the ones which have white as a base color, doesn`t look nice at
all on a white background. That`s why I added a light gray border in order
to make them look nice on white bg. Here you can see the result:
http://incubator.myxwiki.org/xwiki/bin/view/Ciprian/Icons
You will notice that their aspect is also changed a little, for darker
backgrounds but it shouldn`t be that visually disturbing. They are still
16x16 px.
If everyone agree I will make a patch with the new version.
Thanks.
--
Ciprian,
Designer
XWiki
All,
I am having issues on an upgraded and a clean install of XWiki
2.3.1. I attach a jar file (configBackup.jar) and try to use that in
my groovy script as follows:
{{groovy jars="attach:configBackup.jar"}}
import path.to.my.class;
...
...
{{/groovy}}
The thread which is processing the page crashes with a the following
stack trace visible in the catalina.out of Tomcat:
2010-07-06 11:08:34,014
[http://192.168.54.50:8080/xwiki/bin/view/TelnetBackup/BackUpAction]
DEBUG ternal.DefaultConverterManager - Failed to find a proper
Converter for type [java.lang.String]
org.xwiki.component.manager.ComponentLookupException: Can't find
descriptor for the component [role =
[org.xwiki.properties.converter.Converter] hint = [java.lang.String]]
at org.xwiki.component.embed.EmbeddableComponentManager.initialize(EmbeddableComponentManager.java:356)
at org.xwiki.component.embed.EmbeddableComponentManager.lookup(EmbeddableComponentManager.java:109)
at org.xwiki.component.internal.DefaultComponentManager.lookup(DefaultComponentManager.java:85)
at org.xwiki.properties.internal.DefaultConverterManager.lookupConverter(DefaultConverterManager.java:75)
at org.xwiki.properties.internal.DefaultConverterManager.convert(DefaultConverterManager.java:55)
at org.xwiki.properties.internal.DefaultBeanManager.populateBean(DefaultBeanManager.java:125)
at org.xwiki.properties.internal.DefaultBeanManager.populate(DefaultBeanManager.java:80)
at org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:160)
at org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:119)
at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72)
at com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7213)
at com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7188)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:797)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:811)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:525)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java: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.evaluateTemplate(XWiki.java:1791)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1729)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:837)
at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java: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:1840)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1761)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:154)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:224)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:304)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)
The page is never rendered and the browser just keeps showing busy
until it times out.
Any suggestions or help would be greatly appreciated.
Thanks,
Deven Phillips
Hi,
I was trying to use the DatePicker Application inside a Modal Box
Application. The problem is that the DatePicker pop-up appears behind the
modal box. I try to use the zindex property. But it doesn't work.
This is the code I am using:
afterLoad: function() { var dpicker = new DatePicker({relative :
'fieldName', language : 'us', zindex: '3000'});}
Regards,
Abel