Examples of render()


Examples of org.jboss.portletbridge.context.PortletBridgeContext.render()

    request.setAttribute(Bridge.VIEW_ID, redirectViewId);
    context = bridgeContext.getBridgeConfig().createFacesContext(request,
            response);
    windowState.restoreMessages(context);
    setupErrorParameters(context, e);
    bridgeContext.render(context);
  }

  protected abstract String processException(FacesContext facesContext,
            BridgeRequestScope windowState, Exception e) ;
View Full Code Here

Examples of org.jboss.seam.render.template.CompiledTemplateResource.render()

         map.put("idType", idType);
         map.put("setIdStatement", idSetterName);
         map.put("contentType", contentType);
         map.put("entityTable", getEntityTable(entity));

         JavaClass endpoint = JavaParser.parse(JavaClass.class, template.render(map));
         endpoint.addImport(entity.getQualifiedName());
         endpoint.setPackage(java.getBasePackage() + ".rest");
         endpoint.getAnnotation(Path.class).setStringValue("/" + getEntityTable(entity).toLowerCase());

         /*
 
View Full Code Here

Examples of org.jbpm.formapi.server.render.Renderer.render()

                assertNotNull("translator shouldn't be null", translator);
                Renderer renderer = RendererFactory.getInstance().getRenderer(language);
                assertNotNull("renderer shouldn't be null", renderer);
                URL url = translator.translateForm(form);
                Map<String, Object> inputs = basicInputs();
                Object html = renderer.render(url, inputs);
                assertNotNull("html shouldn't be null", html);
            } catch (TranslatorException e) {
                errors.add(new Exception("translator for language " + language + " failed", e));
            } catch (RendererException e) {
                errors.add(new Exception("renderer for language " + language + " failed", e));
View Full Code Here

Examples of org.jclouds.scriptbuilder.InitScript.render()

      InitScript init = InitScript.builder().name("jclouds-script-0").home("/tmp/jclouds-script-0").run(command)
            .build();

      sshClient.connect();
      sshClient.put("/tmp/init-jclouds-script-0", init.render(OsFamily.UNIX));
      expect(sshClient.getUsername()).andReturn("tester").atLeastOnce();
      expect(sshClient.getHostAddress()).andReturn("somewhere.example.com").atLeastOnce();
     
      // setup script as default user
      expect(sshClient.exec("chmod 755 /tmp/init-jclouds-script-0")).andReturn(new ExecResponse("", "", 0));
View Full Code Here

Examples of org.jclouds.scriptbuilder.ScriptBuilder.render()

  public String render(OsFamily family) {
    ScriptBuilder scriptBuilder = new ScriptBuilder();
    for (Statement statement : statements) {
      scriptBuilder.addStatement(statement);
    }
    return scriptBuilder.render(family);
  }

}
View Full Code Here

Examples of org.jclouds.scriptbuilder.domain.Statement.render()

            ImmutableSet.of("file_cache_path \"" + ChefSolo.DEFAULT_SOLO_PATH + "\"", //
                  "cookbook_path [\"" + ChefSolo.DEFAULT_SOLO_PATH + "/cookbooks\"]", "role_path \""
                        + ChefSolo.DEFAULT_SOLO_PATH + "/roles\"", "data_bag_path \"" + ChefSolo.DEFAULT_SOLO_PATH
                        + "/data_bags\""));

      assertEquals(statementList.get(2).render(OsFamily.UNIX), expected.render(OsFamily.UNIX));
   }

   public void testCreateCustomSoloConfiguration() {
      ImmutableList.Builder<Statement> statements = ImmutableList.builder();
      ChefSolo solo = ChefSolo.builder().fileCachePath("/tmp").cookbookPath("/tmp/foo").cookbookPath("/tmp/bar")
View Full Code Here

Examples of org.jclouds.virtualbox.statements.ScanNetworkWithPing.render()

   private static final String network = "192.168.1.1";
   private static final String networkWithoutLastNumber = "192.168.1";

   public void testGetIPAdressFromMacAddressUnix() {
      ScanNetworkWithPing statement = new ScanNetworkWithPing(network);
      assertEquals(statement.render(OsFamily.UNIX), "for i in {1..254} ; do ping -c 1 -t 1 " + networkWithoutLastNumber + ".$i & done");

   }

}
View Full Code Here

Examples of org.jnode.awt.font.TextRenderer.render()

     */
    public void drawText(Surface g, Shape clip, AffineTransform tx, CharSequence text, Font font, int x, int y,
                         Color color) {
        Font txFont = getTranslatedFont(font);
        final TextRenderer renderer = getProvider(txFont).getTextRenderer(txFont);
        renderer.render(g, clip, tx, text, x, y, color);
    }

    /**
     * @param point
     * @param extension
View Full Code Here

Examples of org.joget.apps.form.model.Form.render()

        String noFrame = ("true".equalsIgnoreCase(getPropertyString("noframe"))) ? " no-frame" : "";
        String readonly = ("true".equalsIgnoreCase(getPropertyString(FormUtil.PROPERTY_READONLY))) ? " readonly" : "";
        String html = "<div class='" + cellClass + "' " + elementMetaData + "><div class='subform-container"+noFrame+readonly+"'>";
        html += "<span class='subform-title'>" + label + "</span>";
        if (subForm != null) {
            String subFormHtml = subForm.render(formData, false);
            subFormHtml = subFormHtml.replaceAll("\"form-section", "\"subform-section");
            subFormHtml = subFormHtml.replaceAll("\"form-column", "\"subform-column");
            subFormHtml = subFormHtml.replaceAll("\"form-cell", "\"subform-cell");
            html += subFormHtml;
        } else {
View Full Code Here

Examples of org.jooq.DSLContext.render()

    public void testRenderSchema() {
        Schema schema = new SchemaImpl("S");
        Table<?> table = new TableImpl<Record>("T", schema);

        DSLContext create0 = DSL.using(SQLDialect.POSTGRES);
        assertEquals("\"S\".\"T\"", create0.render(table));

        DSLContext create1 = DSL.using(SQLDialect.POSTGRES, new Settings().withRenderSchema(false));
        assertEquals("\"T\"", create1.render(table));

        DSLContext create2 = DSL.using(SQLDialect.POSTGRES);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.