Examples of render()


Examples of org.springframework.webflow.mvc.view.AbstractMvcView.render()

    context.getMockExternalContext().setNativeResponse(response);
    context.getMockFlowExecutionContext().setKey(new MockFlowExecutionKey("c1v1"));
    org.springframework.web.servlet.View mvcView = (org.springframework.web.servlet.View) EasyMock
        .createMock(org.springframework.web.servlet.View.class);
    AbstractMvcView view = new PortletMvcView(mvcView, context);
    view.render();
    assertNotNull(request.getAttribute(ViewRendererServlet.VIEW_ATTRIBUTE));
    assertNotNull(request.getAttribute(ViewRendererServlet.MODEL_ATTRIBUTE));
  }

  public void testResumeEvent() throws Exception {
View Full Code Here

Examples of org.springmodules.xt.ajax.AjaxAction.render()

    }
   
    public void testRender() throws Exception {
        AjaxAction action = new InsertContentAfterAction("testId", Arrays.asList(new Component[]{new TaggedText("Test Component 1", TaggedText.Tag.DIV), new TaggedText("Test Component 2", TaggedText.Tag.DIV)}));
       
        String result = action.render();
       
        System.out.println(result);
       
        assertXpathEvaluatesTo("Test Component 1", "/insert-after/content/div[position()=1]", result);
        assertXpathEvaluatesTo("Test Component 2", "/insert-after/content/div[position()=2]", result);
View Full Code Here

Examples of org.springmodules.xt.ajax.AjaxResponse.render()

                return new AjaxAction[]{action};
            }
        });
       
        response = handler.validate(submitEvent);
        rendering = response.render();
        System.out.println(rendering);
       
        assertXpathEvaluatesTo("Default message", "//replace-children/content", rendering);
    }
   
View Full Code Here

Examples of org.springmodules.xt.ajax.component.Component.render()

        this.messageSource = new DelegatingMessageSource();
    }

    public void testGetRenderingComponent() throws Exception {
        Component component = this.callback.getRenderingComponent(this.errors.getGlobalError(), this.messageSource, new Locale("it"));
        assertXpathEvaluatesTo("Default Message 1", "//div", component.render());
    }

    public void testGetRenderingAction() throws Exception {
        AjaxAction action = this.callback.getRenderingAction(this.errors.getGlobalError());
        String rendering = action.render();
View Full Code Here

Examples of org.strecks.view.RenderingViewAdapter.render()

    expect(action.executeController(actionBean, actionContext)).andReturn(viewAdapter);
    expect(action.getAfterInterceptors()).andReturn(null);

    request.setAttribute(InfrastructureKeys.ACTION_BEAN, actionBean);
    action.postExecute(actionBean, actionContext, null);
    viewAdapter.render(actionContext);

    replay(action);
    replay(request);
    replay(actionBean);
    replay(beanSource);
View Full Code Here

Examples of org.stringtemplate.v4.ST.render()

      createTab_stmt.add(SORT_BUCKET, tbl_sort_bucket);
      createTab_stmt.add(ROW_FORMAT, tbl_row_format);
      createTab_stmt.add(TBL_LOCATION, tbl_location);
      createTab_stmt.add(TBL_PROPERTIES, tbl_properties);

      outStream.writeBytes(createTab_stmt.render());
      ((FSDataOutputStream) outStream).close();
      outStream = null;
    } catch (FileNotFoundException e) {
      LOG.info("show create table: " + stringifyException(e));
      return 1;
View Full Code Here

Examples of org.structr.web.entity.dom.DOMNode.render()

                  try (final Tx tx = app.tx()) {

                    //final long start = System.currentTimeMillis();

                    // render
                    rootNode.render(securityContext, renderContext, 0);
                    finished.set(true);

                    //final long end = System.currentTimeMillis();
                    //System.out.println("Done in " + (end-start) + " ms");
View Full Code Here

Examples of org.swixml.SwingEngine.render()


  public CustomTags() throws Exception {
    SwingEngine swix = new SwingEngine(this);
    swix.getTaglib().registerTag("Calendar", JCalendar.class);
    swix.render("xml/customtags.xml").setVisible(true);
  }

  /**
   * Invoked when a window is in the process of being closed.
   * The close operation can be overridden at this point.
View Full Code Here

Examples of org.terasology.rendering.assets.mesh.Mesh.render()

        float scale = 0.75f * (float) Math.pow(textureScale, 0.5);
        glScalef(scale, scale, scale);

        if (iconTexture instanceof Asset<?>) {
            Mesh itemMesh = IconMeshFactory.getIconMesh(iconTexture);
            itemMesh.render();
        }

        glPopMatrix();

        shader.deactivateFeature(ShaderProgramFeature.FEATURE_USE_MATRIX_STACK);
View Full Code Here

Examples of org.thymeleaf.spring4.view.ThymeleafView.render()

    ThymeleafView view = (ThymeleafView) context.getBean(ThymeleafViewResolver.class)
        .resolveViewName("view", Locale.UK);
    MockHttpServletResponse response = new MockHttpServletResponse();
    MockHttpServletRequest request = new MockHttpServletRequest();
    request.setAttribute(RequestContext.WEB_APPLICATION_CONTEXT_ATTRIBUTE, context);
    view.render(Collections.singletonMap("foo", "bar"), request, response);
    String result = response.getContentAsString();
    assertTrue("Wrong result: " + result, result.contains("<title>Content</title>"));
    assertTrue("Wrong result: " + result, result.contains("<span>bar</span>"));
    context.close();
  }
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.