Absolute Asset URL 5.4

2014-09-11 Thread George Christman
Hi guys, I'm wondering if there is a way to create absolute asset URL's in 5.4 without having to use BaseURLSouce? We would like to be able to include our logo into emails. Thanks, George

Re: Absolute Asset URL 5.4

2014-09-11 Thread Lance Java
It's sometimes easy to forget that tapestry is just a normal war running in a servlet container. Assuming your building with maven, an image under src/main/webapp/foo.jpg will be available as http://myapp/foo.jpg On 11 Sep 2014 20:26, George Christman gchrist...@cardaddy.com wrote: Hi guys,

absolute asset url

2010-10-04 Thread Christian Koller
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

Re: absolute asset url

2010-10-04 Thread Josh Canfield
Have you looked into BaseURLSource? http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/BaseURLSource.html Overriding it is documented along with https but you can @Inject and use it elsewhere. http://tapestry.apache.org/tapestry5/guide/secure.html Josh 2010/9/30

Re: absolute asset url

2010-10-01 Thread Jonathan Barker
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;

absolute asset url

2010-09-30 Thread Christian Koller
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