Re: Struts2 and JSON

2012-08-07 Thread Alvin Chew
Thanks Buddy for the advice! It required no extra library for Struts2, what i really miss is the custom object which have only the contructors with signature but no getter method :( On Tue, Aug 7, 2012 at 7:33 AM, Frans Thamura wrote: > You can use rest plugina > > Automatic become json > > We

Re: Struts2 and JSON

2012-08-06 Thread Frans Thamura
You can use rest plugina Automatic become json We modify the rest plugins for make it full rest. S2restplugins.java.net F On Aug 7, 2012 6:30 AM, "Alvin Chew" wrote: > Good day, > > > If we have a collection like a list of custom object need to send back to > page via ajax, do we need to used

Re: Struts2 and JSON

2012-08-06 Thread Dave Newton
Without any code or config it's impossible to diagnose why the JSON plugin isn't doing it automatically. Dave On Mon, Aug 6, 2012 at 7:30 PM, Alvin Chew wrote: > Good day, > > > If we have a collection like a list of custom object need to send back to > page via ajax, do we need to used a json

Re: struts2 and JSON integration problem (plugin)

2008-06-18 Thread xianwinwin
mmm, this is interesting, I get a dialog box and it says: The currently displayed page contains invalid values. -- View this message in context: http://www.nabble.com/struts2-and-JSON-integration-problem-%28plugin%29-tp17917051p1798.html Sent from the Struts - User mailing list archive at

Re: struts2 and JSON integration problem (plugin)

2008-06-17 Thread Musachy Barroso
On Tue, Jun 17, 2008 at 2:38 PM, xianwinwin <[EMAIL PROTECTED]> wrote: > > 1. How did you add the reference in eclipse? Make sure it is listed in > the J2EE Module dependencies. > > After placing the JAR I right clicked on the project-->Properties-->Java > Build Path-->Libraries-->Add External JAR-

RE: struts2 and JSON integration problem (plugin)

2008-06-17 Thread Karr, David
> -Original Message- > From: xianwinwin [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2008 11:38 AM > To: user@struts.apache.org > Subject: RE: struts2 and JSON integration problem (plugin) > > > 1. How did you add the reference in eclipse? Make sure it

RE: struts2 and JSON integration problem (plugin)

2008-06-17 Thread xianwinwin
being made? Is there return data on the wire? yes, it is, the action works (called) by the autocompleter if I change the extends from 'json-default' to 'Struts-default' -- View this message in context: http://www.nabble.com/struts2-and-JSON-integration-problem-%28plugin%29-tp1

RE: struts2 and JSON integration problem (plugin)

2008-06-17 Thread Dave Newton
Is your URL right? Is the request being made? Is there return data on the wire? Dave --- On Tue, 6/17/08, xianwinwin <[EMAIL PROTECTED]> wrote: > From: xianwinwin <[EMAIL PROTECTED]> > Subject: RE: struts2 and JSON integration problem (plugin) > To: user@struts.apache.org

Re: struts2 and JSON integration problem (plugin)

2008-06-17 Thread Musachy Barroso
clicked something in the autocompleter - it invokes the method > above (so far so good) > > Later, I realized that if I wish to populate a list, I need to use JSON > notation. ok...download the file, read some docs and I realized that the XML > file should do: extends="jso

RE: struts2 and JSON integration problem (plugin)

2008-06-17 Thread xianwinwin
d that the XML file should do: extends="json-default" but when I changed this line (from struts-default) nothing happens when I type something in the autocompleter. Thanks for any pointers. -- View this message in context: http://www.nabble.com/struts2-and-JSON-integration-problem-%28p

RE: struts2 and JSON integration problem (plugin)

2008-06-17 Thread Karr, David
I've also been able to use successfully. > -Original Message- > From: xianwinwin [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2008 9:22 AM > To: user@struts.apache.org > Subject: struts2 and JSON integration problem (plugin) > > > Hi all, >

struts2 and JSON integration problem (plugin)

2008-06-17 Thread xianwinwin
thanks for any help my xml: -- View this message in context: http://www.nabble.com/struts2-and-JSON-integration-problem-%28plugin%29-tp17917051p17917051.html Sent from the Struts - User mail