Package org.ajax4jsf.resource

Examples of org.ajax4jsf.resource.InternetResourceBuilder.createResource()


        InternetResourceBuilder resourceBuilder = InternetResourceBuilder.getInstance();

        try {
            resourceBuilder.getResource(path);
        } catch (ResourceNotFoundException e) {
            resourceBuilder.createResource(null, path);
        }
    }

    @Override
    public void setUp() throws Exception {
View Full Code Here


        InternetResourceBuilder resourceBuilder = InternetResourceBuilder.getInstance();

        try {
            resourceBuilder.getResource(SIMULATION_SCRIPT_NAME);
        } catch (ResourceNotFoundException e) {
            resourceBuilder.createResource(null, SIMULATION_SCRIPT_NAME);
        }

        UIViewRoot viewRoot = facesContext.getViewRoot();
        UIResource resource;
        UIComponent form = application.createComponent(UIForm.COMPONENT_TYPE);
View Full Code Here

        if(null != scriptStrategy){
          if(InternetResourceBuilder.LOAD_NONE.equals(scriptStrategy)){
            viewResources.setProcessScripts(false);
          } else if (InternetResourceBuilder.LOAD_ALL.equals(scriptStrategy)) {
            viewResources.setProcessScripts(false);
            viewResources.addScript(internetResourceBuilder.createResource(this, InternetResourceBuilder.COMMON_FRAMEWORK_SCRIPT).getUri(context, null));
            viewResources.addScript(internetResourceBuilder.createResource(this, InternetResourceBuilder.COMMON_UI_SCRIPT).getUri(context, null));
          }
        }
        String styleStrategy = externalContext.getInitParameter(InternetResourceBuilder.LOAD_STYLE_STRATEGY_PARAM);
        if(null != styleStrategy){
View Full Code Here

          if(InternetResourceBuilder.LOAD_NONE.equals(scriptStrategy)){
            viewResources.setProcessScripts(false);
          } else if (InternetResourceBuilder.LOAD_ALL.equals(scriptStrategy)) {
            viewResources.setProcessScripts(false);
            viewResources.addScript(internetResourceBuilder.createResource(this, InternetResourceBuilder.COMMON_FRAMEWORK_SCRIPT).getUri(context, null));
            viewResources.addScript(internetResourceBuilder.createResource(this, InternetResourceBuilder.COMMON_UI_SCRIPT).getUri(context, null));
          }
        }
        String styleStrategy = externalContext.getInitParameter(InternetResourceBuilder.LOAD_STYLE_STRATEGY_PARAM);
        if(null != styleStrategy){
          if(InternetResourceBuilder.LOAD_NONE.equals(styleStrategy)){
View Full Code Here

        if(null != styleStrategy){
          if(InternetResourceBuilder.LOAD_NONE.equals(styleStrategy)){
            viewResources.setProcessStyles(false);
          } else if (InternetResourceBuilder.LOAD_ALL.equals(styleStrategy)) {
            viewResources.setProcessStyles(false);
            viewResources.addStyle(internetResourceBuilder.createResource(this, InternetResourceBuilder.COMMON_STYLE).getUri(context, null));
          }
        }
        viewResources.collect(context);
        Set scripts = viewResources.getScripts();
        if (scripts.size() > 0) {
View Full Code Here

    InternetResourceBuilder resourceBuilder = InternetResourceBuilder.getInstance();

    try {
      resourceBuilder.getResource(path);
    } catch (ResourceNotFoundException e) {
      resourceBuilder.createResource(null, path);
    }
  }

  @Override
  public void setUp() throws Exception {
View Full Code Here

    InternetResourceBuilder resourceBuilder = InternetResourceBuilder.getInstance();
    try {
      resourceBuilder.getResource(SIMULATION_SCRIPT_NAME);
    } catch (ResourceNotFoundException e) {
      resourceBuilder.createResource(null, SIMULATION_SCRIPT_NAME);
    }
   
    UIViewRoot viewRoot = facesContext.getViewRoot();
    UIResource resource;
   
View Full Code Here

        if(null != scriptStrategy){
          if(InternetResourceBuilder.LOAD_NONE.equals(scriptStrategy)){
            viewResources.setProcessScripts(false);
          } else if (InternetResourceBuilder.LOAD_ALL.equals(scriptStrategy)) {
            viewResources.setProcessScripts(false);
            viewResources.addScript(internetResourceBuilder.createResource(this, InternetResourceBuilder.COMMON_FRAMEWORK_SCRIPT).getUri(context, null));
            viewResources.addScript(internetResourceBuilder.createResource(this, InternetResourceBuilder.COMMON_UI_SCRIPT).getUri(context, null));
          }
        }
        String styleStrategy = externalContext.getInitParameter(InternetResourceBuilder.LOAD_STYLE_STRATEGY_PARAM);
        if(null != styleStrategy){
View Full Code Here

          if(InternetResourceBuilder.LOAD_NONE.equals(scriptStrategy)){
            viewResources.setProcessScripts(false);
          } else if (InternetResourceBuilder.LOAD_ALL.equals(scriptStrategy)) {
            viewResources.setProcessScripts(false);
            viewResources.addScript(internetResourceBuilder.createResource(this, InternetResourceBuilder.COMMON_FRAMEWORK_SCRIPT).getUri(context, null));
            viewResources.addScript(internetResourceBuilder.createResource(this, InternetResourceBuilder.COMMON_UI_SCRIPT).getUri(context, null));
          }
        }
        String styleStrategy = externalContext.getInitParameter(InternetResourceBuilder.LOAD_STYLE_STRATEGY_PARAM);
        if(null != styleStrategy){
          if(InternetResourceBuilder.LOAD_NONE.equals(styleStrategy)){
View Full Code Here

        if(null != styleStrategy){
          if(InternetResourceBuilder.LOAD_NONE.equals(styleStrategy)){
            viewResources.setProcessStyles(false);
          } else if (InternetResourceBuilder.LOAD_ALL.equals(styleStrategy)) {
            viewResources.setProcessStyles(false);
            viewResources.addStyle(internetResourceBuilder.createResource(this, InternetResourceBuilder.COMMON_STYLE).getUri(context, null));
          }
        }
        viewResources.collect(context);
        Set scripts = viewResources.getScripts();
        if (scripts.size() > 0) {
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.