Ok, finally managed to run the page affected by the code and it's working
as expected.
Thanks!
On 18 September 2012 15:35, Martin Grigorov mgrigo...@apache.org wrote:
See TextRequestHandler too.
On Tue, Sep 18, 2012 at 5:18 PM, Rodrigo Heffner
rodrigo.heff...@gmail.com wrote:
Thanks, Decebal!
I removed an extra { after the ByteArrayResource - it's looking like
this
now:
String jsonData = object.toString();
IResource jsonResource = new ByteArrayResource(text/plain,
jsonData.getBytes());
IRequestHandler requestHandler = new ResourceRequestHandler(jsonResource,
null);
requestHandler.respond(getRequestCycle());
... and I removed the StringRequestTarget line. The compiler isn't
complaining so I'm hoping this will work, but I'll be able to test
functionally only in few hours.
Thanks again.
On 18 September 2012 15:07, Decebal Suiu decebal.s...@asf.ro wrote:
Hi
Try (wicket 1.5 but I think that works for wicket 6):
String jsonData = object.toString()
IResource jsonResource = new ByteArrayResource(text/plain,
jsonData.getBytes()) {
IRequestHandler requestHandler = new
ResourceRequestHandler(jsonResource, null);
requestHandler.respond(getRequestCycle());
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/StringRequestTarget-migration-question-tp4652110p4652111.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
--
Rodrigo H M Bezerra
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
--
Rodrigo H M Bezerra