cancel
Showing results for 
Search instead for 
Did you mean: 

have a different Wizard Container than the default one

amanjure
Champ in-the-making
Champ in-the-making
Hey Guys,
I am working on a Wizard which sort off looks different from how the default Alfresco containers setup a page.
I would like to have a  different container (than the one in /jsp/wizard/container.jsp) for my wizards but the default alfresco wizards should still keep using the container in /jsp/wizard/container.jsp.

currently I use in my web-client-custom.xml

<config>
      <!–  Adding a new Container –>
      <wizard-container>
         /jsp/myproject/wizard/container.jsp
      </wizard-container>
      <wizards><!– Article Wizard –>
         <wizard name="mywizards">
                              …
                        </wizard>
                </wizards>
</config>

but this overides the default container and starts adding my container to the alfresco ones too.

Is it possible for me to define my own container .. just for my wizards?.. if yes.. how?

thanks in advance!
2 REPLIES 2

gavinc
Champ in-the-making
Champ in-the-making
No, the container is global to the applicaton, so the behaviour you are seeing is by design.

However, in 2.1 there is the notion of a "plain" container, this is intended for use with the webscripts (where they want to make use of an existing dialog in a popup window). By default this container has none of the alfresco adornments, what you could do is override the <plain-container> config setting with your own container.

To get the application to use the plain container you need to add a Boolean object set to true into the RequestMap with a key name of "externalContainerRequest". This will force the use of the plain container. The tricky bit is going to be getting this object into the request map. I think you will need to add an actionlistener to the action you are launching your wizard with and add the object in there.

Just a warning, this is not something I have tried so there's a chance it may not work.

amanjure
Champ in-the-making
Champ in-the-making
thanks gavin.

unfortunately, we cannot move to 2.1 at this stage. I will make sure that my container is 'globally' accepted and works with the alfresco Wizards too.

thanks again!

ashay