Re: Wicket 1.5 - Generic JSON Response

2012-04-12 Thread Ahijah
Martin Grigorov-4 wrote On Thu, Apr 12, 2012 at 7:38 AM, Ahijah lt;darren.greer@gt; wrote: mountResource(/Feed2, new MyResourceReference()); class MyResourceReference extends ResourceReference { public IResource getResource() { return new MyResource(); } } Thanks Martin

Wicket 1.5 - Generic JSON Response

2012-04-11 Thread Ahijah
I've been working on various implementations of this all day, to try and output a simple JSON response, as Content-Type: application/json, with absolutely no luck. My current class is setup as below. However, when sending a request to the Feed URL, it comes back as text/plain, with the JSON

Re: Wicket 1.5 - Generic JSON Response

2012-04-11 Thread Ahijah
Thanks for the tip, that definitely sounds like the way to go. Quick follow-up, how does one mount an AbstractResource within the application. There doesn't appear to be an Abstract reference class to instantiate using something like: mountResource(/Feed2, new ResourceReference(Feed2.class));