I'm building a class that implements the IMarkupResourceStreamProvidor
interface and I'm using the AbstractStringResourceStream like so:
public IResourceStream getMarkupResourceStream(MarkupContainer
container, Class<? extends MarkupContainer> containerClass) {
final String feedOutput = renderFeed();
return new AbstractStringResourceStream("application/xml;
charset=UTF-8") {
@Override
protected String getString() {
return feedOutput;
}
public long length() {
return feedOutput.length();
}
};
}
I'm passing in the content type, but the page always renders as text/html.
is this a bug, or am I doing something incorrect?
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user