Yes.

2011/3/9 jqzone <jqz...@gmail.com>:
> Do you mean this?
> https://github.com/hlship/tapx/blob/master/tapx-core/src/main/java/com/howardlewisship/tapx/core/components/Dynamic.java
>
> 在 2011年3月10日 上午3:33,Howard Lewis Ship <hls...@gmail.com>写道:
>
>> 2011/3/9 jqzone <jqz...@gmail.com>:
>> > Hi,Howard,that's what I want ! How can I do this?
>>
>> I'm not sure off the top of my head.  Thiago pointed out the
>> underlying services that would need overriding.
>>
>> Currently, the page instance is derived from a key consisting of the
>> canoncial page name and the user locale; this is used to locate and
>> build the page instance.
>>
>> For 5.3/5.4 we want to extend this so that the key can be more
>> complicated: more dimensions, so that it would be possible to identify
>> other factors, such as virtual domain, or active "skin", or such, to
>> drive the location and creation of the page (and all components within
>> the page).
>>
>> I think that where today we pass the Locale as a parameter, we need to
>> pass around a more structured but more extensive object.
>>
>> In any case, right now, it takes surgery of the T5 code to get what you
>> want.
>>
>> Perhaps you could accomplish your goals using something less drastic
>> ... search the mailing list archives for information about the Dynamic
>> component that's part of TapX.
>>
>> >
>> > 2011/3/10 Howard Lewis Ship <hls...@gmail.com>
>> >
>> >> What you want is a more complex page name (+ other information)
>> >> mapping to page class, but something fixed and predictable ... and
>> >> properly cached, for performance reasons.
>> >>
>> >> On Wed, Mar 9, 2011 at 1:08 AM, jqzone <jqz...@gmail.com> wrote:
>> >> > I extending template locator just follow the link below,it works well.
>> >> >
>> >>
>> http://blog.tapestry5.de/index.php/2010/08/06/extending-template-lookup-mechanism/
>> >> >
>> >> > My situation is ,when the same page is requested,I should check the
>> >> config
>> >> > and decide which tml to use,for example ,different sub domains use
>> >> different
>> >> > tml, ComponentTemplateSource caches the first requested template,so
>> how
>> >> can
>> >> > I change this?
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Howard M. Lewis Ship
>> >>
>> >> Creator of Apache Tapestry
>> >>
>> >> The source for Tapestry training, mentoring and support. Contact me to
>> >> learn how I can get you up and productive in Tapestry fast!
>> >>
>> >> (971) 678-5210
>> >> http://howardlewisship.com
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> >> For additional commands, e-mail: users-h...@tapestry.apache.org
>> >>
>> >>
>> >
>>
>>
>>
>> --
>> Howard M. Lewis Ship
>>
>> Creator of Apache Tapestry
>>
>> The source for Tapestry training, mentoring and support. Contact me to
>> learn how I can get you up and productive in Tapestry fast!
>>
>> (971) 678-5210
>> http://howardlewisship.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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

Reply via email to