cancel
Showing results for 
Search instead for 
Did you mean: 

creating new wizard

califa198
Champ in-the-making
Champ in-the-making
Hello

I am pretty new to alfresco development, i am now trying to develop a new kind of space wizard, in this wizard i want to skip a couple of steps from the spacewizard, i was just wondering, what is the best way to go about it, i wanted to skip steps, and reuse the code for a regular wizard, but setting the space i am creating to its spaceType. sorry to bother with this, any help would be great. Thanks
3 REPLIES 3

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

This wiki page should be helpful (http://wiki.alfresco.com/wiki/Wizard_Framework).

Cheers,

–Alaaeldin

califa198
Champ in-the-making
Champ in-the-making
Thanks for the prompt reply rivetLogic, i read the article you sent me and i still have a little problem. I am making a new wizard tag like the following.

         <!– Definition of the createReunion wizard –>
         <wizard name="createReunion" managed-bean="CreateSpaceWizard"
                 title-id="create_reunion_title" description-id="create_reunion_desc"
                 icon="/images/icons/create_space_large.gif">
           
            <step name="details" title-id="space_details" description-id="create_space_step1_desc">
               <page path="/jsp/spaces/create-space-wizard/details.jsp"
                     title-id="create_space_step1_title"
                     description-id="create_space_step1_desc"
                     instruction-id="default_instruction" />
            </step>           
            <step name="summary" title-id="summary" description-id="summary_step_description">
               <page path="/jsp/wizard/summary.jsp"
                     title-id="summary"
                     description-id="summary_desc"
                     instruction-id="create_space_finish_instruction" />
            </step>
         </wizard>

I create a new wizard on web-client-config-wizards.xml, called createReunion wizard, it works fine, it goes to the page selected and there it allows you to place your name, title… it creates the space fine, but it does not give me a spaceType, so what do i do to set the space type?? my customer gave me splicit specifications, and the space should be of type {custom.model}espacioParque (which they created themselves) for what i could see with the regular spaceTypes, all of them are of type {custom.model}SomeSpaceType. but i try to do a script that does document.properties.spaceType = "{custom.model}espacioParque", i am guessing that is not correct. Any light on this issue would be great,

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

If the space needs to be of that type and only that type then you can just write that code in your wizard's backing bean. When the space is being created just create it with the appropriate type.

Hope this helps,

–Alaaeldin