The contenttype of the _markup_ resource stream is not used for rendering the output. In fact, content type for _markup_ resource streams is not used at all. Please use WebPage.configureResponse() on how to change the output content type.
Juergen On 1/5/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote: > 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 > > > ------------------------------------------------------------------------- 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