public Resource getResourceLocation() { return asset.getResourceLocation(); }
private Resource findSpecificationResource(Resource libraryResource, String path, Location location) { // TODO: This is where we'll play with assets and asset prefixes IAsset childAsset = _assetSource.findAsset(libraryResource, path, null, location); Resource childResource = childAsset.getResourceLocation(); return childResource; }
private Resource findSpecificationResource(Resource libraryResource, String path, Location location) { // TODO: This is where we'll play with assets and asset prefixes IAsset childAsset = _assetSource.findAsset(libraryResource, path, null, location); Resource childResource = childAsset.getResourceLocation(); return childResource; }
protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle) { if (!cycle.isRewinding() && !isDisabled()) { cycle.getResponseBuilder().addExternalScript(this, getScriptAsset().getResourceLocation()); } }
if (templateAsset != null && templateAsset.getResourceLocation() != null && templateAsset.getResourceLocation().getResourceURL() != null) return readTemplateFromAsset(cycle, component, templateAsset.getResourceLocation());
if (templateAsset != null && templateAsset.getResourceLocation() != null && templateAsset.getResourceLocation().getResourceURL() != null) return readTemplateFromAsset(cycle, component, templateAsset.getResourceLocation());
return _contextAssetFactory.createAsset(_webInfAppLocation, component.getSpecification(), templateName, locale, component.getLocation()).getResourceLocation(); } else if (_contextAssetFactory.assetExists(component.getSpecification(), _webInfLocation, templateName, locale)) return _contextAssetFactory.createAsset(_webInfLocation, component.getSpecification(), templateName, locale, component.getLocation()).getResourceLocation(); return _classpathAssetFactory.createAsset(base, component.getSpecification(), resourceName, locale, component.getLocation()).getResourceLocation(); return _contextAssetFactory.createAsset(_webInfAppLocation, component.getSpecification(), templatePath, locale, component.getLocation()).getResourceLocation(); } else if (_contextAssetFactory.assetExists(component.getSpecification(), _webInfLocation, templatePath, locale)) return _contextAssetFactory.createAsset(_webInfLocation, component.getSpecification(), templatePath, locale, component.getLocation()).getResourceLocation();
return _contextAssetFactory.createAsset(_webInfAppLocation, component.getSpecification(), templateName, locale, component.getLocation()).getResourceLocation(); } else if (_contextAssetFactory.assetExists(component.getSpecification(), _webInfLocation, templateName, locale)) return _contextAssetFactory.createAsset(_webInfLocation, component.getSpecification(), templateName, locale, component.getLocation()).getResourceLocation(); return _classpathAssetFactory.createAsset(base, component.getSpecification(), resourceName, locale, component.getLocation()).getResourceLocation(); return _contextAssetFactory.createAsset(_webInfAppLocation, component.getSpecification(), templatePath, locale, component.getLocation()).getResourceLocation(); } else if (_contextAssetFactory.assetExists(component.getSpecification(), _webInfLocation, templatePath, locale)) return _contextAssetFactory.createAsset(_webInfLocation, component.getSpecification(), templatePath, locale, component.getLocation()).getResourceLocation();
return source.getScript(scriptAsset.getResourceLocation());
return source.getScript(scriptAsset.getResourceLocation());
resource = scriptAsset.getResourceLocation();
resource = scriptAsset.getResourceLocation();
_javascriptManager.getFirstWidgetAsset().getResourceLocation());
_javascriptManager.getFirstWidgetAsset().getResourceLocation());