http://tapestry.apache.org/assets.html
http://tapestry.1045711.n5.nabble.com/T5-Assets-resources-and-file-path-td2416655.html
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/asset-expansion-question-tp3697610p3834582.html
Sent from the Tapestry - User mailing list archive
Hallo,I have a new question!
I'm writing a asset expansion like this
lmg src=${asset:uri:http://people.apache.org/~uli/images/tapestry.png} /
I implememt a Resource using URI, and add a asset configure,It works well
Now I want to change it like this img
I want the server root path http://people.apache.org/~uli/ to
be configurable ,so it can be configured using tapestry symbols.I tried
this
using AssetFactory,URIResource,and symbols,but failed
Can anyone help me?
Please define failed? What is the error, or what does the generated
HTML
Here is my code.
TemplateResource.java
public class TemplateResource implements Resource{
private URI uri;
public TemplateResource(String uri) {
try {
this.uri = new URI(uri);
} catch (URISyntaxException e) {
throw new RuntimeException(e);
}
}
public TemplateResource(URI uri) throws