I am very good at jQuery and have used it in many PHP websites.
Now I want to only choose that Web framework by which I can use jQuery to the same level as PHP, but in Java.
So, which web framework should I go for?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As you already have heard, component based frameworks are a bit wonky when it comes to using certain JavaScript libraries. I have personally used only a few so I can’t create a definite list of them. I do have, however, used both component and template based frameworks so I’d dare to say that I have at least somewhat educated opinion to express on the matter:
In general, component based frameworks are usually a bit harder to work with mainly since they integrate the “Ajax channel” to their own internals. As an example, the currently very popular Apache Wicket implements all of its Ajax stuff natively which, at times, does show as being broken on certain platforms et cetera. The reason for this integration usually is so that the developers of the framework can rely on the behaviour of the Ajax functions in their framework completely; by making a custom implementation, they can lean on it and potentially debug it faster. There are of course exceptions to this (even Wicket has its own jQuery implementation called wiQuery) but even then that integration may be subpar to what you would be able to write normally.
Now, request based frameworks as you call them (I’d categorize them as template based frameworks based purely on my experience) usually allow you to have more fine grained control over various parts of the page, usually you end up even writing the final markup with some magic tags here and there for linking the dynamic part of the web application with the static layout. With this in mind, it’s rather obvious that these usually allow you as a developer to choose – among a lot of other things – the JavaScript library of your choice, but it’s a trade-off; whatever the component based framework would provide at this point is something you need to reimplement by yourself. Most commonly this is limited to handling Ajax requests but that varies from framework to framework.
To summarize, if you really want to use jQuery (and why wouldn’t you) and you can’t agree with the way it has been integrated in component based frameworks, look what the other kind has to offer.
If I had to recommend something that I would believe would fit you perfectly, I’d recommend GSP on top of Spring MVC using plain Java for backend stuff and such, but this combination doesn’t actually even exist since GSP is the view part of Grails, a Groovy based web application framework.