Hi, Verify that the post data is actually sent to the server by using the browser's Dev Tools. requestCycle.getRequest().getPostParameters().getParameterValue(theName) should work.
Please show us the JS code that you use to send the request. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Dec 16, 2014 at 3:36 PM, oljomen <olja.stani...@gmail.com> wrote: > > Hello all, > > I am having trouble in reading json from ajax call. > > I am trying to implement some component that has behavior that receive ajax > requests. Component uses kendoUI and sends ajax request to my listener as > post method with small json in body (for example {"id":1}) but I am not > able > to read it in wicket. I am new to wicket, but I have tried to get it from > requestCycle.getRequest().getPostParameters() and no luck. > > Can anyone help me? > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Read-JSON-from-ajax-post-tp4668789.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >