Re: [xwiki-users] get prop from a class...

2009-12-16 Thread Bubulina
...ah! you were right Anca, i forgot to add the object from that class. Danke lucaa wrote: > > > > On 12/16/2009 03:58 PM, Josh wrote: >> Hello, >> >> Bubulina wrote: >>> Hello Sergiu, >>> >>> it was a typo when i wrote by hand the code here. >>> I include the TestClass, that has the propert

Re: [xwiki-users] get prop from a class...

2009-12-16 Thread Anca Luca
On 12/16/2009 03:58 PM, Josh wrote: > Hello, > > Bubulina wrote: >> Hello Sergiu, >> >> it was a typo when i wrote by hand the code here. >> I include the TestClass, that has the properties, but the line that should >> give me the object from it: >> #set($object = $document.getObject("spaceName.T

Re: [xwiki-users] get prop from a class...

2009-12-16 Thread Josh
Hello, Bubulina wrote: > Hello Sergiu, > > it was a typo when i wrote by hand the code here. > I include the TestClass, that has the properties, but the line that should > give me the object from it: > #set($object = $document.getObject("spaceName.TestClass").xWikiClass) > returns nothing... >

Re: [xwiki-users] get prop from a class...

2009-12-16 Thread Bubulina
Hello Sergiu, it was a typo when i wrote by hand the code here. I include the TestClass, that has the properties, but the line that should give me the object from it: #set($object = $document.getObject("spaceName.TestClass").xWikiClass) returns nothing... Sergiu Dumitriu-2 wrote: > > On 12/16/

Re: [xwiki-users] get prop from a class...

2009-12-16 Thread Sergiu Dumitriu
On 12/16/2009 02:08 PM, Bubulina wrote: > > Hello > > 1. i create a class and add n properties. besides the properties added i > have this code: > #set( $class = $doc.name.substring(0,$doc.name.indexOf("Class"))) > #set($defaultparent = "XWiki.${class}Class") > #set($defaultweb = "Test") > #include

[xwiki-users] get prop from a class...

2009-12-16 Thread Bubulina
Hello 1. i create a class and add n properties. besides the properties added i have this code: #set( $class = $doc.name.substring(0,$doc.name.indexOf("Class"))) #set($defaultparent = "XWiki.${class}Class") #set($defaultweb = "Test") #includeForm("XWiki.ClassSheet") 2. i create doc where i inclu