cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple wizard containers

manuelgentile
Champ in-the-making
Champ in-the-making
I need to define a different wizard container for a particular wizard. (I have a xhtml wizard and to run it, I need a xhtml container too)
In the web-client configuration there is the following configuration

<wizard-container>/jsp/wizard/container.jsp</wizard-container>

Is it possible to override this configuration only for a single wizard?

Thanks in advance
3 REPLIES 3

gavinc
Champ in-the-making
Champ in-the-making
Unfortunately not.

If you want to add this functionality you could customise AlfrescoNavigationHandler, this is the class responsible for dispatching to the wizard container.

However, the 1.4 release relies on the fact that there is only one container (it's used to determine if the app is currently in a dialog or a wizard) so just something to be aware of if you go down this route!

manuelgentile
Champ in-the-making
Champ in-the-making
I know that, but delegating a jsp page to control if there is a running wizard doesn't sound very good?!?!

I read in the alfresco wiki that you have investigated jboss seam as controller framework. Using seam conversation to controll wizard, dialog and so on sounds better…

What do u think ???

gavinc
Champ in-the-making
Champ in-the-making
I agree, there are other alternatives out there, however, facelets and SEAM were not around when we first chose JSF 😞

I only briefly looked at SEAM so I'm not sure whether it could be integrated in to a MyFaces based app, but it's definitely something to look at. As is Shale now that's been "separated" from Struts, they also have a dialog framework with a similar "conversation" state concept.

As for the first question/comment, we don't delegate to a JSP to determine what's running we just examine the result of FacesContext's getViewRoot().getViewId().

Again, I agree there are other alternatives i.e. using a variable in the session but that didn't seem any more elegant than the approach I took. Do you have any suggestions?