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

Re: Wicket, Ajax and JSON

2009-07-31 Thread John Armstrong
Maybe someone can document a workable solution in the Wiki for future generations? Tx J On Fri, Jul 31, 2009 at 10:22 AM, francisco treacy < francisco.tre...@gmail.com> wrote: > That's cool. > > I'm still surprised to see that whenever something remotely > ressembling stateless/REST comes up in t

Re: Wicket, Ajax and JSON

2009-07-31 Thread francisco treacy
That's cool. I'm still surprised to see that whenever something remotely ressembling stateless/REST comes up in the mailing list, the gut reaction is: servlets. It might be simpler for a few usecases, but normally you also want to take advantage of other Wicket features - precisely the reason why

Re: Wicket, Ajax and JSON

2009-07-31 Thread richardwilko
Hi, Instead of using AbstractDefaultAjaxBehavior you can use its superclass AbstractAjaxBehavior as follows: AbstractAjaxBehavior behaviour = new AbstractAjaxBehavior() { private static final long serialVersionUID = 1L; @SuppressWarnings("unchecked")

RE: Wicket, Ajax and JSON

2009-07-31 Thread Serban Balamaci
ot;text/xml; charset=" + 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

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 hav

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 woul