I have to use an external image scale service and this service needs an 
absolute url, the service can't work with a relative url.


On 02.10.2010, at 04:33, Jonathan Barker wrote:

> What is your use case?
> 
> I need to have absolute URL's for an application and I contribute an
> override for the AssetPathConstructor.
> 
> 
> 
> 2010/9/30 Christian Koller <christian.kol...@net-m.ch>
> 
>> Hi all
>> 
>> In a tapestry page i have:
>> 
>> @Inject
>> @Property
>> @Path("context:/img/logo.gif")
>> private Asset logo;
>> 
>> If I print the logo I can see:
>> /assets/7f46afe50e4fd75d/ctx/img/logo.gif
>> 
>> What I need is an absolute url from the logo (e.g:
>> http://localhost:8080/assets/7f46afe50e4fd75d/ctx/img/logo.gif). Is that
>> possible without to use the request.
>> I mean is there a better way as to fetch the host and port from the request
>> and then to concatenate the stuff.
>> 
>> Thx
>> chris
>> 
>> 
>> 
> 
> 
> -- 
> Jonathan Barker
> ITStrategic

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

Reply via email to