Re: [xwiki-users] FAQTutorial broken in 1.9 and 2.0M1
Hi Aaron, On Sat, Jun 27, 2009 at 1:55 AM, Aaron Digulla wrote: > Asiri Rathnayake schrieb: > > > So, when you complete the tutorial there should be three wiki pages > created: > > > > 1. One document for the Class definition (FAQs.FAQClass) > > > > 2. One document for the sheet (FAQs.FAQClassSheet) > > > > 3. One document for the template (FAQs.FAQClassTemplate) > > > > Questions for you: > > > > 1. Do you have all these three documents? > > 2. Are the syntax of all these documents set to xwiki/2.0 > > > > 3. On the sheet & template, are you sure you have the correct wiki code? > > That is sheet document should be referring the correct class document > > (FAQs.FAQClass) and the template document should be referring the > correnct > > sheet document (FAQs.FAQSheet). > > Okay, I think I got it now: After creating the class and the sheet, the > document you see is empty (the sheet). This is confusing since the class > exists and it has properties, so why is XWiki not displaying them? Because a 'sheet' (as described in the tutorial) is only a presentation template for an _OBJECT_ of a specific class. So, if you do not have an object of a class attached to that page you won't see any output. Think of it like this: 1. You create a class XWiki.MyClass 2. You create a 'sheet' (XWiki.MyClassSheet) that knows how to 'present' objects of type XWiki.MyClass 3. You create a page (MySpace.MyPage) and add it an object of type XWiki.MyClass 4. Inside the content of MySpace.MyPage you delegate the presentation of your XWiki.MyClass object to XWiki.MyClassSheet. (This is what is done with the includeForm directive) 5. The 'template' is only part of the class wizard to make (page+object) creation easier. I strongly agree with vincent here. Neither 'sheet' nor 'template' are core constructs of xwiki, they are just part of the class wizard which is an specific (yet another) application. For an example, I can do this: 1. I create a class (XWiki.Person) - Note that it doesn't have to be 'XWiki.PersonClass', although the class wizard application needs it to be so. 2. I create a web application (html forms) that asks a user to insert "first name" and "last name" of a person. 3. When the user submits the form, I create a new 'Object' of type 'XWiki.PersonClass' and add it to the Main.People page (say). 4. Users can add as many person records to Main.People as they wish (using my application or dierctly by editing objects of Main.People) 5. I create a 'sheet' (XWiki.PeopleDisplay) that can present a list of (XWiki.Person) objects. - Again it doesn't have to be XWiki.PersonSheet - As opposed to the FAQ tutorial, here XWiki.PeopleDisplay is displaying a "list" of XWiki.Person objects. 6. I include (XWiki.PeopleDisplay) in Main.People page's content (includeForm). 7. Voila! When you visit Main.People page, you see a list of persons added so far. Displayed so nicely by the sheet (XWiki.PeopleDisplay). 8. I can edit the 'sheet' (XWiki.PeopleDisplay) any time I want to chage the look of the persons list. 9. All of these can be done without compiling a single line of code, everything is built by editing wiki pages. And if you want, you can put ajax to the mix!!! (again by editing wiki pages). 10. (9) is what is s cool about xwiki :) I only hope I didn't make your understanding of xwiki worse :) Thanks. - Asiri ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] FAQTutorial broken in 1.9 and 2.0M1
Hi Aaron, On Jun 26, 2009, at 10:25 PM, Aaron Digulla wrote: > Asiri Rathnayake schrieb: > >> So, when you complete the tutorial there should be three wiki pages >> created: >> >> 1. One document for the Class definition (FAQs.FAQClass) >> >> 2. One document for the sheet (FAQs.FAQClassSheet) >> >> 3. One document for the template (FAQs.FAQClassTemplate) >> >> Questions for you: >> >> 1. Do you have all these three documents? >> 2. Are the syntax of all these documents set to xwiki/2.0 >> >> 3. On the sheet & template, are you sure you have the correct wiki >> code? >> That is sheet document should be referring the correct class document >> (FAQs.FAQClass) and the template document should be referring the >> correnct >> sheet document (FAQs.FAQSheet). > > Okay, I think I got it now: After creating the class and the sheet, > the > document you see is empty (the sheet). This is confusing since the > class > exists and it has properties, so why is XWiki not displaying them? I don't understand what you mean. The sheet doesn't contain any class. > IMHO, it would be better to automatically create the sheet and > template > along with the class and attach an object of the class with the > template > right away. That would allow need a lot less clicks and edits and > yield > the same result. This class wizards stuff is just a small application to help you creating classes. The notion of sheets and templates are also not core constructs. In lots of cases you don't even need them. It really depend what you're doing. If everything was hidden it would be nice and automagical but you wouldn't understand what you're doing. Still I agree that we would need to work on the class wizard application. It hasn't been touched for years and would greatly benefit from a big overhaul. > Also, this replacing of names must go. I already entered this > information and XWiki should use it (instead of having me to reenter > it > three times). Yes, I agree. > Lastly, adding another property should not throw away the edits I made > to existing properties. It doesn't for me. This is actually what I did in the demo at jazoon: I created several properties before click on save. Thanks -Vincent PS: Keep sending feedback and ideas (even though we're aware of most of them - what we really need are patches to progress ;)). ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] FAQTutorial broken in 1.9 and 2.0M1
Asiri Rathnayake schrieb: > So, when you complete the tutorial there should be three wiki pages created: > > 1. One document for the Class definition (FAQs.FAQClass) > > 2. One document for the sheet (FAQs.FAQClassSheet) > > 3. One document for the template (FAQs.FAQClassTemplate) > > Questions for you: > > 1. Do you have all these three documents? > 2. Are the syntax of all these documents set to xwiki/2.0 > > 3. On the sheet & template, are you sure you have the correct wiki code? > That is sheet document should be referring the correct class document > (FAQs.FAQClass) and the template document should be referring the correnct > sheet document (FAQs.FAQSheet). Okay, I think I got it now: After creating the class and the sheet, the document you see is empty (the sheet). This is confusing since the class exists and it has properties, so why is XWiki not displaying them? IMHO, it would be better to automatically create the sheet and template along with the class and attach an object of the class with the template right away. That would allow need a lot less clicks and edits and yield the same result. Also, this replacing of names must go. I already entered this information and XWiki should use it (instead of having me to reenter it three times). Lastly, adding another property should not throw away the edits I made to existing properties. Regards, -- Aaron "Optimizer" Digulla a.k.a. Philmann Dark "It's not the universe that's limited, it's our imagination. Follow me and I'll show you something beyond the limits." http://darkviews.blogspot.com/ http://www.pdark.de/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] FAQTutorial broken in 1.9 and 2.0M1
Zitat von Asiri Rathnayake : >> Give me 10 mins, I'm trying the tutorial now :) > Ok, I just tried the tutorial on 2.0-SNAPSHOT and it works ok except for the > syntax change. You need to make sure the page syntax is set to xwiki/1.0. Thanks for the effort. I'll give this a try this afternoon and let you know what I get plus I'll post the wiki code. Regards, -- Aaron "Optimizer" Digulla a.k.a. Philmann Dark "It's not the universe that's limited, it's our imagination. Follow me and I'll show you something beyond the limits." http://www.pdark.de/ http://blog.pdark.de/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] FAQTutorial broken in 1.9 and 2.0M1
> > > 2. Are the syntax of all these documents set to xwiki/2.0 > Correction, xwiki/1.0 Thanks. - Asiri ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] FAQTutorial broken in 1.9 and 2.0M1
Hi, Or rather: Can someone, who knows XWiki for more than five minutes >> (like me) spend an hour to follow the FAQ tutorial and make it work >> with XWiki 1.9? >> >> I mean that was *the* feature which Vincent proudly presented at the >> Jazoon and it's *completely* broken with the current *release*! Guys, >> please, this must not happen! >> >> With OSS, you get only a single chance to piss people off forever. >> > > Give me 10 mins, I'm trying the tutorial now :) > Ok, I just tried the tutorial on 2.0-SNAPSHOT and it works ok except for the syntax change. You need to make sure the page syntax is set to xwiki/1.0. So, when you complete the tutorial there should be three wiki pages created: 1. One document for the Class definition (FAQs.FAQClass) 2. One document for the sheet (FAQs.FAQClassSheet) 3. One document for the template (FAQs.FAQClassTemplate) Questions for you: 1. Do you have all these three documents? 2. Are the syntax of all these documents set to xwiki/2.0 3. On the sheet & template, are you sure you have the correct wiki code? That is sheet document should be referring the correct class document (FAQs.FAQClass) and the template document should be referring the correnct sheet document (FAQs.FAQSheet). Thanks. - Asiri ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] FAQTutorial broken in 1.9 and 2.0M1
Hi, I just clicked on the buttons in the order the tutorial and the text > on the wiki pages told me. I'm not aware that I created an instance of > the class, yet. What I'm sure is that the class got created (coz I can > add properties to it) and I copied the name of the class with > cut&paste from the "edit properties for class " page. > > How can I check that this object exists? > > How can I add one if it doesn't exist? Select Edit-> Objects. Usually there is always an object of type "XWiki.TagClass" added to your page by default. Other than this, in your case there should be an Object of type "XWiki.CharacterClass" also present on the document for following code to work: #set($obj = $doc.getObject("XWiki.CharacterClass")) obj=${obj} #set($class = $doc.getObject("XWiki.CharacterClass").xWikiClass) class=${class} If no such object is present, use the 'Add Object' panel on the right side (Edit->Object view) to add an object. If you have a class named "XWiki.CharacterClass" correctly created, it should appear on the list of classes on the 'Add Object' panel. > > > Or rather: Can someone, who knows XWiki for more than five minutes > (like me) spend an hour to follow the FAQ tutorial and make it work > with XWiki 1.9? > > I mean that was *the* feature which Vincent proudly presented at the > Jazoon and it's *completely* broken with the current *release*! Guys, > please, this must not happen! > > With OSS, you get only a single chance to piss people off forever. > Give me 10 mins, I'm trying the tutorial now :) Thanks. - Asiri ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] FAQTutorial broken in 1.9 and 2.0M1
Zitat von Asiri Rathnayake : >> Okay, that's what I was missing. Now the *ClassSheet can be edited but I >> get an empty page (well, except for the header). I tried this: >> >> #set($obj = $doc.getObject("XWiki.CharacterClass")) >> obj=${obj} >> >> #set($class = $doc.getObject("XWiki.CharacterClass").xWikiClass) >> class=${class} >> >> >> which gives me >> >> >> obj=${obj} >> >> class=${class} >> >> >> >> in the output which probably means that it can't look up the class via >> getObject(). Any ideas what could be wrong, now? > > > Are you sure you have an Object of type "XWiki.CharacterClass" added to your > page? I just clicked on the buttons in the order the tutorial and the text on the wiki pages told me. I'm not aware that I created an instance of the class, yet. What I'm sure is that the class got created (coz I can add properties to it) and I copied the name of the class with cut&paste from the "edit properties for class " page. How can I check that this object exists? How can I add one if it doesn't exist? Or rather: Can someone, who knows XWiki for more than five minutes (like me) spend an hour to follow the FAQ tutorial and make it work with XWiki 1.9? I mean that was *the* feature which Vincent proudly presented at the Jazoon and it's *completely* broken with the current *release*! Guys, please, this must not happen! With OSS, you get only a single chance to piss people off forever. Regards, -- Aaron "Optimizer" Digulla a.k.a. Philmann Dark "It's not the universe that's limited, it's our imagination. Follow me and I'll show you something beyond the limits." http://www.pdark.de/ http://blog.pdark.de/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] FAQTutorial broken in 1.9 and 2.0M1
Hi, On Fri, Jun 26, 2009 at 2:08 AM, Aaron Digulla wrote: > Vincent Massol schrieb: > > On Jun 25, 2009, at 8:45 PM, Jean Couteau wrote: > > > >> Aaron Digulla a écrit : > >>> Aaron Digulla schrieb: > >>> > >>> > Okay, I got past the creation of the class but now it fails in > "Create > Document Sheet" with: > > content: No renderer found for target syntax [XWiki 1.0] > > >>> Same happens with XWiki 2.0M1. Seriously, is there a version of XWiki > >>> where this works? > >>> > >>> Regards, > >>> > >>> > >> Yes, older versions, > >> > >> in fact there was a change of syntax between versions 1.8 and 1.9 > >> (Vincent, correct me if I am wrong). > >> > >> I use that on xwiki 1.5 everyday. > >> > >> I did not try the last versions yet, but i reckon that if you change > >> your config to xwiki 1.0 for default syntax like Vincent told you, it > >> should work on 1.9 or 2.0 > > > > yes exactly. That's what I did at jazoon for my demo (i.e set the > > default syntax to be 1.0). > > > > To change to syntax 1.0 for newly created pages see the instructions > > here: > > > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HConfiguringWikiSyntaxesanddefaultSyntax > > Okay, that's what I was missing. Now the *ClassSheet can be edited but I > get an empty page (well, except for the header). I tried this: > > #set($obj = $doc.getObject("XWiki.CharacterClass")) > obj=${obj} > > #set($class = $doc.getObject("XWiki.CharacterClass").xWikiClass) > class=${class} > > > which gives me > > > obj=${obj} > > class=${class} > > > > in the output which probably means that it can't look up the class via > getObject(). Any ideas what could be wrong, now? Are you sure you have an Object of type "XWiki.CharacterClass" added to your page? Thanks. - Asiri ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] FAQTutorial broken in 1.9 and 2.0M1
Vincent Massol schrieb: > On Jun 25, 2009, at 8:45 PM, Jean Couteau wrote: > >> Aaron Digulla a écrit : >>> Aaron Digulla schrieb: >>> >>> Okay, I got past the creation of the class but now it fails in "Create Document Sheet" with: content: No renderer found for target syntax [XWiki 1.0] >>> Same happens with XWiki 2.0M1. Seriously, is there a version of XWiki >>> where this works? >>> >>> Regards, >>> >>> >> Yes, older versions, >> >> in fact there was a change of syntax between versions 1.8 and 1.9 >> (Vincent, correct me if I am wrong). >> >> I use that on xwiki 1.5 everyday. >> >> I did not try the last versions yet, but i reckon that if you change >> your config to xwiki 1.0 for default syntax like Vincent told you, it >> should work on 1.9 or 2.0 > > yes exactly. That's what I did at jazoon for my demo (i.e set the > default syntax to be 1.0). > > To change to syntax 1.0 for newly created pages see the instructions > here: > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HConfiguringWikiSyntaxesanddefaultSyntax Okay, that's what I was missing. Now the *ClassSheet can be edited but I get an empty page (well, except for the header). I tried this: #set($obj = $doc.getObject("XWiki.CharacterClass")) obj=${obj} #set($class = $doc.getObject("XWiki.CharacterClass").xWikiClass) class=${class} which gives me obj=${obj} class=${class} in the output which probably means that it can't look up the class via getObject(). Any ideas what could be wrong, now? I'll also try with 1.5 ... okay, I don't have the problems with the editors in 1.5 but it also can't find the class. What's this "Web" variable supposed to do? Regards, -- Aaron "Optimizer" Digulla a.k.a. Philmann Dark "It's not the universe that's limited, it's our imagination. Follow me and I'll show you something beyond the limits." http://darkviews.blogspot.com/ http://www.pdark.de/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] FAQTutorial broken in 1.9 and 2.0M1
On Jun 25, 2009, at 8:45 PM, Jean Couteau wrote: > Aaron Digulla a écrit : >> Aaron Digulla schrieb: >> >> >>> Okay, I got past the creation of the class but now it fails in >>> "Create >>> Document Sheet" with: >>> >>> content: No renderer found for target syntax [XWiki 1.0] >>> >> >> Same happens with XWiki 2.0M1. Seriously, is there a version of XWiki >> where this works? >> >> Regards, >> >> > Yes, older versions, > > in fact there was a change of syntax between versions 1.8 and 1.9 > (Vincent, correct me if I am wrong). > > I use that on xwiki 1.5 everyday. > > I did not try the last versions yet, but i reckon that if you change > your config to xwiki 1.0 for default syntax like Vincent told you, it > should work on 1.9 or 2.0 yes exactly. That's what I did at jazoon for my demo (i.e set the default syntax to be 1.0). To change to syntax 1.0 for newly created pages see the instructions here: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HConfiguringWikiSyntaxesanddefaultSyntax That said it also works fine with pages created by default in xwiki syntax 2.0 provided you that for all newly created page you make sure to set them to 1.0 before saving the page. That means for: 1) class page 2) sheet page 3) template page 4) page to list all FAQ entries for ex Best change the default syntax to 1.0 if you prefer. Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] FAQTutorial broken in 1.9 and 2.0M1
Aaron Digulla a écrit : > Aaron Digulla schrieb: > > >> Okay, I got past the creation of the class but now it fails in "Create >> Document Sheet" with: >> >> content: No renderer found for target syntax [XWiki 1.0] >> > > Same happens with XWiki 2.0M1. Seriously, is there a version of XWiki > where this works? > > Regards, > > Yes, older versions, in fact there was a change of syntax between versions 1.8 and 1.9 (Vincent, correct me if I am wrong). I use that on xwiki 1.5 everyday. I did not try the last versions yet, but i reckon that if you change your config to xwiki 1.0 for default syntax like Vincent told you, it should work on 1.9 or 2.0 Best regards, Jean. -- Jean Couteau Code Lutin - http://www.codelutin.com 44 Bd des Pas Enchantés - 44230 St-Sébastien/Loire Tél : 02 40 50 29 28 - Fax : 09 59 92 29 28 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] FAQTutorial broken in 1.9 and 2.0M1
Aaron Digulla schrieb: > Okay, I got past the creation of the class but now it fails in "Create > Document Sheet" with: > > content: No renderer found for target syntax [XWiki 1.0] Same happens with XWiki 2.0M1. Seriously, is there a version of XWiki where this works? Regards, -- Aaron "Optimizer" Digulla a.k.a. Philmann Dark "It's not the universe that's limited, it's our imagination. Follow me and I'll show you something beyond the limits." http://darkviews.blogspot.com/ http://www.pdark.de/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users