Vineet Reynolds created FORGE-1311:
--------------------------------------
Summary: UICommands are not displayed in Eclipse when provided as a wizard
step
Key: FORGE-1311
URL:
https://issues.jboss.org/browse/FORGE-1311
Project: Forge
Issue Type: Bug
Components: UI - Eclipse
Affects Versions: 2.0.0.Alpha14
Reporter: Vineet Reynolds
Assignee: Vineet Reynolds
In the ScaffoldSetupWizard, I do:
{noformat}
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);
}
{noformat}
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira