you seem to want to create a wizard for object creation.
add a class property step to that class and in the class sheet use something
like:
#if($obj.get("Step") == 1)
//contents of page 1
#elseif($obj.get("Step") == 1)
//contents of page 2
....
and you can use save and continue button to save each step and in the hidden
html field, you may want to store the step value and increment this by 1
everytime you hit save and continue
Thanks
Sachin
Kamna Jain-2 wrote:
>
> Hello Devs,
>
> Is it possible to render one page with two different class sheets.
> For example, in a 3 page navigation,
> -> We create an object of a class on the first page and add it to the
> second
> page.
> -> But, we do not display the Object properties on the second page,
> instead,
> we add some more properties to that object on that page
> ->on the third page we want to display the object properties.
>
> So, my question is can I just use the same page for the second and third
> page (described above). That one page has the object added to it but will
> display two different things based on the style sheet.
>
> I tried doing this, but it did not replace the class sheet applied the
> first
> time with the second one.
> -> From Page 1 to Page 2, I used
> $response.sendRedirect($newdoc.getURL("save",
> "template=${etemplate}&parent=${eparent}&title=$etitle"))
> where etemplate = Template 1
> This adds
> #includeForm("XWiki.ClassSheet1")
>
> -> From Page 2 - Page2 (with a different template), I used,
> $response.sendRedirect($newdoc.getURL("propupdate",
> "template=${etemplate}&parent=${eparent}&title=$etitle"))
> where etemplate = template 2
>
> This does not replace #includeForm("XWiki.ClassSheet1") , but just adds //
> to the wiki editor and the editor contents look like this:
>
> //
>
> #includeForm("XWiki.ClassSheet1")
>
> I was expecting it to just overwrite it with
> #includeForm("XWiki.ClassSheet2")
>
> Q) Is there any way to remove the template and add a new one....any other
> better way of achieving this.
>
> Thanks a lot for all help
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>
>
-----
http://www.assembla.com/wiki/show/sachin_mittal about me:
--
View this message in context:
http://www.nabble.com/Rendering-one-Xwiki-page-with-2-different-templates---class-sheets-tp17319904p17326798.html
Sent from the XWiki- Dev mailing list archive at Nabble.com.
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs