struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alireza Fattahi <afatt...@yahoo.com>
Subject Re: AJAX Jsp tags
Date Sat, 10 Aug 2013 09:05:43 GMT
Thanks for your comment.
Did you have any experience with struts jquery tag or other tags too?
Or you complete suggest that we write our own tags !


 
~Regards,
~~Alireza Fattahi


________________________________
 From: Ken McWilliams <ken.mcwilliams@gmail.com>
To: Struts Users Mailing List <user@struts.apache.org> 
Sent: Friday, 9 August 2013, 8:22
Subject: Re: AJAX Jsp tags
 

Don't use a JSP AJAX tag library. The dojo JSP tags didn't work well not
because of dojo or an fault of the tag authors, the technologies simply
don't mesh. It's as sane to program Java via XML as it is to program
JavaScript via XML.

XML is used for configuration. At first glance you think you'll only need
trivial behaviour but this is seldom ever the case,  JS UI components are
much easier to work with and you will need to provide your own handlers,
which are often required even in the simple cases. XML can not account for
all these cases and does not provides the means to add custom handlers in a
way that would be as simple as using the underlying JS framework naturally.

Further the tag authors often lag behind the UI components that they wrap,
the documentation and features often fall behind too.

With even a trivial understanding of JS you should be able to produce the
same results as the Tags in the same time frame, as you gain experience
you'll quickly superseded the capabilities of any tag library.





On Thu, Aug 8, 2013 at 11:02 AM, Chris Pratt <thechrispratt@gmail.com>wrote:

> The dojo based tags are deprecated, the jQuery based tags are not.
>   (*Chris*)
>
>
> On Thu, Aug 8, 2013 at 9:54 AM, Alireza Fattahi <afattahi@yahoo.com>
> wrote:
>
> > Hi,
> >
> > I have confused with struts 2 ajax please correct me:
> > 1- The dojo plugin is deprecated (
> > http://struts.apache.org/release/2.3.x/docs/ajax-tags.html)
> > 2- According to above we are not recommended to use dojo plugin in new
> > projects.
> >  3- All tags that mentioned in above page like: a, autocompliter,bind ...
> > shall not be used.
> > 4- According to page
> http://struts.apache.org/release/2.3.x/docs/ajax.html
> > :
> > "....First, you can use some type of JSP tag. Here, you don't have to
> know
> > very much at all about Ajax or JavaScript. The taglib does all the work,
> > and you just have to figure out how to use the taglib. The standard
> > Struts 2 taglib includes several Ajax JSP tags,"
> > 5- The "Ajax JSP tags" link above will redirect to
> > http://struts.apache.org/release/2.3.x/docs/ajax-tags.html, which is
> > deprecated!!
> >
> > I don't get it !
> > Can we use AJAX Jsp tags or they are deprecated ?
> >
> >
> > ~Regards,
> > ~~Alireza Fattahi
> >
>
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message