Well, the answer was not so complex.
I took inspiration from the user registration code for this.
I created a distinct page, MySpace.MyObjectCreation, that is in charge of :
- showing the fields in edit mode for the new object to create
(/xwiki/bin/view/MySpace/MyObjectCreation)
- creating the new page and object and saving it
(/xwiki/bin/view/MySpace/MyObjectCreation?save=true). In this case it also
produces some XML output, so I can manage errors upon Ajax call return, and
update the redirectionUrl accordingly. This way the original page can nicely
show what happened, and display the new object.
The result is quite cool, and will be (one day ...) see-able in the Mail
Archive application I'm working on :)
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Using-Lightbox-to-create-new-page-objet-t…
Sent from the XWiki- Users mailing list archive at
Nabble.com.