try that ((WebResponse) 
requestCycle.getResponse()).setContentType("application/json");

François Meillet
Formation Wicket - Développement Wicket





Le 31 janv. 2014 à 09:17, "chathuraka.waas" <chathuraka.w...@gmail.com> a écrit 
:

> Hi,
> 
> i'm trying to migrate my application from 1.4 to 6 and stuck in a problem. 
> 
> the current code for setting content type and other parameters for response
> is, 
> 
> requestCycle.getResponse().setContentType("application/json");
> requestCycle.getResponse().setCharacterEncoding("UTF-8");
> requestCycle.getResponse().setContentLength(authUrl.length());
> 
> and in wicket 6 it seems response doesnt have those methods. how can i
> achieve this in wicket 6. 
> 
> thanks in advance. 
> 
> 
> 
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/setting-response-parameters-in-wicket-6-tp4664084.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
> 

Reply via email to