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

Commands faces-new-validator and faces-new-converter do not work with faces-setup

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 2.6.0.Final
    • 2.5.0.Final
    • Java EE
    • 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();
          }
      

              lincolnthree Lincoln Baxter III (Inactive)
              agoncal Antonio Goncalves (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: