You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Shawn Church <sh...@boxity.com> on 2004/06/01 17:38:51 UTC

IAsset absolute URL

One of my pages needs to send a version of itself as an HTML-formatted 
email message.  Everything is working fine, except for the relative 
stylesheet links which are rendered by my @Shell component.  

I prefer to use context-assets, but I see that Shell uses 
IAsset.buildURL() to generate the URL, and buildURL generates relative 
links.  I can use external-assets, but I prefer not to do that since 
portability is affected.

Does anything exist to create absolute URLs from an Asset?  Should a 
buildAbsoluteURL() method be added to IAsset?

Shawn


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: IAsset absolute URL

Posted by Shawn Church <sh...@boxity.com>.
I didn't get any takers on this one, so I'm now looking into my own 
implementation.  The main thing I am trying to accomplish is to extend 
the functionality of context-asset to generate absolute (fully-
qualified with scheme/server/port) URLs, or to create my own 
specification element (if possible).

The asset types I am needing are stylesheets and images, and I would 
like to implement IAsset if possible, because I like the @Shell support 
of stylesheets.  Has anyone done anything similar?

Thanks,
Shawn


Quoting Shawn Church <sh...@boxity.com>:

> One of my pages needs to send a version of itself as an
> HTML-formatted 
> email message.  Everything is working fine, except for the relative 
> stylesheet links which are rendered by my @Shell component.  
> 
> I prefer to use context-assets, but I see that Shell uses 
> IAsset.buildURL() to generate the URL, and buildURL generates
> relative 
> links.  I can use external-assets, but I prefer not to do that since
> 
> portability is affected.
> 
> Does anything exist to create absolute URLs from an Asset?  Should a
> 
> buildAbsoluteURL() method be added to IAsset?
> 
> Shawn
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org