Hi I think you should remove your CSS file from WEB-INF folder and put them in the application root.
2010/6/30 Christian Koller <christian.kol...@net-m.ch> > Hello everyone > > Is there any change in the asset loading between tapestry 5.2.0-SNAPSHOT > and tapestry 5.1.0.5? > In the example below I create the css link in a dynamic way. The result in > the html output was > /assets/ctx/87c125da0585356e/WEB-INF/css/smartphone.css with the tapestry > version 5.1.0.5. > > With the new version I get: > /assets/ab9e27c38d329f67/ctx/WEB-INF/css/smartphone.css > Unfortunately the smartphone.css isn't reachable and I get an 404 error. > What I'm doing wrong? > > public class Layout { > @Inject > private Logger logger; > > @Inject > private Request request; > > @Inject > private RenderSupport renderSupport; > > @Inject > private AssetSource assetSource; > > void setupRender() { > String handsetGroup = > (String)request.getAttribute(RequestConstants.HANDSET_GROUP); > logger.info("handsetGroup={}" ,handsetGroup); > String cssName = "common.css"; > if(StringUtils.isNotEmpty(handsetGroup)) { > cssName = "smartphone.css"; > } > Asset asset = assetSource.getContextAsset("WEB-INF/css/" + > cssName, null); > renderSupport.addStylesheetLink(asset, null); > } > } > > > Hope someone can help. Thank you. > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Regards, Christophe Cordenier. Committer on Apache Tapestry 5 Co-creator of wooki @wookicentral.com