Wicket, Ajax and JSON

2009-07-31 Thread Serban Balamaci
Hello. I'm trying to create a wicket component out of FlexiGrid http://www.flexigrid.info/ . The javascript for the component requires an address from which it will receive data in the form of a JSON response. I'm not sure what is the best way to go about it. Simple and most ugly approach

Re: Wicket, Ajax and JSON

2009-07-31 Thread John Armstrong
Maybe you are trying to drive screw into a board with a hammer? I recommend just creating servlet to serve up these json style responses and then use the excellent json.org libraries(instead of hand constructing json transform your data structures into json automatically). The only issue you'll

RE: Wicket, Ajax and JSON

2009-07-31 Thread Serban Balamaci
= + encoding); response.write(json data); } -Original Message- From: John Armstrong [mailto:siber...@siberian.org] Sent: 31 iulie 2009 17:33 To: users@wicket.apache.org Subject: Re: Wicket, Ajax and JSON Maybe you are trying to drive screw into a board with a hammer? I

Re: Wicket, Ajax and JSON

2009-07-31 Thread richardwilko
- http://richard-wilkinson.co.uk My blog: http://richard-wilkinson.co.uk -- View this message in context: http://www.nabble.com/Wicket%2C-Ajax-and-JSON-tp24756591p24757846.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Wicket, Ajax and JSON

2009-07-31 Thread francisco treacy
in AbstractDefaultAjaxBehavior? Or any other ideea to go about the problem. Thank you, Serban - http://richard-wilkinson.co.uk My blog: http://richard-wilkinson.co.uk -- View this message in context: http://www.nabble.com/Wicket%2C-Ajax-and-JSON-tp24756591p24757846.html Sent from the Wicket

Re: Wicket, Ajax and JSON

2009-07-31 Thread John Armstrong
in AbstractDefaultAjaxBehavior? Or any other ideea to go about the problem. Thank you, Serban - http://richard-wilkinson.co.uk My blog: http://richard-wilkinson.co.uk -- View this message in context: http://www.nabble.com/Wicket%2C-Ajax-and-JSON

Re: Wicket, Ajax and JSON

2009-07-31 Thread serban . balamaci
Thanks guys, loved the AbstractAjaxBehavior solution, and by the way jqgrid seems to be more active and the way to go(thanks for pointing it Richard). Keeping fingers crossed for wiQuery and if they even bring the flexi or jqgrid to wicket it's gonna prove you can have awesome visual components in