RE: Strut2 JQuery

2011-02-14 Thread Martin Gainty
yes..the ajax controls have improved over the legacy plugin..many thanks for getting this to work java.sql.CLOB or java.sql.BLOB Datatypes are supported in Oracle but the mysql-5.1.25 database I am currently implementing does not support java.sql.CLOB or java.sql.BLOB so com.jgeppert.str

Re: Interceptor or preparable/ModelDriven or ActionChain ?

2011-02-14 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/14/2011 11:33 AM, Paweł Wielgus wrote: > Hi Barry, > maybe custom converter will suits your needs? > > http://struts.apache.org/2.2.1.1/docs/type-conversion.html > > Best greetings, > Paweł Wielgus. Thank you very, very much! That looks like

Re: Interceptor or preparable/ModelDriven or ActionChain ?

2011-02-14 Thread Paweł Wielgus
Hi Barry, maybe custom converter will suits your needs? http://struts.apache.org/2.2.1.1/docs/type-conversion.html Best greetings, Paweł Wielgus. 2011/2/14 Barry L. Kline : > I have an application used to track response times.  Essentially, an > event occurs and a database row is created with a

Interceptor or preparable/ModelDriven or ActionChain ?

2011-02-14 Thread Barry L. Kline
I have an application used to track response times. Essentially, an event occurs and a database row is created with a Timestamp showing when it occurred. A "trouble sheet" is printed and the technicians take care of the problem, filling in the sheet. Once the sheet migrates back to the office th

Re: Strut2 JQuery

2011-02-14 Thread Johannes Geppert
Hi Chris, when you move the javascript into an external js file. you can create an global javascript variable like this : var sourceUrl = ""; jQuery(document).ready(function() { $("#itemsList").autocomplete( { source:function(request,response) { // do some ajax stuff here with sou

Re: Strut2 JQuery

2011-02-14 Thread Dave Newton
On Mon, Feb 14, 2011 at 8:43 AM, CRANFORD, CHRIS wrote: > I tried passing the JS through something that understands JSP but it > seemed to have been a failed attempt as nothing seemed to work. I'd guess it's not being done correctly, then? Without knowing more it's tough to help, but unless someth

RE: Strut2 JQuery

2011-02-14 Thread Martin Gainty
if you take a look at the capabilities of the original Jquery library you will see jquery-plugin is missing features (for grid) and requires work http://code.google.com/p/struts2-jquery/issues/list as mentioned you can still implement the original JQuery JS code Martin

RE: Strut2 JQuery

2011-02-14 Thread CRANFORD, CHRIS
I tried passing the JS through something that understands JSP but it seemed to have been a failed attempt as nothing seemed to work. What the existing plugin does is somewhat as you described; the tags create a simple JSON object filled with options and then passes those options off to the javascr

Re: Strut2 JQuery

2011-02-14 Thread Dave Newton
> is a better plugin I could use to get the same results or whether just > using JQuery directly is the acceptable route in this case... Using jQuery directly is almost always the easiest way to use jQuery. When I need to pass JSP-ish things to JavaScript I usually just pass a JSON object to [a f

Re: RE: JSON Error - Hibernate Entities

2011-02-14 Thread Maurizio Cucchiara
My guess is that the json plugin was navigating the entire graph object, trying to serialize the entire java world. Maurizio Cucchiara Il giorno 14/feb/2011 14.12, "CRANFORD, CHRIS" ha scritto: > I eventually decided to write a DTO wrapper that took my POJO as a constructor argument and extracte

Strut2 JQuery

2011-02-14 Thread CRANFORD, CHRIS
I believe there are two JQuery plugins for Struts2 and I have been using the one from http://code.google.com/p/struts2-jquery/ for a little bit now. For very basic JQuery functionality I have not found any issues with this plugin; however when one wishes to do something more complex, I am finding

RE: JSON Error - Hibernate Entities

2011-02-14 Thread CRANFORD, CHRIS
I eventually decided to write a DTO wrapper that took my POJO as a constructor argument and extracted the fields I wanted to pass instead of trying to serialize the entire object and that seemed to work. It just appears that the amount of information within the POJO was creating issues for JSON

Re: using select while migrating struts 1 to Struts 2

2011-02-14 Thread Dave Newton
> Is it possible to use old (Struts 1) select with struts 2. Short answer; not really. > In case there are local list in JSP page in struts 1 which uses "option" to > display the list dynamically it has to be written in action class in struts > 2. > > The code for the current approach is below: >

using select while migrating struts 1 to Struts 2

2011-02-14 Thread Ashish Shrivastava
Hi, Is it possible to use old (Struts 1) select with struts 2. Struts 2 select has mandatory attribute "list". SO if struts 1 select code needs to be migrated to struts 2 then list(array list etc.) has to be in action classes. In case there are local list in JSP page in struts 1 which uses "opt

Re: JSON Error - Hibernate Entities

2011-02-14 Thread Maurizio Cucchiara
Your Item class is a simple POJO [1], isn't it? Have you tried to use a DTO [2] object and see what happens? [1] http://en.wikipedia.org/wiki/Plain_Old_Java_Object [2] http://martinfowler.com/eaaCatalog/dataTransferObject.html On 14 February 2011 08:39, CRANFORD, CHRIS wrote: > > Here is the por