RE: struts 2 ajax choice

2013-05-14 Thread Martin Gainty
UI Controls:
s2jquery will allow you to render a true grid control whose display parameters 
are fully configurable from cssClass
and will populate from a configurable number of sources and process that query 
by a Struts Action
http://struts.jgeppert.com/struts2-jquery-showcase/index.action

Transmission Formats:
Json is another way of sending data from the server and client based on 
name-value pairings OR ordered-list
http://www.json.org/

If the client is expecting JSON then you want to manipulate your response from 
the server to JSON format as you render the response

Regardless of the control you are implementing you can render you response 
using JSONResult
http://code.google.com/p/struts2-jquery/wiki/JsonResult
 
does that answer your question?

Martin Gainty 
__ 
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, 13 May 2013 15:07:01 -0700
 From: sh_thorn_b...@yahoo.com
 Subject: Re: struts 2 ajax choice
 To: davelnew...@gmail.com; user@struts.apache.org
 
 Dave,
 
 so, as your experience, which one u recommend to use?
 
 JSON or S2Jquery?
 
 thanks in advance
 
 john  
 
 
 
 
 From: Dave Newton davelnew...@gmail.com
 To: Struts Users Mailing List user@struts.apache.org 
 Cc: john lee sh_thorn_b...@yahoo.com 
 Sent: Monday, May 13, 2013 5:03 PM
 Subject: Re: struts 2 ajax choice
 
 
 
 
 
 
 
 
 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
  

Re: struts 2 ajax choice

2013-05-14 Thread Ken McWilliams
I don't suppose you would consider neither as a valid choice?

The short is the JS APIs are the intended intended to be used with JS not
XML. When you use these integrated tag libraries you end up with a brittle
solution. They can only factor in so much with XML. It makes about as much
sense as wrapping Java with XML tags.

So I'm certainly not saying don't use DOJO or jQuery I'm just skeptical of
the plugin benefits for either.


On Tue, May 14, 2013 at 3:56 AM, Martin Gainty mgai...@hotmail.com wrote:

 UI Controls:
 s2jquery will allow you to render a true grid control whose display
 parameters are fully configurable from cssClass
 and will populate from a configurable number of sources and process that
 query by a Struts Action
 http://struts.jgeppert.com/struts2-jquery-showcase/index.action

 Transmission Formats:
 Json is another way of sending data from the server and client based on
 name-value pairings OR ordered-list
 http://www.json.org/

 If the client is expecting JSON then you want to manipulate your response
 from the server to JSON format as you render the response

 Regardless of the control you are implementing you can render you response
 using JSONResult
 http://code.google.com/p/struts2-jquery/wiki/JsonResult

 does that answer your question?

 Martin Gainty
 __
 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, 13 May 2013 15:07:01 -0700
  From: sh_thorn_b...@yahoo.com
  Subject: Re: struts 2 ajax choice
  To: davelnew...@gmail.com; user@struts.apache.org
 
  Dave,
 
  so, as your experience, which one u recommend to use?
 
  JSON or S2Jquery?
 
  thanks in advance
 
  john
 
 
 
  
  From: Dave Newton davelnew...@gmail.com
  To: Struts Users Mailing List user@struts.apache.org
  Cc: john lee sh_thorn_b...@yahoo.com
  Sent: Monday, May 13, 2013 5:03 PM
  Subject: Re: struts 2 ajax choice
 
 
 
 
 
 
 
 
  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




Re: struts 2 ajax choice

2013-05-14 Thread NIJO GEORGE
Use DWR(Direct Web Remoting) for easy ajax implementation from Struts2

NIJO GEORGE P
Follow me on Twitter http://www.twitter.com/nijogeorgep
Add me as Friend http://www.facebook.com/nijogeorgep
View my Profile on LinkedIn http://in.linkedin.com/in/nijogeorgep
+918089699703


On 14 May 2013 03:12, 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


struts 2 ajax choice

2013-05-13 Thread john lee


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

Re: struts 2 ajax choice

2013-05-13 Thread Paul Benedict
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


Re: struts 2 ajax choice

2013-05-13 Thread john lee


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

Re: struts 2 ajax choice

2013-05-13 Thread Dave Newton
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
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 Dave Newton
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


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



Re: struts 2 ajax choice

2013-05-13 Thread john lee
Dave,

so, as your experience, which one u recommend to use?

JSON or S2Jquery?

thanks in advance

john  




 From: Dave Newton davelnew...@gmail.com
To: Struts Users Mailing List user@struts.apache.org 
Cc: john lee sh_thorn_b...@yahoo.com 
Sent: Monday, May 13, 2013 5:03 PM
Subject: Re: struts 2 ajax choice
 







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