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

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

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.5.0.Final
    • Fix Version/s: 2.6.0.Final
    • Component/s: Java EE
    • Labels:
      None

      Description

      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();
          }
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                lincolnthree Lincoln Baxter III
                Reporter:
                agoncal Antonio Goncalves
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: