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 
Add me as Friend 
View my Profile on LinkedIn 
+918089699703


On 14 May 2013 03:12, john lee  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-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  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 
> > To: Struts Users Mailing List 
> > Cc: john lee 
> > 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  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 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 
> To: Struts Users Mailing List  
> Cc: john lee  
> 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  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