-
Feature Request
-
Resolution: Done
-
Major
-
2.5.0.Final
-
None
Both commands faces-new-validator and faces-new-converter generate Java code but which doesn't build. That's because faces-setup needs to be executed first to add the dependency on JSF on the pom.xml.
Maybe both commands need to implements PrerequisiteCommandsProvider and override the method getPrerequisiteCommands as :
@Override public NavigationResult getPrerequisiteCommands(UIContext context) { NavigationResultBuilder builder = NavigationResultBuilder.create(); Project project = getSelectedProject(context); if (project != null) { if (!project.hasFacet(FacesFacet.class)) { builder.add(FacesSetupWizard.class); } } return builder.build(); }