Lukas and Zoran we used to bind handlers to the DOM elements almost the same way in Dojo JQuery: to bind a EventType.Namespace to a JS handler you implement the bind.bind('click.name', handler), the string click is the event type, and the string name is the namespace. http://api.jquery.com/bind/ that EventType.Namespace seems backwards does this conform to your understanding? Thanks, Martin Gainty ______________________________________________ Note de déni et de confidentialité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: Thu, 22 Nov 2012 12:34:09 +0100 > Subject: Re: Struts2-jQuery plugin > From: sr.ilus...@gmail.com > To: zo...@sparecreative.com > CC: user@struts.apache.org > > Hi Zoran > > I don't need to use the plugin, simple jQuery is good as long as it works > > Could you please show your code? > > Thanks. > > > 2012/11/22 Zoran Avtarovski <zo...@sparecreative.com> > > > Hi Lucas, > > > > I don't use the plugin as I find using jQuery without a plugin to be > > simple enough. > > > > I suspect that if you look at the generated javascript in your > > searchResult.jsp page the jQuery binding will be waiting for a document > > ready trigger which isn't fired for ajax requests. > > > > The way I get around this to use the jQuery live function for binding > > which works perfectly, but as I said not having used the sj plugin not > > sure what you need to do. > > > > Z. > > > > > > > > On 21/11/12 12:46 AM, "lucas owen" <sr.ilus...@gmail.com> wrote: > > > > >Hi Struts users! > > > > > >I'm building a web app and I have a serious problem: > > > > > >index.jsp is a search form with 2 combo boxes which i populate with > > >sj:select (this works correctly) > > > > > >when the user clicks "search", the form sends the data to search.action > > >and > > >the results are displayed in searchResult.jsp > > > > > >in this searchResult.jsp i have the same 2 como boxes (same code) but > > > > > >1.- they dont work (they dont call the sj:select href action) > > >2.- they dont get pre-selected with the value the user entered > > > > > >so the question is can i use sj:select after coming from search.action or > > >this just can be used in jsp without any previous struts processing (like > > >index.jsp)? > > > > > >thank you so much in advance!! > > > > > >