hi, location of JS is:
webapp/js/jquery-1.7.1.js to compare, WEB-INF is in: webapp/WEB-INF to load something from WEB-INF during run time, I do: globals.getServletContext().getResourceAsStream("/WEB-INF/param.txt") Here is the class: public class JS_stack implements JavaScriptStack { private final AssetSource assetSource; public JS_stack(AssetSource assetSource) { this.assetSource = assetSource; } public List<String> getStacks() { return null; } public List<Asset> getJavaScriptLibraries() { List<Asset> ret = new ArrayList<Asset>(); ret.add(assetSource.getUnlocalizedAsset("context:/js/jquery-1.7.1.js")); return ret; } public List<StylesheetLink> getStylesheets() { return null; } public String getInitialization() { return null; } } Here is the code in AppModule, it is at end: @Contribute(JavaScriptStackSource.class) public static void addMyStack (MappedConfiguration<String, JavaScriptStack> configuration) { configuration.addInstance("my_js_stack", JS_stack.class); } -- View this message in context: http://tapestry.1045711.n5.nabble.com/combining-scripts-tp5715446p5715488.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org