Re: Tapestry 5.1.0.5 to 5.2.6 migration. .html templates

2012-06-08 Thread Lance Java
Firstly, this question should be on the user's list (not the dev list).

To change template lookup behaviour, you will need to either override or
(more likely) decorate the ComponentResourceLocator.

http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/services/pageload/ComponentResourceLocator.html
http://tapestry.apache.org/tapestry-ioc-decorators.html

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-5-1-0-5-to-5-2-6-migration-html-templates-tp5713624p5713716.html
Sent from the Tapestry - Dev mailing list archive at Nabble.com.

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



Re: [jira] [Created] (TAP5-1955) Documentation on ServiceBinder#bind(ClassT implementationClass) is wrong/lacks extra information

2012-06-08 Thread Thiago H de Paula Figueiredo
On Fri, 08 Jun 2012 17:16:22 -0300, Carsten Klein (JIRA) j...@apache.org  
wrote:


Defines a service in terms of an implementation class, without a  
service interface. In this case, the service
will not be proxiable (proxying requires a service interface) and  
{@link ServiceDef#getServiceInterface()} will
return the implementation class. In this situation, the service will  
not be proxied; it will be instantiated
fully on first reference (ignoring its scope, if any) and will not be  
decorated.


In tapestry-core InternalModule I found usages of that interface, where  
you bind an interface class.
Looking at the code, the implementation will try to resolve the  
implementation class and then bind
it using the standard bind(ClassT serviceInterface, Class? extends T  
implementationClass) method.


That part of the documentation talks about binding a service using only a  
concrete class and you're talking about binding a service using an  
interface, so the documentation is correct, maybe just not clear enough.


Again, please post in the Tapestry user mailing list before posting a JIRA.

Cheers!

--
Thiago H. de Paula Figueiredo

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