Templates Templates are reusable web page frames that allow us to insert contents to replace the placeholders and construct a complete web page. In the standard HTML web page development, we have to rewrite boilerplate tags on every page, but with templates, we can extract common parts, header and footer e.g., into a template, and […]

Ajax has been used for many years since web 2.0. Its primary goal is to provide a refresh-free experience. Using ajax technology is very easy in JSF, for it integrates javascript library used to implement ajax functionality into a single jsf tag. Project source code on github Add Ajax Support In our notebook project, we […]

A note: Starting from this tutorial, I will dive into the depth of each component included in the Java EE. The following series of blogs will be talking about JSF technology, from beginner to advanced level, and it still uses Notebook as the study project and demonstrate functionalities provided by JSF. Now let’s talk about […]

Applications can use web services to share data, using common protocols and data structure. RESTful web services, the full name is Representational State Transfer, in which, data and functionality are considered resources and accessed by Uniform Resource Identifiers (URIs). In this tutorial, we are going to add the RESTful web services feature to our project […]

Github Source Code EJB, Enterprise Java Bean, encapsulates the business logic of an application. You can use it to invoke system-level services, such transctions and security.1 Based on the JPA module we created last time, we now use EJB to do database operations. From this tutorial, you will be able to add a new user […]

JPA is an ORM used to map Java objects to the database. It is similar to Hibernate, but it uses EntityManger instead of Session to manage objects and it can utilize context dependency injection, a spring counterpart provided in Java EE, I will talk about this in later posts. Before we start adding the JPA […]

Project on github: https://github.com/zxuqian/Learning-Java-EE-2016 REASON As Eclipse on Mac system is really sludgy and slowly, I finally decide to migrate the projects from eclipse to IntelliJ IDEA. It is a quite powerful IDE with a simple and beautiful interface, making development easier and comfortable. When migrating projects, I’ve already built several projects for our next tutorial, […]

In this tutorial, we will continue to develop our Notebook application. A simple “add a note” form and a response page will be added for the application. Now let’s have a look how I accomplished this. project on Github: https://github.com/zxuqian/Learning-Java-EE-2016 Add dependencies If you would like eclipse to do code assist when you are writing JSF pages, you […]

Hi, this is the first blog of series Java EE application development that I’m going to write. This series of tutorials will begin with a simple Notebook application with simple Java EE technologies and then move on to a complete and fully-implemented Java EE Notebook with JPA, CDI, Web Services, JMS etc. integrated. Sounds Cool? Let’s started! Introduction At […]

Hello everyone, how are you? I was developing a cms system using spring mvc and hibernate, and I want to add ajax functionality, but I faced a lot of problems and they took me a whole day to solve. 1、Add Jackson dependency to Spring MVC Add following code in to your pom.xml: <dependency> <groupId>org.codehaus.jackson</groupId> artifactId>jackson-mapper-asl</artifactId> […]