[
https://issues.jboss.org/browse/FORGE-1311?page=com.atlassian.jira.plugin...
]
Vineet Reynolds updated FORGE-1311:
-----------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
https://github.com/forge/jbosstools-forge/pull/3
Submitted PR to ensure that UIWizards are drilled into, to obtain the next wizard page to
display. UICommands are not drilled into, and the next page is obtained from the existing
list of subflows.
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