Package org.primefaces.component.resource

Examples of org.primefaces.component.resource.Resource


  @Override
  public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
    FacesContext facesContext = getFacesContext();
    javax.faces.component.UIViewRoot viewroot = facesContext.getViewRoot();
    Resource resource = null;
    if(!resourceExists(facesContext, "/jquery/plugins/ui/jquery.ui.button.css")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/jquery/plugins/ui/jquery.ui.button.css");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/jquery/jquery.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/jquery/jquery.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/jquery/plugins/ui/jquery-ui.custom.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/jquery/plugins/ui/jquery-ui.custom.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/primefaces/core/core.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/primefaces/core/core.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/primefaces/button/button.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/primefaces/button/button.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
  }
View Full Code Here


  @Override
  public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
    FacesContext facesContext = getFacesContext();
    javax.faces.component.UIViewRoot viewroot = facesContext.getViewRoot();
    Resource resource = null;
    if(!resourceExists(facesContext, "/yui/resize/assets/skins/sam/resize.css")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/yui/resize/assets/skins/sam/resize.css");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/yui/utilities/utilities.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/yui/utilities/utilities.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/yui/resize/resize-min.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/yui/resize/resize-min.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/jquery/jquery.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/jquery/jquery.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/primefaces/core/core.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/primefaces/core/core.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
  }
View Full Code Here

  @Override
  public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
    FacesContext facesContext = getFacesContext();
    javax.faces.component.UIViewRoot viewroot = facesContext.getViewRoot();
    Resource resource = null;
    if(!resourceExists(facesContext, "/yui/utilities/utilities.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/yui/utilities/utilities.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/jquery/jquery.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/jquery/jquery.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/primefaces/core/core.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/primefaces/core/core.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/primefaces/gmap/gmap.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/primefaces/gmap/gmap.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
  }
View Full Code Here

  @Override
  public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
    FacesContext facesContext = getFacesContext();
    javax.faces.component.UIViewRoot viewroot = facesContext.getViewRoot();
    Resource resource = null;
    if(!resourceExists(facesContext, "/primefaces/watermark/watermark.css")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/primefaces/watermark/watermark.css");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/jquery/jquery.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/jquery/jquery.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/jquery/plugins/watermark/watermark.min.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/jquery/plugins/watermark/watermark.min.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/primefaces/core/core.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/primefaces/core/core.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
  }
View Full Code Here

  @Override
  public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
    FacesContext facesContext = getFacesContext();
    javax.faces.component.UIViewRoot viewroot = facesContext.getViewRoot();
    Resource resource = null;
    if(!resourceExists(facesContext, "/primefaces/growl/assets/growl.css")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/primefaces/growl/assets/growl.css");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/jquery/jquery.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/jquery/jquery.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/primefaces/core/core.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/primefaces/core/core.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/primefaces/growl/growl.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/primefaces/growl/growl.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
  }
View Full Code Here

  @Override
  public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
    FacesContext facesContext = getFacesContext();
    javax.faces.component.UIViewRoot viewroot = facesContext.getViewRoot();
    Resource resource = null;
    if(!resourceExists(facesContext, "/primefaces/picklist/picklist.css")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/primefaces/picklist/picklist.css");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/yui/utilities/utilities.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/yui/utilities/utilities.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/jquery/jquery.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/jquery/jquery.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/primefaces/core/core.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/primefaces/core/core.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/primefaces/picklist/picklist.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/primefaces/picklist/picklist.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
  }
View Full Code Here

  @Override
  public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
    FacesContext facesContext = getFacesContext();
    javax.faces.component.UIViewRoot viewroot = facesContext.getViewRoot();
    Resource resource = null;
    if(!resourceExists(facesContext, "/yui/utilities/utilities.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/yui/utilities/utilities.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/jquery/jquery.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/jquery/jquery.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/primefaces/core/core.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/primefaces/core/core.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/primefaces/ajaxstatus/ajaxstatus.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/primefaces/ajaxstatus/ajaxstatus.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
  }
View Full Code Here

  @Override
  public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
    FacesContext facesContext = getFacesContext();
    javax.faces.component.UIViewRoot viewroot = facesContext.getViewRoot();
    Resource resource = null;
    if(!resourceExists(facesContext, "/jquery/plugins/ui/jquery.ui.button.css")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/jquery/plugins/ui/jquery.ui.button.css");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/jquery/jquery.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/jquery/jquery.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/jquery/plugins/ui/jquery-ui.custom.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/jquery/plugins/ui/jquery-ui.custom.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/primefaces/core/core.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/primefaces/core/core.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/primefaces/button/button.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/primefaces/button/button.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
  }
View Full Code Here

  @Override
  public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
    FacesContext facesContext = getFacesContext();
    javax.faces.component.UIViewRoot viewroot = facesContext.getViewRoot();
    Resource resource = null;
    if(!resourceExists(facesContext, "/yui/utilities/utilities.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/yui/utilities/utilities.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/jquery/jquery.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/jquery/jquery.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/jquery/plugins/hotkey/jquery.hotkeys-0.7.9.min.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/jquery/plugins/hotkey/jquery.hotkeys-0.7.9.min.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/primefaces/core/core.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/primefaces/core/core.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
  }
View Full Code Here

  @Override
  public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
    FacesContext facesContext = getFacesContext();
    javax.faces.component.UIViewRoot viewroot = facesContext.getViewRoot();
    Resource resource = null;
    if(!resourceExists(facesContext, "/primefaces/menu/menu.css")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/primefaces/menu/menu.css");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/jquery/plugins/ui/jquery.ui.button.css")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/jquery/plugins/ui/jquery.ui.button.css");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/jquery/jquery.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/jquery/jquery.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/jquery/plugins/ui/jquery-ui.custom.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/jquery/plugins/ui/jquery-ui.custom.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/yui/utilities/utilities.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/yui/utilities/utilities.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/yui/container/container-min.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/yui/container/container-min.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/primefaces/menu/menu.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/primefaces/menu/menu.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/primefaces/core/core.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/primefaces/core/core.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
    if(!resourceExists(facesContext, "/primefaces/button/button.js")) {
      resource = (Resource) facesContext.getApplication().createComponent("org.primefaces.component.Resource");
      resource.setName("/primefaces/button/button.js");
      viewroot.addComponentResource(facesContext, resource, "head");
    }
  }
View Full Code Here

TOP

Related Classes of org.primefaces.component.resource.Resource

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.