Re: Struts 2 jQuery autocompleter and dynamic list

2013-05-29 Thread Mike Hao
Hi Antonios,

Thank you so much for your response. I was actually keep reading the wiki
these days, but I am still not able to get what I expected.


For sj:autocompleter, can these two attribute list and href used
together?

Thanks,
Mike


On Wed, May 29, 2013 at 4:13 AM, Antonios Gkogkakis gkogk...@tcd.ie wrote:

 Hi Mike,

 have a look at the following link
 https://code.google.com/p/struts2-jquery/wiki/AutocompleterTag

 Antonios



 On 29 May 2013 01:50, Mike Hao mike@gmail.com wrote:

  I am trying to implement an auto complete feature using Struts 2 jQuery
  plugin - sj:autocompleter. The suggestion list need to be dynamically
  retrieved from backend based on the characters user entered. Is it
 possible
  to implement this behaviour using S2 jQuery plugin? Does anyone has a
 good
  example?
 
  I could not find such an example in showcase.
 
  Thanks,
  Mike
 



Re: Struts 2 jQuery autocompleter and dynamic list

2013-05-29 Thread Mike Hao
Hi Antonios and Dave,

Thanks again for your responses. I actually downloaded the whole showcase
project, and trying debugging on my local machine, trying to figure out
what's the trick of it. At here, I think if the wiki pages provides more
detail instructions on how to set some critical attributes, that would be a
great help to users. I think I am not only one get confused. Like the
variable term declared in the Autocompleter.java class. Nowhere tells
users what's this guy, how to use it. Now, I finally figured out that this
term is used to catch the characters user typed in.

I actually tried this several months ago, and could not get it working. So,
I gave it up. Now, I came back again, since I have to.

Regards,
Mike



On Wed, May 29, 2013 at 2:39 PM, Dave Newton davelnew...@gmail.com wrote:

 I'd just try it; seems like `list` would be for immediate data (e.g., on
 first page load) and then it would be replaced by data from
 `href`--although I'm not sure what the point of using both would be.

 Dave


 On Wed, May 29, 2013 at 2:25 PM, Antonios Gkogkakis gkogk...@tcd.ie
 wrote:

  I haven't used the sj:autocompleter (I'm using the jQuery
  autocompletedirectly), but from what I'm reading in the documentation
  if you use the href that points to a location that is returning json data
  you don't have to use the list attribute.
 
  Have you tried setting up the  example in the documentation?
 
 
 
 
 
  On 29 May 2013 18:57, Mike Hao mike@gmail.com wrote:
 
   Hi Antonios,
  
   Thank you so much for your response. I was actually keep reading the
 wiki
   these days, but I am still not able to get what I expected.
  
  
   For sj:autocompleter, can these two attribute list and href used
   together?
  
   Thanks,
   Mike
  
  
   On Wed, May 29, 2013 at 4:13 AM, Antonios Gkogkakis gkogk...@tcd.ie
   wrote:
  
Hi Mike,
   
have a look at the following link
https://code.google.com/p/struts2-jquery/wiki/AutocompleterTag
   
Antonios
   
   
   
On 29 May 2013 01:50, Mike Hao mike@gmail.com wrote:
   
 I am trying to implement an auto complete feature using Struts 2
  jQuery
 plugin - sj:autocompleter. The suggestion list need to be
  dynamically
 retrieved from backend based on the characters user entered. Is it
possible
 to implement this behaviour using S2 jQuery plugin? Does anyone
 has a
good
 example?

 I could not find such an example in showcase.

 Thanks,
 Mike

   
  
 



 --
 e: davelnew...@gmail.com
 m: 908-380-8699
 s: davelnewton_skype
 t: @dave_newton https://twitter.com/dave_newton
 b: Bucky Bits http://buckybits.blogspot.com/
 g: davelnewton https://github.com/davelnewton
 so: Dave Newton http://stackoverflow.com/users/438992/dave-newton



Struts 2 jQuery autocompleter and dynamic list

2013-05-28 Thread Mike Hao
I am trying to implement an auto complete feature using Struts 2 jQuery
plugin - sj:autocompleter. The suggestion list need to be dynamically
retrieved from backend based on the characters user entered. Is it possible
to implement this behaviour using S2 jQuery plugin? Does anyone has a good
example?

I could not find such an example in showcase.

Thanks,
Mike


Re: struts 2 ajax choice

2013-05-13 Thread Mike Hao
Will the S2 jQuery plugin provide the similar functions as S2 dojo plugin?
Is S2 jQuery plugin maintained by Struts 2 team? I am using Dojo plugin
right now, and it works pretty well. Could anyone give me explanation why
S2 Dojo plugin get deprecated?

Thanks,
Mike


On Mon, May 13, 2013 at 5:48 PM, Dave Newton davelnew...@gmail.com wrote:

 They're not even close to being the same thing.

 The JSON plugin provides JSON de/serialization. The Dojo plugin was a
 complete client-side tag library.

 There's the S2 jQuery plugin [1] which would be the non-official equivalent
 of the old Dojo taglib.

 Dave

 [1] http://code.google.com/p/struts2-jquery/



 On Mon, May 13, 2013 at 5:47 PM, john lee sh_thorn_b...@yahoo.com wrote:

 
 
  So, JSON is the only choice ?
 
  thanks
 
  john
 
 
 
  
   From: Paul Benedict pbened...@apache.org
  To: Struts Users Mailing List user@struts.apache.org; john lee 
  sh_thorn_b...@yahoo.com
  Sent: Monday, May 13, 2013 4:43 PM
  Subject: Re: struts 2 ajax choice
 
 
  Please note the Dojo plugin is deprecated.
 
 
  On Mon, May 13, 2013 at 4:42 PM, john lee sh_thorn_b...@yahoo.com
 wrote:
 
  
  
   from the document,
  
  
   Struts 2 support both DoJo plugin and JSON plugin,
  
  
   which one is easy to plugin and use?
  
  
   which one is more powerful?
  
   thanks in advance
  
   john
 



 --
 e: davelnew...@gmail.com
 m: 908-380-8699
 s: davelnewton_skype
 t: @dave_newton https://twitter.com/dave_newton
 b: Bucky Bits http://buckybits.blogspot.com/
 g: davelnewton https://github.com/davelnewton
 so: Dave Newton http://stackoverflow.com/users/438992/dave-newton



Re: struts 2 ajax choice

2013-05-13 Thread Mike Hao
Hi Dave,

Thank you so much for your quick response and your explanations.

Regards,
Mike


On Mon, May 13, 2013 at 6:03 PM, Dave Newton davelnew...@gmail.com wrote:

 On Mon, May 13, 2013 at 5:56 PM, Mike Hao mike@gmail.com wrote:

  Will the S2 jQuery plugin provide the similar functions as S2 dojo
 plugin?
 

 The docs and examples are available on the site I linked to.


  Is S2 jQuery plugin maintained by Struts 2 team?


 The S2 jQuery plugin I linked to is an independent project that happens to
 have at least one S2 team member on it.

 It is *not* an official plugin, but it's quite a bit more recent, and
 better (IMO) than the deprecated Dojo plugin.

 Could anyone give me explanation why
  S2 Dojo plugin get deprecated?
 

 Because it used a very old version of Dojo and nobody had the interest in
 upgrading and maintaining it.

 Dave