Hi Aaron, Indeed, we're in a transition period with XWiki Enterprise 1.9 in that the default syntax is now the 2.0 syntax by default but the applications are still in 1.0 syntax. Thus the Class wizard currently generates 1.0 syntax. As Jean said, when a new page is created just make sure to select XWiki 1.0 syntax in the edit panel on the right. You could also change the xwiki config file so that new pages are created in 1.0 syntax but in general we recommend users to try using the new syntax since it's generally better and allows you to get the new wysiwyg editor amongst other things. I've just started converting the class wizard before Jazoon but didn't get the time to finish it hence the reason I did my demo in 1.0 syntax ;) FYI I'll probably be done in a few days, in time for the 1.9.1 release next week. Thanks -Vincent On Jun 24, 2009, at 9:42 PM, Aaron Digulla wrote:
Hi,
After Vincent made my mouth water today at the Jazoon, I wanted to try XWiki but I could get the FAQTutorial to work with the 1.9 release (xwiki-enterprise-installer-generic-1.9-standard.jar). Specifically:
After I enter the two strings "FAQs" and "FAQ" in the text fields, I get this text in the editor:
## replace Main with the Space where you want your documents to be created ## replace the default parent with the one of your choice ## Save this template using the 'Save' button #set( $class = $doc.name.substring(0,$doc.name.indexOf("Class"))) #set($defaultparent = "XWiki.${class}Class") #set($defaultweb = "Main") #includeForm("XWiki.ClassSheet")
This looks good. After save&view, I see this:
replace Main with the Space where you want your documents to be created replace the default parent with the one of your choice Save this template using the 'Save' button #set( $class = $doc.name.substring(0,$doc.name.indexOf("Class"
#set($defaultparent = "XWiki.${class}Class") #set($defaultweb = "Main") #includeForm("XWiki.ClassSheet")
Note how the formatting is completely broken and that some ")" are missing. When I open the page for editing, I see this:
## replace Main with the Space where you want your documents to be created ## replace the default parent with the one of your choice ## Save this template using the 'Save' button #set( $class = $doc.name.substring(0,$doc.name.indexOf("Class"##
#set($defaultparent = "XWiki.${class}Class") #set($defaultweb = "Main") #includeForm("XWiki.ClassSheet")
As you can see, there is suddenly an empty line, the ")))" have been replaced with "##" and the whole thing doesn't work. When I get rid of the Comments near the start and just leave this code:
#set( $class = $doc.name.substring(0,$doc.name.indexOf("Class"))) #set($defaultparent = "XWiki.${class}Class") #set($defaultweb = "Main") #includeForm("XWiki.ClassSheet")
that gets mangles as well:
#set( $class = $doc.name.substring(0,$doc.name.indexOf("Class"
#set($defaultparent = "XWiki.${class}Class") #set($defaultweb = "Main") #includeForm("XWiki.ClassSheet")
Any ideas what could be wrong?
Oh, and when starting XWiki for the first time, I get this exception:
2009-06-24 20:58:26,853 [http://localhost:8080/xwiki/bin/view/Main/] [481877743@qtp0-7] ERROR lucene.LucenePlugin - cannot open index /home/digulla/XWiki Enterprise/jetty/work/Jetty_0_0_0_0_8080_xwiki__xwiki__5alevh/lucene org.apache.lucene.index.CorruptIndexException: failed to locate current segments_N file
at org .apache.lucene.index.IndexFileDeleter.<init>(IndexFileDeleter.java: 207)
at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:722) at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:673) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:523) at com .xpn .xwiki.plugin.lucene.LucenePlugin.createSearchers(LucenePlugin.java: 560)
at com .xpn .xwiki.plugin.lucene.LucenePlugin.openSearchers(LucenePlugin.java:579)
at com.xpn.xwiki.plugin.lucene.LucenePlugin.init(LucenePlugin.java:508) at com .xpn .xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager.java: 155)
at com .xpn .xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager.java:92)
at com .xpn .xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager.java: 120)
at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:1022)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:742)
at com.xpn.xwiki.XWiki.<init>(XWiki.java:670)
which is probably safe to ignore but maybe you can rid of it nonetheless :)
Best regards,