I think that if you search the mailing list archives, there are a
couple examples of this.  I know that there was an email from Bruno
Borges about creating a REST API with Wicket around last November.
The pointers that were brought out in that thread would be very useful
to you.

Basically, mount the page as a bookmarkable page.  Then, in your
constructor, the query parameters will be available in PageParameters.
 Use them, do your business.  Then I think writing directly to the
response would be the easiest way of returning the JSON.

--
Jeremy Thomerson
http://www.wickettraining.com




On Wed, Aug 5, 2009 at 4:20 PM, Arun Gupta<[email protected]> wrote:
> I need to define couple of URLs in my app that return JSON data on GET
> request and are not tied to any view. Planning to use
> QueryStringUrlCodingStrategy and append the URL as
> "type=runlogs&chart=barchart". Then in the WebPage, extract the query
> string and process them.
>
> How do I ensure that JSON data is returned for GET requests to those URLs ?
>
> Thanks,
> -Arun
>
> --
> Need Application Server ? - Download glassfish.org
> Blog: http://blogs.sun.com/arungupta
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to