Check http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/ It returns images but it should be easy for you to rework it to return any other kind of data.
On Thu, Apr 25, 2013 at 5:28 PM, heikki <[email protected]> wrote: > thanks, > > that example does indeed work fine, but I'd rather have *no* markup file, > just generate the XML or JSON myself and send that back in the response. > > So I need a mounted IResource to do that ? Any tip how to go about it for > this use case, e.g. use a ByteArrayResource ? > > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Wicket-returning-XML-or-JSON-tp4658271p4658273.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com <http://jweekend.com/>
