You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Sylvain COUTANT <sc...@adviseo.fr> on 2005/09/16 11:01:46 UTC

Asset encoder does not work

Hi again,

I tried to setup friendly URLs and it works well, except for assets ... I wrote a contribution like :

<contribution configuration-id="tapestry.url.ServiceEncoders">
	<page-service-encoder id="page" service="page" extension="html"/>
	<page-service-encoder id="external" service="external" extension="ext"/>
	<direct-service-encoder id="direct" stateless-extension="do" stateful-extension="so"/>
	<asset-encoder id="asset" path="/assets/"/>
	<extension-encoder id="ext" extension="svc" after="*"/>
</contribution>

Everything work, except the asset encoder. Paths are sent without translation to client browser. Ie, the following asset declaration :

<asset name="css_template" path="context:css/template_css.css"/>

Results in the following url : http://www/mywebapp/css/template_css.css

Any tip what I should do to debug this ?


Regards,

--
Sylvain COUTANT

ADVISEO
http://www.adviseo.fr/
http://www.open-sp.fr/



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