Package com.adaptrex.core.view

Examples of com.adaptrex.core.view.BootstrapComponent


public class Bootstrap {

  @Parameter @Property private String build;
 
  public String getBody() {
    BootstrapComponent bootstrapComponent = new BootstrapComponent(this.build);
    return bootstrapComponent.toString();
  }
View Full Code Here


  }
 
  @Override
    public void encodeBegin(FacesContext context) throws IOException {
    String extBuild = (String) getAttributes().get("build");
    BootstrapComponent bootstrapComponent = new BootstrapComponent(extBuild);
    context.getResponseWriter().write(bootstrapComponent.toString());
  }
View Full Code Here

  }
 
  @Override
    public void encodeBegin(FacesContext context) throws IOException {
    String extBuild = (String) getAttributes().get(AdaptrexConfig.EXT_BUILD);
    BootstrapComponent bootstrapComponent = new BootstrapComponent(extBuild);
    context.getResponseWriter().write(bootstrapComponent.toString());
  }
View Full Code Here

  @Inject  private RequestGlobals requestGlobals;
 
  @Parameter @Property private String build;
 
  public String getBody() {
    BootstrapComponent bootstrapComponent = new BootstrapComponent(requestGlobals.getHTTPServletRequest());
    return bootstrapComponent.getJavaScript();
  }
View Full Code Here

 
  @Override
    public void encodeBegin(FacesContext context) throws IOException {
    Map<String,String> a = JSFUtils.normalizeAttributes(getAttributes());
   
    BootstrapComponent bootstrapComponent = new BootstrapComponent((HttpServletRequest) context.getExternalContext().getRequest());
   
    context.getResponseWriter().write(bootstrapComponent.getJavaScript());
  }
View Full Code Here

@SuppressWarnings("serial")
public class JSPBootstrapComponent extends TagSupport {

  @Override
  public int doStartTag() {
    BootstrapComponent bootstrapComponent = new BootstrapComponent((HttpServletRequest) pageContext.getRequest());
   
    try {
      pageContext.getOut().write(bootstrapComponent.getJavaScript());
    } catch (IOException e) {
      throw new RuntimeException(e);
    }
    return SKIP_BODY;
  }
View Full Code Here

 
  @Override
    public void encodeBegin(FacesContext context) throws IOException {
    Map<String,String> a = JSFUtils.normalizeAttributes(getAttributes());
   
    BootstrapComponent bootstrapComponent = new BootstrapComponent((HttpServletRequest) context.getExternalContext().getRequest());
    bootstrapComponent.setNoCache(Boolean.valueOf(a.get("nocache")));
   
    context.getResponseWriter().write(bootstrapComponent.getJavaScript());
  }
View Full Code Here

 
  @Parameter @Property private String build;
  @Parameter @Property private Boolean nocache;
 
  public String getBody() {
    BootstrapComponent bootstrapComponent = new BootstrapComponent(requestGlobals.getHTTPServletRequest());
    if (nocache != null && nocache) bootstrapComponent.setNoCache(true);
    return bootstrapComponent.getJavaScript();
  }
View Full Code Here

@SuppressWarnings("serial")
public class JSPBootstrapComponent extends TagSupport {

  @Override
  public int doStartTag() {
    BootstrapComponent bootstrapComponent = new BootstrapComponent((HttpServletRequest) pageContext.getRequest());
    bootstrapComponent.setNoCache(nocache != null && nocache);
   
    try {
      pageContext.getOut().write(bootstrapComponent.getJavaScript());
    } catch (IOException e) {
      throw new RuntimeException(e);
    }
    return SKIP_BODY;
  }
View Full Code Here

TOP

Related Classes of com.adaptrex.core.view.BootstrapComponent

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.