Package org.jboss.forge.spec.javaee

Examples of org.jboss.forge.spec.javaee.FacesFacet


   @Command(value = "faces-setup", help = "Setup this bundle as a ResourceBundle in faces-config.xml")
   public void setupFaces(
            @Option(name = "var", description = "The name by which this ResourceBundle instance is retrieved by a call to Application.getResourceBundle()", required = true, defaultValue = "msg") String varName)
   {
      assertPropertiesInContext();
      FacesFacet facesFacet = project.getFacet(FacesFacet.class);
      FileResource<?> configFile = facesFacet.getConfigFile();
      String baseBundleName = getBaseBundleName(propertiesFileResource.getName());

      Node facesConfig = XMLParser.parse(configFile.getResourceInputStream());

      Node applicationNode = facesConfig.getOrCreate("application");
View Full Code Here


            if (prompt.promptBoolean("Do you also want to install CDI?", true)) {
               request.fire(new InstallFacets(CDIFacet.class));
            }
         }
      }
      FacesFacet facet = project.getFacet(FacesFacet.class);
      if (facet.getFacesServletMappings().isEmpty())
      {
          if (prompt.promptBoolean("Do you also want to install the Faces servlet and mapping?", false)) {
              facet.setFacesMapping("*.xhtml");
              facet.setFacesMapping("/faces/*");
          }
      }
     
      if (project.hasFacet(FacesFacet.class))
      {
View Full Code Here

   }

   @DefaultCommand
   public void show(final PipeOut out)
   {
      FacesFacet facet = project.getFacet(FacesFacet.class);
      ShellMessages.info(out, "Displaying current JSF configuration:");

      out.println();
      out.println(out.renderColor(ShellColor.BOLD, "Project State: ") + facet.getProjectStage());
      out.println(out.renderColor(ShellColor.BOLD, "FacesServlet Mappings: ") + facet.getEffectiveFacesServletMappings());
      out.println(out.renderColor(ShellColor.BOLD, "Faces Default Suffixes: ") + facet.getFacesDefaultSuffixes());
      out.println(out.renderColor(ShellColor.BOLD, "Facelets Default Suffixes: ")
               + facet.getFaceletsDefaultSuffixes());
      out.println(out.renderColor(ShellColor.BOLD, "Facelets View Mappings: ") + facet.getFaceletsViewMapping());
   }
View Full Code Here

            if (prompt.promptBoolean("Do you also want to install CDI?", true)) {
               request.fire(new InstallFacets(CDIFacet.class));
            }
         }
      }
      FacesFacet facet = project.getFacet(FacesFacet.class);
      if (facet.getFacesServletMappings().isEmpty())
      {
          if (prompt.promptBoolean("Do you also want to install the Faces servlet and mapping?", false)) {
              facet.setFacesMapping("*.xhtml");
              facet.setFacesMapping("/faces/*");
          }
      }
     
      if (project.hasFacet(FacesFacet.class))
      {
View Full Code Here

   }

   @DefaultCommand
   public void show(final PipeOut out)
   {
      FacesFacet facet = project.getFacet(FacesFacet.class);
      ShellMessages.info(out, "Displaying current JSF configuration:");

      out.println();
      out.println(out.renderColor(ShellColor.BOLD, "Project State: ") + facet.getProjectStage());
      out.println(out.renderColor(ShellColor.BOLD, "FacesServlet Mappings: ") + facet.getEffectiveFacesServletMappings());
      out.println(out.renderColor(ShellColor.BOLD, "Faces Default Suffixes: ") + facet.getFacesDefaultSuffixes());
      out.println(out.renderColor(ShellColor.BOLD, "Facelets Default Suffixes: ")
               + facet.getFaceletsDefaultSuffixes());
      out.println(out.renderColor(ShellColor.BOLD, "Facelets View Mappings: ") + facet.getFaceletsViewMapping());
   }
View Full Code Here

            if (prompt.promptBoolean("Do you also want to install CDI?", true)) {
               request.fire(new InstallFacets(CDIFacet.class));
            }
         }
      }
      FacesFacet facet = project.getFacet(FacesFacet.class);
      if (facet.getFacesServletMappings().isEmpty())
      {
          if (prompt.promptBoolean("Do you also want to install the Faces servlet and mapping?", false)) {
              facet.setFacesMapping("*.xhtml");
              facet.setFacesMapping("/faces/*");
          }
      }

      if (project.hasFacet(FacesFacet.class))
      {
View Full Code Here

   }

   @DefaultCommand
   public void show(final PipeOut out)
   {
      FacesFacet facet = project.getFacet(FacesFacet.class);
      ShellMessages.info(out, "Displaying current JSF configuration:");

      out.println();
      out.println(out.renderColor(ShellColor.BOLD, "Project State: ") + facet.getProjectStage());
      out.println(out.renderColor(ShellColor.BOLD, "FacesServlet Mappings: ") + facet.getEffectiveFacesServletMappings());
      out.println(out.renderColor(ShellColor.BOLD, "Faces Default Suffixes: ") + facet.getFacesDefaultSuffixes());
      out.println(out.renderColor(ShellColor.BOLD, "Facelets Default Suffixes: ")
               + facet.getFaceletsDefaultSuffixes());
      out.println(out.renderColor(ShellColor.BOLD, "Facelets View Mappings: ") + facet.getFaceletsViewMapping());
   }
View Full Code Here

   @Command(value = "faces-setup", help = "Setup this bundle as a ResourceBundle in faces-config.xml")
   public void setupFaces(
            @Option(name = "var", description = "The name by which this ResourceBundle instance is retrieved by a call to Application.getResourceBundle()", required = true, defaultValue = "msg") String varName)
   {
      assertPropertiesInContext();
      FacesFacet facesFacet = project.getFacet(FacesFacet.class);
      FileResource<?> configFile = facesFacet.getConfigFile();
      String baseBundleName = getBaseBundleName(propertiesFileResource.getName());

      Node facesConfig = XMLParser.parse(configFile.getResourceInputStream());

      Node applicationNode = facesConfig.getOrCreate("application");
View Full Code Here

   @DefaultCommand
   public void show(final PipeOut out)
   {
      if (project.hasFacet(FacesFacet.class))
      {
         FacesFacet facet = project.getFacet(FacesFacet.class);
         ShellMessages.info(out, "Displaying current JSF configuration:");

         out.println();
         out.println(out.renderColor(ShellColor.BOLD, "Project State: ") + facet.getProjectStage());
         out.println(out.renderColor(ShellColor.BOLD, "FacesServlet Mappings: ") + facet.getFacesServletMappings());
         out.println(out.renderColor(ShellColor.BOLD, "Faces Default Suffixes: ") + facet.getFacesDefaultSuffixes());
         out.println(out.renderColor(ShellColor.BOLD, "Facelets Default Suffixes: ")
                  + facet.getFaceletsDefaultSuffixes());
         out.println(out.renderColor(ShellColor.BOLD, "Facelets View Mappings: ") + facet.getFaceletsViewMapping());
      }
      else
      {
         ShellMessages.info(out, "JSF is not installed. Use 'setup faces' to continue.");
      }
View Full Code Here

            if (prompt.promptBoolean("Do you also want to install CDI?", true)) {
               request.fire(new InstallFacets(CDIFacet.class));
            }
         }
      }
      FacesFacet facet = project.getFacet(FacesFacet.class);
      if (facet.getFacesServletMappings().isEmpty())
      {
          if (prompt.promptBoolean("Do you also want to install the Faces servlet and mapping?", false)) {
              facet.setFacesMapping("*.xhtml");
              facet.setFacesMapping("/faces/*");
          }
      }

      if (project.hasFacet(FacesFacet.class))
      {
View Full Code Here

TOP

Related Classes of org.jboss.forge.spec.javaee.FacesFacet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.