Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1311

UICommands are not displayed in Eclipse when provided as a wizard step

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.Beta3
    • 2.0.0.Alpha14
    • UI - Eclipse
    • None

      In the ScaffoldSetupWizard, I do:

            List<Class<? extends UICommand>> setupFlow = selectedProvider.getSetupFlow();
            if(setupFlow.isEmpty())
            {
               return null;
            }
            else
            {
               Class<? extends UICommand> next = setupFlow.remove(0);
               Class<?>[] additional = setupFlow.toArray(new Class<?>[setupFlow.size()]);
               return Results.navigateTo(next, (Class<? extends UICommand>[]) additional);
            }
      

      When additional dialogs/wizard pages need to be displayed, they're provided by the scaffold provider in the form of additional UICommands or UIWizards via the getSetupFlow() invocation.

      If a UICommand is returned, then the wizard does not display the other UICommands or UIWizards following it. For example, if the sequence of flows contains JPASetupWizard, FacesSetupWizard, CDISetupWizard, EJBSetupWizard and ServletSetupWizard, then only the JPA and Faces setup wizards are displayed; CDI, EJB and Servlet wizards are not displayed.

      The underlying reason is that the FacesSetupWizard is a UICommand and not a UIWizard and hence all subsequent commands and wizards are omitted from display in the wizard.

            vineet.reynolds_jira Vineet Reynolds (Inactive)
            vineet.reynolds_jira Vineet Reynolds (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: