Package com.adaptrex.core.view.jsf

Source Code of com.adaptrex.core.view.jsf.JSFBootstrapComponent

package com.adaptrex.core.view.jsf;

import java.io.IOException;

import javax.faces.component.FacesComponent;
import javax.faces.component.UIComponentBase;
import javax.faces.context.FacesContext;

import com.adaptrex.core.AdaptrexConfig;
import com.adaptrex.core.view.BootstrapComponent;

@FacesComponent("ext.data.Bootstrap")
public class JSFBootstrapComponent extends UIComponentBase {

  @Override
  public String getFamily() {
    return "ext.data.bootstrap";
  }
 
  @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());
  }
}
TOP

Related Classes of com.adaptrex.core.view.jsf.JSFBootstrapComponent

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.