Struts + GWT or JQuery

7 views
Skip to first unread message

DavidK

unread,
Dec 15, 2009, 1:20:10 PM12/15/09
to Grand Rapids Java User Group
Has anyone used GWT or JQuery or something similar with in a struts
project? What works best or is the best fit. I am looking at making
the user experience a little nicer for a struts application. A couple
of things asked for are calendar to pick a date from in stead of
entering a date and something similar to modal dialog boxes for
confirmation screens. Perhaps GWT or Jquery would not be the correct
tool - what do you all think?

Yong Lim

unread,
Dec 16, 2009, 6:29:29 AM12/16/09
to Grand Rapids Java User Group
IMHO, it would be an overkill to use GWT/JQuery just for popup
calendar, there are lots of Javascript calendar around for doing that.
but if the intention to add a AJAX toolkit to the existing project,
then it is a matter of preference and familiarity as there are plenty
of AJAX toolkit around too.
dojo toolkit, yahoo YUI, prototype, script.aculo.us, of course GWT and
JQuery which you mentioned

Jason Porritt

unread,
Dec 16, 2009, 8:04:00 AM12/16/09
to grand-rapids-j...@googlegroups.com
I haven't used JQuery with Struts, but I can easily recommend it
paired with just about anything (except maybe other JavaScript
libraries). There is a huge variety of plugins and you'll have no
problem finding a nice date picker/calendar widget.

JQuery does a good job of providing a foundation for whatever
client-side functionality you need today, and you can easily add
plugins or write your own code later without having to worry much
about interactions between components.

As Yong pointed out, the same could probably be said of other
JavaScript libraries, but my experience with JQuery has been nothing
but positive.

Hope that's helpful,
--Jason
> --
>
> You received this message because you are subscribed to the Google Groups "Grand Rapids Java User Group" group.
> To post to this group, send email to grand-rapids-j...@googlegroups.com.
> To unsubscribe from this group, send email to grand-rapids-java-us...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/grand-rapids-java-user-group?hl=en.
>
>
>

DavidK

unread,
Dec 16, 2009, 2:18:13 PM12/16/09
to Grand Rapids Java User Group
Thank you both for your input. I certainly hope I don't have to add a
frame work for just a calendar. The management wants other stuff like
modal dialog box for confirmation and other ui fluf. I have been
looking at Dojo today as it sounds like it works with struts (at least
struts 2) a bit better.
> > For more options, visit this group athttp://groups.google.com/group/grand-rapids-java-user-group?hl=en.- Hide quoted text -
>
> - Show quoted text -

Jeremy Anderson

unread,
Dec 16, 2009, 2:27:11 PM12/16/09
to grand-rapids-j...@googlegroups.com
Struts 2 already has an AJAX framework baked right in, dojo I think, or at least it was last I used it.  You'll want to look into the struts datetimepicker tag.  http://struts.apache.org/2.1.8/docs/datetimepicker.html 

Andy Miller

unread,
Dec 16, 2009, 3:01:02 PM12/16/09
to grand-rapids-j...@googlegroups.com
I would have suggested jQuery, but if dojo is built-in, that could work too. I really enjoy working with GWT, but it doesn't have a huge library of off the shelf widgets (athough SmartGwt and ExtGwt are both nice). We write most of our controls from scratch, but that's overkill for most applications.

-Andy
Reply all
Reply to author
Forward
0 new messages