Package org.apache.wicket

Examples of org.apache.wicket.ResourceReference.bind()


        String name = specs.length == 1 ? specs[0].getFile() : unversionedPath;

        final ResourceReference ref = newResourceReference(getScope(specs), name, getLocale(specs),
            getStyle(specs), getCacheDuration(specs, versioned), specs, _preProcessor);
        refs.add(ref);
        ref.bind(application);
        application.mount(newStrategy(path, ref, merge));

        if (_mountRedirect && versioned) {
          application.mount(newRedirectStrategy(unversionedPath, path));
        }
View Full Code Here


        String instMetString = getWorkflowInstMet(inst, metInstanceFilePath);
        item.add(new Label("inst_met_display", instMetString));

        ResourceReference imgRef = new ResourceReference(WorkflowInstancesViewer.class,
            "percentImage.png");
        imgRef.bind(getApplication());
        String resRefString = getRequestCycle().urlFor(imgRef, new ValueMap()).toString();
        item.add(new Label("winst_display", "display('" + resRefString
            + "', 'winst_" + inst.getId() + "_progress', "
            + getPctComplete(inst, lifecycleFilePath) + ", 1);").setEscapeModelStrings(false));
View Full Code Here

   */
  protected ResourceReference createPackageResourceReference(Application app, Class scope,
      String name)
  {
    ResourceReference resourceReference = new ResourceReference(scope, name);
    resourceReference.bind(app);
    return resourceReference;
  }

  /**
   * Construct.
 
View Full Code Here

   */
  protected ResourceReference createPackageResourceReference(Application app, Class<?> scope,
    String name)
  {
    ResourceReference resourceReference = new ResourceReference(scope, name);
    resourceReference.bind(app);
    return resourceReference;
  }

  /**
   * Construct.
 
View Full Code Here

   */
  protected ResourceReference createPackageResourceReference(Application app, Class<?> scope,
    String name)
  {
    ResourceReference resourceReference = new ResourceReference(scope, name);
    resourceReference.bind(app);
    return resourceReference;
  }

  /**
   * Construct.
 
View Full Code Here

   */
  protected ResourceReference createPackageResourceReference(Application app, Class<?> scope,
    String name)
  {
    ResourceReference resourceReference = new ResourceReference(scope, name);
    resourceReference.bind(app);
    return resourceReference;
  }

  /**
   * Construct.
 
View Full Code Here

       
        String name = specs.length == 1 ? specs[0].getFile() : unversionedPath;
       
        final ResourceReference ref = newResourceReference(getScope(specs), name, getLocale(specs), getStyle(specs), getCacheDuration(specs, versioned), specs, _preProcessor);
        refs.add(ref);
        ref.bind(application);
        application.mount(newStrategy(path, ref, merge));
 
        if (_mountRedirect && versioned) {
          application.mount(newRedirectStrategy(unversionedPath, path));
        }
View Full Code Here

        String name = specs.length == 1 ? specs[0].getFile() : unversionedPath;

        final ResourceReference ref = newResourceReference(getScope(specs), name, getLocale(specs),
            getStyle(specs), getCacheDuration(specs, versioned), specs, _preProcessor);
        refs.add(ref);
        ref.bind(application);
        application.mount(newStrategy(path, ref, merge));

        if (_mountRedirect && versioned) {
          application.mount(newRedirectStrategy(unversionedPath, path));
        }
View Full Code Here

   */
  protected ResourceReference createPackageResourceReference(Application app, Class scope,
    String name)
  {
    ResourceReference resourceReference = new ResourceReference(scope, name);
    resourceReference.bind(app);
    return resourceReference;
  }

  /**
   * Construct.
 
View Full Code Here

   */
  protected ResourceReference createPackageResourceReference(Application app, Class scope,
      String name)
  {
    ResourceReference resourceReference = new ResourceReference(scope, name);
    resourceReference.bind(app);
    return resourceReference;
  }

  /**
   * Construct.
 
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.