I have my Wicket 1.4 code to have a link to download a file which is generated programatically:
protected class MyWebResource extends WebResource {
public IResourceStream getResourceStream() {
.....
return new StringResourceStream(myString, "text/plain");
}
}
ResourceLink<?> downloadLink =
new ResourceLink<Object>("downloadLink", new MyWebResource());
Everything was good. Now I've upgrade to Wicket 1.5. Now WebResource
doesn't exist any more.
I've searched the web for ages, surely this must be a simple problem which has a simple solution? Alas I can't find it.