I am trying to find a good example of use of JSF and Spring with installation instruction,But haven't been able to find something more than basic.
Can anyone direct me to nice examples?
Thanks,
Sid
java Beat : integrating-spring-and-jsf
jsf-2-0-spring-hibernate-integration-example
You can also check out Appfuse, http://appfuse.org/display/APF/Home, it has the whole enchilada: maven, security (acegi), webservices, hibernate search (lucene), caching (ehcache), JPA, annotations in JSF Managed Beans, transactions, templating (sitemesh), email, and lots of other useful stuff. I find it a bit too complex, not so sure if it uses the best available components for JSF, but it's an application skeleton for the real world.
See the reference at http://appfuse.org/display/APF/Reference+Guide
Related
Someone told me to learn Web devolpment in Java. So I come across Java Spring. But After exploring I came to know about "Spring and Hibernate development environment" And I am still confuse what is basic diff in it. And are there other frameworks of java etc ? In which wey do Spring MVC ? I am Php and python guy And New in Spring so kindly don't mind if I am wrong in asking question.
Hibernate provides a lot of feasibility while dealing with the database.
It provides with ORM where in you are able to perform database transaction is the form of objects mapped to corresponding table, using configuration xml files.
Spring, on the other hand is a framework that helps you follow the MVC architecture in an effective and efficient way.
It simplifies writing back end code as well as front end stuff providing clear demarcation simultaneously.
I want to develop a website with java but I'm absolute beginner in java web development.
I want to use a framework that uses the MVC pattern and Ajax.
I did some search and found that Spring or Struts are suitable but I'm not sure.
could you please recommend a framework?
Play Framework might be a good option because of its incredible simplicity.
I'd recommend Spring:
Developing a Spring Framework MVC application step-by-step
The Stripes Framework is also worth consideration and can be used along with Spring.
http://www.stripesframework.org
It's easy to use and easy to configure. Unlike Struts, which is fairly old hat these days.
There are a plethora of frameworks now and it's worth checking each one that will suit your needs. It's a personal thing and it's good that we're not all restricted to a few.
JRapid is very easy to use. You'll get a working application in minutes and it generates AJAX powered user interface.
I work with Spring Webflow - technology based on Spring MVC. Webflow is described in official help pretty well. Personally, it think Webflow is much more usable than bare Spring MVC, however there are always someone who disagrees.
Moreover Spring (not talking about MVC specifically) can be used outside of web projects, so it seems to me it is advantage of Spring.
Cannot say anything about Struts.
I would recommend GRAILS for fast rapid web application development, that includes scaffolding functionality and web page generation based on data models.
https://grails.org/learn
It is the fastest way for MVC developers.
I think these technologies are really prior to java industry
A good knowledge of Core Java, Servlets and JSP is pretty much more than enough you need..
I'm not sure about struts, but for Spring, it helps to know about dependency injection and inversion of control, XML, and JavaBeans.
If I had to recommend a book, it would be Spring in Action
UPDATE
It's been pointed out to me that Spring in Action is about Spring 2.0, which it is. Spring 2.0 is almost four years old. Spring's first-party documentation makes wonderful reading. Check out the reference documentation for great prose and the Javadocs if you need more in-depth information.
In my opinion, the Spring in Action book is a bit behind the times now (Spring 2.0) and doesn't include any of the nifty new features in 2.5 or 3.0. I would start with the spring documentation.
Only in reference to Spring.
If your not familiar with dependancy injection, then spend a bit of time reading. I'd also suggest that your java knowledge includes being comfortable with Annotations, Reflection and even Aspect orientated programming. Most Spring books fail to keep pace, so unless your forced to use a particular version Spring 3.0 should be your starting point as this has many additions which can save a lot of time.
In reference to spring it is mandatory to have a little knowledge of J2SE, J2EE(Servlets, JDBC little bit), XML Schema and rest of the things you can learn while studying Spring Framework. Most of all JAVA knowledge is required :)
I was thinking which framework would be a good choice to go into. I'm focusing on java apps and tested spring, grails and seam so far. I've also looked aboard java and gave ruby on rails a try too.
In future I will be focusing on portlet development which I've gone through already without a complete framework (just hibernate).
Maybe someone could share some experiences? Or point me to a corner which I don't looked in so far?
Regards and thanks for reading ;)
If you're doing this out of curiosity and to learn something new, rather than to meet specific requirements for a specific project, maybe you'll enjoy the Play! Framework. It contains a lot of stuff from other frameworks and is designed to get you up and going very quickly, with short development cycles and not a lot of arcanae.
Their stated purpose is to be "by Web developers for Web developers". They intend to put the fun back into Web programming.
This sounds good and I've read a few nice things about it in fora and blogs, but I haven't tried it myself yet so that's all the recommendation I can give.
Grails has a plugin for developing portlets, described here.
If you consider Groovy or Grail, you might consider ZK, too. It is an Ajax framework integrated well with Groovy and Grail.
I'd say you go with a framework that targets the programming language you're most proficient in. If you already are good in Java, and you're a quick learner ( to learn Groovy ), Grails could be a good choice.
If you'd like to go with another scripting language, say Ruby/Python, then choose Rails or Django, or Pylons ( the list could go on here ).
If you're going for a Java only framework, I'd go with Spring MVC.
You should have a look at the play framework (SO question).
Finally a Java framework made by Web developers. Discover a clean alternative to bloated enterprise Java stacks. Play focuses on developer productivity and targets RESTful architectures.
I was thinking which framework would be a good choice to go into. I'm focusing on java apps and tested spring, grails and seam so far. I've also looked aboard java and gave ruby on rails a try too.
FYI - Grails is using Spring and Hibernate underneath; SEAM uses JSF and Hibernate.
Grails is the Java equivalent of RoR. It's based on the same idea: "convention over configuration".
It's also important to be clear that Spring is far more than a mere web MVC framework. It's based on DI and AOP and encompasses persistence, remoting, enterprise services, etc. It supports portlet MVC, which is a plus given your requirements.
Personally, I would recommend straight Spring over any of your choices so far if you stick with Java. It's important to know something about what's going on under the covers. If you know Spring well, Grails will be easy.
I'd use Wicket rather than Play! because Play! requires Python as a semi-dependency. With Wicket, you only need Apache and Java and thats it.
I suggest you also check out here:
http://gokhan.ozar.net/best-java-web-frameworks/
I have pretty big background of .net, and I've decided that i want to port one of my websites to Java. (now with the asp.net MVC craze, I've figured I'd better learn a more mature approach to MVC).
i've downloaded eclipse (easyeclipse distro to be exact, and am ready and willing to develop my first website in java).
i've programmed j2me application before, so i know the language and some of the framework.
can someone guide me? any advice?
Although I'm not very aware of "asp.net mvc" is all about, I would suggest you to take a look at Spring it may be interesting.
Probably is too complicated at the beginning but when you get the concept it turns out very easy to follow.
Spring has 5 core modules ( which I don't remember exactly ) but they were like:
AOP
ORM
MVC
Core
( some other I'm missing here )
The MVC part uses a lot of annotations to make life easier. There's a very big community around Spring.
Here's an introductory article about spring.
Java has a ton of frameworks you can choose from. The technology stack that I use for my Java development is either:
Spring for IoC.
Hibernate for the data layer.
Struts2 for the MVC framework.
I have also swapped out spring and used Guice for the IoC.
Spring also has MVC, but I tend to like Struts2 better.
I'd recommend looking at Grails, it lets you become comfortable with all the java libraries and frameworks like Spring, SpringMVC, Hibernate, SiteMesh, and so on but gives you a much better DSL for web applications and much more concise code with the Groovy language (think of it as Java with dynamic typing, blocks, closures, and so on).
If you'd rather stick to pure Java I'd recommend looking at the Stripes framework and the following book:
http://pragprog.com/titles/fdstr/stripes
If you interested in web applications specifically, I would recommend using MyEclipse http://www.myeclipseide.com. Basically, this is a version of eclipse with all the web server integration and functionality built in. I've been using it for a few years and it's much easier to develop with than with plain vanilla eclipse. Depending on how much your going to use it, you have to decide whether the $55 annual subscription is worth it for you.
I'm a little confused. does spring framework actually a full blown framework? doesn't Java already have a framework? (by framework i mean all those misc libraries).