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.struts2.jquery.grid.showcase.model.Productlines Table: @Column(name = "HTMLDESCRIPTION") public Clob getHtmldescription() { return this.htmldescription; } public void setHtmldescription(Clob htmldescription) { this.htmldescription = htmldescription; } @Column(name = "IMAGE") public Blob getImage() { return this.image; } public void setImage(Blob image) { this.image = image; } will not work in mysql-5.1.25 i believe the fallback position is to refactor htmldescription as CHARACTER(4000); what MySQL recommends is to store the *link to the image* and not the image itself e.g. \images\ajax-loader.jpg advice? Martin ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Mon, 14 Feb 2011 06:28:50 -0800 > From: jo...@web.de > To: user@struts.apache.org > Subject: Re: Strut2 JQuery > > > 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 sourceUrl > > } > }); > }); > > and now you can simply overwrite this variable in an one liner > inside of your jsp with the correct struts2 action. > > an other way for your problem is that you can copy all the > resources out of the jar file into an own folder in your WebContent. > > In the <sj:head /> tag you can reference this with the scriptPath attribute. > Now you can easy extend the autocompleter section in the sources. > > Best Regards > > Johannes > > > CRANFORD, CHRIS wrote: > > > > 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 it's better to simply use JQuery directly; however I want > > to avoid all these scripts in my JSPs if I could. For example: > > > > jQuery(document).ready(function() { > > > > $("#itemsList").autocomplete( > > { > > source:function(request,response) { > > // do some stuff here, including $.ajax > > // to server to get data for autocomplete widget > > }, > > select:function(event, ui) { > > // once an item is selected, take ui.item.value > > // and set the value of a few other fields > > }, > > // more options... > > }); > > }); > > > > Obviously I could very easily drop this into a JS file; however the > > source function() above needs to be able to take a Struts2 action and be > > able to create the URL that is appropriate to the current context. > > Obviously, I could write my own taglib that allows me to specify all the > > parameters, attributes, etc for such a widget and it would inject the > > javascript when the page is rendered; however I'd prefer to see if there > > is a way I can easily extend the current plugin I am using or if there > > 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... > > > > Chris > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > > > > ----- > --- > web: http://www.jgeppert.com > twitter: http://twitter.com/jogep > > -- > View this message in context: > http://old.nabble.com/Strut2-JQuery-tp30921546p30922159.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org >