Package org.xulfaces.component.bridge

Examples of org.xulfaces.component.bridge.BridgeComponent


  }

  @Override
  protected void setProperties(UIComponent component) {   
    super.setProperties(component);
    BridgeComponent bridgeComponent = (BridgeComponent) component;
    bridgeComponent.setDebug(isDebug());
   
  }
View Full Code Here


  @Override
  public void encodeEnd(FacesContext facesContext, UIComponent component)
      throws IOException {

    ResponseWriter responseWriter = facesContext.getResponseWriter();
    BridgeComponent bridgeComponent = (BridgeComponent) component;

    renderXFC(facesContext, bridgeComponent);

    renderJSInclude(facesContext, bridgeComponent,
        KitConstants.XFBRIDGE_JS_FILE_PARENT_DIR,
        "logger.js");
   
    renderJSInclude(facesContext, bridgeComponent,
        KitConstants.XFBRIDGE_JS_FILE_PARENT_DIR,
        KitConstants.XFBRIDGE_JS_FILE_NAME);
   
    Boolean debug = bridgeComponent.getDebug();
    if (debug != null) {
      if (debug.booleanValue()) {
        responseWriter.startElement("script", bridgeComponent);
        responseWriter.writeAttribute("type", "application/x-javascript", "type");       
        responseWriter.write("XUL_FACES_BRIDGE.logger.setLevelWriter(Logger.DEBUG_LEVEL, new AlertWriter());");               
View Full Code Here

TOP

Related Classes of org.xulfaces.component.bridge.BridgeComponent

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.