Examples of ILocation


Examples of org.apache.tapestry.ILocation

    }

    private IBinding convert(IComponent container, IBindingSpecification spec)
    {
        BindingType type = spec.getType();
        ILocation location = spec.getLocation();
        String value = spec.getValue();

        // The most common type.
        // TODO These bindings should be created somehow using the SpecFactory in SpecificationParser
        if (type == BindingType.DYNAMIC)
View Full Code Here

Examples of org.apache.tapestry.ILocation

                // container's specification.

                IContainedComponent contained = containerSpec.getComponent(id);

                String type = contained.getType();
                ILocation location = contained.getLocation();

                _componentResolver.resolve(cycle, namespace, type, location);

                IComponentSpecification componentSpecification =
                    _componentResolver.getSpecification();
View Full Code Here

Examples of org.apache.tapestry.ILocation

    {
        IPage result = null;

        String pageName = namespace.constructQualifiedName(name);
        String className = spec.getComponentClassName();
        ILocation location = spec.getLocation();

        if (Tapestry.isBlank(className))
        {
            if (LOG.isDebugEnabled())
                LOG.debug(
View Full Code Here

Examples of org.apache.tapestry.ILocation

        IAssetSpecification spec,
        IResourceLocation specificationLocation)
    {
        AssetType type = spec.getType();
        String path = spec.getPath();
        ILocation location = spec.getLocation();

        if (type == AssetType.EXTERNAL)
            return new ExternalAsset(path, location);

        if (type == AssetType.PRIVATE)
View Full Code Here

Examples of org.apache.tapestry.ILocation

        // Yes, but does it *need* a property created?

        if (!isMissingProperty(propertyName))
            return;

        ILocation location = ps.getLocation();

        Class propertyType = convertPropertyType(ps.getType(), location);

        String readMethodName = checkAccessors(propertyName, propertyType, location);

View Full Code Here

Examples of org.apache.tapestry.ILocation

        getEnhancedClass().createProperty(propertyName, ps.getType(), readMethodName, false);
    }

    protected void addAutoParameterEnhancer(String parameterName, IParameterSpecification ps)
    {
        ILocation location = ps.getLocation();
        String propertyName = ps.getPropertyName();

        if (!ps.isRequired() && ps.getDefaultValue() == null)
            throw new ApplicationRuntimeException(
                Tapestry.format("ComponentClassFactory.auto-must-be-required", parameterName),
View Full Code Here

Examples of org.apache.tapestry.ILocation

    }

    protected void scanForSpecifiedProperty(IPropertySpecification ps)
    {
        String propertyName = ps.getName();
        ILocation location = ps.getLocation();
        Class propertyType = convertPropertyType(ps.getType(), location);

        PropertyDescriptor pd = getPropertyDescriptor(propertyName);

        if (isImplemented(pd))
View Full Code Here

Examples of org.apache.tapestry.ILocation

    public void write(StringBuffer buffer, ScriptSession session)
    {
        IRequestCycle cycle = session.getRequestCycle();

        ILocation location = getLocation();
        String tag = "<unique> " + location.toString();

        if (cycle.getAttribute(tag) != null)
            return;

        cycle.setAttribute(tag, Boolean.TRUE);
View Full Code Here

Examples of org.apache.tapestry.ILocation

        long startTime = debug ? System.currentTimeMillis() : 0;

        BSFManager bsf = obtainBSFManager(cycle);

        ILocation location = getLocation();

        try
        {
            IPage page = cycle.getPage();

            bsf.declareBean("component", _component, _component.getClass());
            bsf.declareBean("page", page, page.getClass());
            bsf.declareBean("cycle", cycle, cycle.getClass());

            bsf.exec(
                _language,
                location.getResourceLocation().toString(),
                location.getLineNumber(),
                location.getLineNumber(),
                _script);
        }
        catch (BSFException ex)
        {
            String message =
View Full Code Here

Examples of org.apache.tapestry.ILocation

    public void write(StringBuffer buffer, ScriptSession session)
    {
        IRequestCycle cycle = session.getRequestCycle();

        ILocation location = getLocation();
        String tag = "<unique> " + location.toString();

        if (cycle.getAttribute(tag) != null)
            return;

        cycle.setAttribute(tag, Boolean.TRUE);
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.