public void loadTemplate(IRequestCycle requestCycle, ITemplateComponent loadComponent) { ComponentTemplate template = _templateSource.getTemplate(requestCycle, loadComponent); ComponentTemplateLoaderLogic logic = new ComponentTemplateLoaderLogic(_log, _pageLoader, _bindingSource); logic.loadTemplate(requestCycle, loadComponent, template); }
public void loadTemplate(IRequestCycle requestCycle, ITemplateComponent loadComponent, ComponentTemplate template) { _requestCycle = requestCycle; _loadComponent = loadComponent; process(template); }
component = getEmbeddedComponent(id); else checkForDuplicateId(id, token.getLocation()); component = createImplicitComponent(id, componentType, token.getLocation()); throw createBodylessComponentException(_activeComponent); addTemplateBindings(component, token);
process((TextToken) token); continue; process((OpenToken) token); continue; process((CloseToken) token); continue; process((LocalizationToken) token); _loadComponent, null, null); checkAllComponentsReferenced();
/** * Adds the token (which implements {@link IRender}) to the active component (using * {@link IComponent#addBody(IRender)}), or to this component * {@link org.apache.tapestry.BaseComponent#addOuter(IRender)}. * <p> * A check is made that the active component allows a body. */ private void process(TextToken token) { if (_activeComponent == null) { _loadComponent.addOuter(token); return; } if (!_activeComponent.getSpecification().getAllowBody()) throw createBodylessComponentException(_activeComponent); _activeComponent.addBody(token); }
token.getLocation()); addBinding(component, spec, parameterName, binding); token.getLocation()); addBinding(component, spec, TemplateSource.TEMPLATE_TAG_PARAMETER_NAME, binding);
component = getEmbeddedComponent(id); else checkForDuplicateId(id, token.getLocation()); component = createImplicitComponent(id, componentType, token.getLocation()); throw createBodylessComponentException(_activeComponent); addTemplateBindings(component, token);
process((TextToken) token); continue; process((OpenToken) token); continue; process((CloseToken) token); continue; process((LocalizationToken) token); _loadComponent, null, null); checkAllComponentsReferenced();
/** * Adds the token (which implements {@link IRender}) to the active component (using * {@link IComponent#addBody(IRender)}), or to this component * {@link org.apache.tapestry.BaseComponent#addOuter(IRender)}. * <p> * A check is made that the active component allows a body. */ private void process(TextToken token) { if (_activeComponent == null) { _loadComponent.addOuter(token); return; } if (!_activeComponent.getSpecification().getAllowBody()) throw createBodylessComponentException(_activeComponent); _activeComponent.addBody(token); }
token.getLocation()); addBinding(component, spec, parameterName, binding); token.getLocation()); addBinding(component, spec, TemplateSource.TEMPLATE_TAG_PARAMETER_NAME, binding);
public void loadTemplate(IRequestCycle requestCycle, ITemplateComponent loadComponent) { ComponentTemplate template = _templateSource.getTemplate(requestCycle, loadComponent); ComponentTemplateLoaderLogic logic = new ComponentTemplateLoaderLogic(_log, _pageLoader, _bindingSource); logic.loadTemplate(requestCycle, loadComponent, template); }
public void loadTemplate(IRequestCycle requestCycle, ITemplateComponent loadComponent, ComponentTemplate template) { _requestCycle = requestCycle; _loadComponent = loadComponent; process(template); }