Package org.apache.tapestry

Examples of org.apache.tapestry.Asset


        if (path == null) return null;

        String expanded = _symbolSource.expandSymbols(path.value());

        Asset asset = _source.getAsset(null, expanded, null);

        return _typeCoercer.coerce(asset, objectType);
    }
View Full Code Here


            {
                Locale locale = resources.getLocale();

                for (String assetPath : paths)
                {
                    Asset asset = _assetSource.getAsset(model.getBaseResource(), assetPath, locale);

                    handleAsset(asset);
                }
            }
        };
View Full Code Here

    private void addScriptLinkFromClasspath(String path)
    {
        String expanded = _symbolSource.expandSymbols(path);

        Asset asset = _assetSource.getAsset(null, expanded, null);

        _builder.addScriptLink(asset.toClientURL());
    }
View Full Code Here

    public Binding newBinding(String description, ComponentResources container, ComponentResources component,
                              String expression, Location location)
    {
        Resource baseResource = container.getBaseResource();

        Asset asset = _source.findAsset(baseResource, expression, container.getLocale());

        return new AssetBinding(description, asset, location);
    }
View Full Code Here

TOP

Related Classes of org.apache.tapestry.Asset

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.