struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lucas owen <sr.ilus...@gmail.com>
Subject Re: Struts2-jQuery plugin
Date Thu, 22 Nov 2012 11:34:09 GMT
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 <zoran@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.ilustre@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!!
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message