tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject cvs commit: jakarta-tapestry status.xml
Date Thu, 22 Jul 2004 14:19:37 GMT
hlship      2004/07/22 07:19:37

  Modified:    framework/src/org/apache/tapestry/engine Tag: branch-3-0
                        DefaultTemplateSource.java
               .        Tag: branch-3-0 status.xml
  Added:       framework/src/org/apache/tapestry/engine Tag: branch-3-0
                        TemplateParserDelegateImpl.java
  Log:
  [30261] Provide a public implementation of ITemplateParserDelegate.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.13.2.1  +2 -43     jakarta-tapestry/framework/src/org/apache/tapestry/engine/DefaultTemplateSource.java
  
  Index: DefaultTemplateSource.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/framework/src/org/apache/tapestry/engine/DefaultTemplateSource.java,v
  retrieving revision 1.13
  retrieving revision 1.13.2.1
  diff -u -r1.13 -r1.13.2.1
  --- DefaultTemplateSource.java	19 Feb 2004 17:38:00 -0000	1.13
  +++ DefaultTemplateSource.java	22 Jul 2004 14:19:37 -0000	1.13.2.1
  @@ -104,47 +104,6 @@
   
       private ITemplateSourceDelegate _delegate;
   
  -    private static class ParserDelegate implements ITemplateParserDelegate
  -    {
  -        private IComponent _component;
  -        private ComponentSpecificationResolver _resolver;
  -        private IRequestCycle _cycle;
  -
  -        ParserDelegate(IComponent component, IRequestCycle cycle)
  -        {
  -            _component = component;
  -            _resolver = new ComponentSpecificationResolver(cycle);
  -            _cycle = cycle;
  -        }
  -
  -        public boolean getKnownComponent(String componentId)
  -        {
  -            return _component.getSpecification().getComponent(componentId) != null;
  -        }
  -
  -        public boolean getAllowBody(String componentId, ILocation location)
  -        {
  -            IComponent embedded = _component.getComponent(componentId);
  -
  -            if (embedded == null)
  -                throw Tapestry.createNoSuchComponentException(_component, componentId,
location);
  -
  -            return embedded.getSpecification().getAllowBody();
  -        }
  -
  -        public boolean getAllowBody(String libraryId, String type, ILocation location)
  -        {
  -            INamespace namespace = _component.getNamespace();
  -
  -            _resolver.resolve(_cycle, namespace, libraryId, type, location);
  -
  -            IComponentSpecification spec = _resolver.getSpecification();
  -
  -            return spec.getAllowBody();
  -        }
  -
  -    }
  -
       /**
        *  Clears the template cache.  This is used during debugging.
        *
  @@ -433,7 +392,7 @@
           if (_parser == null)
               _parser = new TemplateParser();
   
  -        ITemplateParserDelegate delegate = new ParserDelegate(component, cycle);
  +        ITemplateParserDelegate delegate = new TemplateParserDelegateImpl(component, cycle);
   
           TemplateToken[] tokens;
   
  
  
  
  No                   revision
  
  Index: DefaultTemplateSource.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/framework/src/org/apache/tapestry/engine/DefaultTemplateSource.java,v
  retrieving revision 1.13
  retrieving revision 1.13.2.1
  diff -u -r1.13 -r1.13.2.1
  --- DefaultTemplateSource.java	19 Feb 2004 17:38:00 -0000	1.13
  +++ DefaultTemplateSource.java	22 Jul 2004 14:19:37 -0000	1.13.2.1
  @@ -104,47 +104,6 @@
   
       private ITemplateSourceDelegate _delegate;
   
  -    private static class ParserDelegate implements ITemplateParserDelegate
  -    {
  -        private IComponent _component;
  -        private ComponentSpecificationResolver _resolver;
  -        private IRequestCycle _cycle;
  -
  -        ParserDelegate(IComponent component, IRequestCycle cycle)
  -        {
  -            _component = component;
  -            _resolver = new ComponentSpecificationResolver(cycle);
  -            _cycle = cycle;
  -        }
  -
  -        public boolean getKnownComponent(String componentId)
  -        {
  -            return _component.getSpecification().getComponent(componentId) != null;
  -        }
  -
  -        public boolean getAllowBody(String componentId, ILocation location)
  -        {
  -            IComponent embedded = _component.getComponent(componentId);
  -
  -            if (embedded == null)
  -                throw Tapestry.createNoSuchComponentException(_component, componentId,
location);
  -
  -            return embedded.getSpecification().getAllowBody();
  -        }
  -
  -        public boolean getAllowBody(String libraryId, String type, ILocation location)
  -        {
  -            INamespace namespace = _component.getNamespace();
  -
  -            _resolver.resolve(_cycle, namespace, libraryId, type, location);
  -
  -            IComponentSpecification spec = _resolver.getSpecification();
  -
  -            return spec.getAllowBody();
  -        }
  -
  -    }
  -
       /**
        *  Clears the template cache.  This is used during debugging.
        *
  @@ -433,7 +392,7 @@
           if (_parser == null)
               _parser = new TemplateParser();
   
  -        ITemplateParserDelegate delegate = new ParserDelegate(component, cycle);
  +        ITemplateParserDelegate delegate = new TemplateParserDelegateImpl(component, cycle);
   
           TemplateToken[] tokens;
   
  
  
  
  No                   revision
  
  Index: DefaultTemplateSource.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/framework/src/org/apache/tapestry/engine/DefaultTemplateSource.java,v
  retrieving revision 1.13
  retrieving revision 1.13.2.1
  diff -u -r1.13 -r1.13.2.1
  --- DefaultTemplateSource.java	19 Feb 2004 17:38:00 -0000	1.13
  +++ DefaultTemplateSource.java	22 Jul 2004 14:19:37 -0000	1.13.2.1
  @@ -104,47 +104,6 @@
   
       private ITemplateSourceDelegate _delegate;
   
  -    private static class ParserDelegate implements ITemplateParserDelegate
  -    {
  -        private IComponent _component;
  -        private ComponentSpecificationResolver _resolver;
  -        private IRequestCycle _cycle;
  -
  -        ParserDelegate(IComponent component, IRequestCycle cycle)
  -        {
  -            _component = component;
  -            _resolver = new ComponentSpecificationResolver(cycle);
  -            _cycle = cycle;
  -        }
  -
  -        public boolean getKnownComponent(String componentId)
  -        {
  -            return _component.getSpecification().getComponent(componentId) != null;
  -        }
  -
  -        public boolean getAllowBody(String componentId, ILocation location)
  -        {
  -            IComponent embedded = _component.getComponent(componentId);
  -
  -            if (embedded == null)
  -                throw Tapestry.createNoSuchComponentException(_component, componentId,
location);
  -
  -            return embedded.getSpecification().getAllowBody();
  -        }
  -
  -        public boolean getAllowBody(String libraryId, String type, ILocation location)
  -        {
  -            INamespace namespace = _component.getNamespace();
  -
  -            _resolver.resolve(_cycle, namespace, libraryId, type, location);
  -
  -            IComponentSpecification spec = _resolver.getSpecification();
  -
  -            return spec.getAllowBody();
  -        }
  -
  -    }
  -
       /**
        *  Clears the template cache.  This is used during debugging.
        *
  @@ -433,7 +392,7 @@
           if (_parser == null)
               _parser = new TemplateParser();
   
  -        ITemplateParserDelegate delegate = new ParserDelegate(component, cycle);
  +        ITemplateParserDelegate delegate = new TemplateParserDelegateImpl(component, cycle);
   
           TemplateToken[] tokens;
   
  
  
  
  1.1.2.1   +70 -0     jakarta-tapestry/framework/src/org/apache/tapestry/engine/Attic/TemplateParserDelegateImpl.java
  
  
  
  
  No                   revision
  No                   revision
  1.47.2.3  +4 -0      jakarta-tapestry/status.xml
  
  Index: status.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/status.xml,v
  retrieving revision 1.47.2.2
  retrieving revision 1.47.2.3
  diff -u -r1.47.2.2 -r1.47.2.3
  --- status.xml	30 Jun 2004 15:35:19 -0000	1.47.2.2
  +++ status.xml	22 Jul 2004 14:19:37 -0000	1.47.2.3
  @@ -262,6 +262,10 @@
         Fix NPE in ValidationDelegate when the form has errors recorded for fields that did
not render.
       </action>
       
  +    <action type="update" dev="HLS" fixes-bug="30261">
  +      Provide a public implementation of ITemplateParserDelegate.
  +    </action>
  +    
     </release>	
      
    	<release version="3.0" date="Apr 18 2004">
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


Mime
View raw message