Hibernate Criteria Example Criteria APIs in the hibernate framework is useful for creating the dynamic query to execute.It is an alternative way to write the queries without using HQL. The queries are generated at runtime and excuted on the fly. Application developer need not worry about writing the query in hand, he/she just need to [...]
Archive | July, 2008
Types of Managed Bean scopes in Spring Framework
July 22, 2008
This article presents the different scopes on Spring managed beans. This is one of the greatest advantage using spring’s managed beans. Every bean definition can be declared with different scopes. If you are the beginner learning the Spring Framework first time, please read our introduction articles on the Spring Framework : Lets look into the different types of bean scopes in [...]
How to lazy initialize Spring beans?
July 21, 2008
Lazy Initiation in Spring IOC As we know Spring’s bean factory is pre-initiate all the beans when first time creating the facory. This is good practise because if there is any dependency error everything can be resolved at the time of startup. This is not case in all the application scnarios. The following are the [...]
Inner beans in Spring IOC
July 21, 2008
Inner beans Spring IOC allows Inner Beans declaration. We can declare a bean inside a beans. But, it has few restriction. Inner Beans are like annonymous beans where it is created and used on the fly. this beans cannot be used outside the enclosing beans. So, it is wise to avoid declaring the ‘ID‘ or [...]
Setter Injection in Spring IOC
July 21, 2008
Setter Injection This article presents how to write the Setter Injection in Spring IOC. There are two types of Dependency Injection(DI) techniques we can use. 1) Setter Injection and 2) Constructor Injection. As the name implies, using setter methods in a bean class the Spring IOC container will inject the dependencies. This technique is considered [...]
Constructor Injection in Spring IOC
July 21, 2008
Constructor Injection This article presents how to write the Constructor Injection in Spring IOC. There is two types of Dependency Injection(DI) techniques we can use. 1) Setter Injection and 2) Constructor Injection. As the name implies, using constructor the Spring IOC container will inject the dependencies. The constructor will take arguments based on number of [...]
How to Configure hibernate using XML files?
July 19, 2008
Hibernate Configuration Using XML files for configuring hibernate application is the most widely used approach. This is simple one and less whanges needed in the future. There is two types of configuration we can do using XML files. one is non-managed environment and another one is for managed environment. Here we will explain about the [...]
Creating simple toolbar using RichFaces tag library
July 19, 2008
rich:toolBar, rich:dropDownMenu and rich:menuItem This example demonstrates how to create simple toolbar using RichFaces tag library. RichFaces provides predefined tags like rich:toolBar which will be easily plugged into our webpages to disply the toolbar component. Apart from rich:toolBar, to create menus we have to use other tags rich:dropDownMenu and rich:menuItem. rich:dropDownMenu is used for creating [...]
Use rich:datascroller for rich:dataTable pagination
July 18, 2008
rich:datascroller and rich:dataTable rich:dataTable tag is the RichFaces version fo datatable component which has few extra features on look and feel.One of the difficulty JSF developers is creating good pagination for the data dsiplayed using rich:datatable. To resole this problem, RichFaces tags library provides rich:datascroller component which can display the automatic paginations based on data [...]
Use a4j:status to display status of the request
July 18, 2008
a4j:support and a4j:status When there is a request to the server, the client have to wait untill he gets the response. It will be nice if you give status of the server request processing. use a4j:status tag in the RichFaces to implement this feature in your webpages. In this example this tag is used with [...]






July 23, 2008
4 Comments