You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Lenny Primak <lp...@hope.nyc.ny.us> on 2013/09/02 21:48:55 UTC
[T5.4 Alpha-15] constructAssetPath() changes
I am trying to migrate to T5.4, and so far I don't understand how to use constructAssetPath()
It now requires a third parameter, StreamableResource.
What I am trying to do is get a path for application asset to a non-tapestry module of the app.
Does anyone have an example of how to use constructAssetPath() in T5.4?
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5.4 Alpha-15] constructAssetPath() changes
Posted by Christian Riedel <cr...@googlemail.com>.
I’m just started the migration to T5.4. TAP5-2170 is still open and I wondered if there’s any non-internal interface that I could use to migrate to the new API.
Am 07.09.2013 um 20:23 schrieb Lenny Primak <lp...@hope.nyc.ny.us>:
> It worked... Also, I may have found an easier way,
> just use Asset.toClientURL() and don't need to worry about asset path at all.
>
> On Sep 4, 2013, at 1:45 PM, Howard Lewis Ship wrote:
>
>> StreamableResource is a kind of wrapper around Resource that includes
>> additional information needed to generate asset URLs and a bunch of other
>> related concerns.
>>
>> There's a StreamableResourceSource service.
>>
>> Oops, that's unfortunate; you'll need the internal ResourceChangeTracker
>> service (which implementes ResourceDependencies) generate a
>> StreamableResource.
>>
>> We should probably provide an override of getStreamableResource() that
>> provides the ResourceChangeTracker for you, since it is internal. And
>> actually, one that defaults StreamableResourceProcessing for you as well.
>>
>>
>> On Mon, Sep 2, 2013 at 12:48 PM, Lenny Primak <lp...@hope.nyc.ny.us>wrote:
>>
>>> I am trying to migrate to T5.4, and so far I don't understand how to use
>>> constructAssetPath()
>>> It now requires a third parameter, StreamableResource.
>>>
>>> What I am trying to do is get a path for application asset to a
>>> non-tapestry module of the app.
>>>
>>> Does anyone have an example of how to use constructAssetPath() in T5.4?
>>>
>>> Thanks
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5.4 Alpha-15] constructAssetPath() changes
Posted by Lenny Primak <lp...@hope.nyc.ny.us>.
It worked... Also, I may have found an easier way,
just use Asset.toClientURL() and don't need to worry about asset path at all.
On Sep 4, 2013, at 1:45 PM, Howard Lewis Ship wrote:
> StreamableResource is a kind of wrapper around Resource that includes
> additional information needed to generate asset URLs and a bunch of other
> related concerns.
>
> There's a StreamableResourceSource service.
>
> Oops, that's unfortunate; you'll need the internal ResourceChangeTracker
> service (which implementes ResourceDependencies) generate a
> StreamableResource.
>
> We should probably provide an override of getStreamableResource() that
> provides the ResourceChangeTracker for you, since it is internal. And
> actually, one that defaults StreamableResourceProcessing for you as well.
>
>
> On Mon, Sep 2, 2013 at 12:48 PM, Lenny Primak <lp...@hope.nyc.ny.us>wrote:
>
>> I am trying to migrate to T5.4, and so far I don't understand how to use
>> constructAssetPath()
>> It now requires a third parameter, StreamableResource.
>>
>> What I am trying to do is get a path for application asset to a
>> non-tapestry module of the app.
>>
>> Does anyone have an example of how to use constructAssetPath() in T5.4?
>>
>> Thanks
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5.4 Alpha-15] constructAssetPath() changes
Posted by Howard Lewis Ship <hl...@gmail.com>.
StreamableResource is a kind of wrapper around Resource that includes
additional information needed to generate asset URLs and a bunch of other
related concerns.
There's a StreamableResourceSource service.
Oops, that's unfortunate; you'll need the internal ResourceChangeTracker
service (which implementes ResourceDependencies) generate a
StreamableResource.
We should probably provide an override of getStreamableResource() that
provides the ResourceChangeTracker for you, since it is internal. And
actually, one that defaults StreamableResourceProcessing for you as well.
On Mon, Sep 2, 2013 at 12:48 PM, Lenny Primak <lp...@hope.nyc.ny.us>wrote:
> I am trying to migrate to T5.4, and so far I don't understand how to use
> constructAssetPath()
> It now requires a third parameter, StreamableResource.
>
> What I am trying to do is get a path for application asset to a
> non-tapestry module of the app.
>
> Does anyone have an example of how to use constructAssetPath() in T5.4?
>
> Thanks
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@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
Re: [T5.4 Alpha-15] constructAssetPath() changes
Posted by Lenny Primak <lp...@hope.nyc.ny.us>.
JIRA created:
https://issues.apache.org/jira/browse/TAP5-2170
On Sep 2, 2013, at 3:48 PM, Lenny Primak wrote:
> I am trying to migrate to T5.4, and so far I don't understand how to use constructAssetPath()
> It now requires a third parameter, StreamableResource.
>
> What I am trying to do is get a path for application asset to a non-tapestry module of the app.
>
> Does anyone have an example of how to use constructAssetPath() in T5.4?
>
> Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org