Re: [xwiki-users] How to create multiple objects in the same page?

2011-07-12 Thread Marius Dumitru Florea
On 07/12/2011 03:38 PM, Gianluca Sabena wrote: > Thank you, > How can I save when the document is submitted? > I tried with #if("$context.action" == 'save' ) but no lucky, I can't > catch the "inline save action" > > Any idea? If you use the standard inline action then the document is saved auto

Re: [xwiki-users] How to create multiple objects in the same page?

2011-07-12 Thread Gianluca Sabena
Thank you, How can I save when the document is submitted? I tried with #if("$context.action" == 'save' ) but no lucky, I can't catch the "inline save action" Any idea? Regards, Gianluca On 12/lug/11, at 14:17, Marius Dumitru Florea wrote: > On 07/12/2011 02:17 PM, Gianluca Sabena wrote: >> H

Re: [xwiki-users] How to create multiple objects in the same page?

2011-07-12 Thread Marius Dumitru Florea
On 07/12/2011 02:17 PM, Gianluca Sabena wrote: > Hi, > I would like to create multiple objects and attach to the same > document (page). > > --- velocity script -- > #if("$context.action" == 'inline' ) > #set($obj = $doc.newObject("Intranet.AbPer

[xwiki-users] How to create multiple objects in the same page?

2011-07-12 Thread Gianluca Sabena
Hi, I would like to create multiple objects and attach to the same document (page). --- velocity script -- #if("$context.action" == 'inline' ) #set($obj = $doc.newObject("Intranet.AbPersonClass")) #foreach($prop in $obj.xWikiClass.properties