How to lazy initialize Spring beans?

spring-thumbnail

Lazy Initiation in Spring IOC As we know Spring’s bean factory is pre-initiate all the beans when first time creating the factory. This is good practice because if there is any dependency error everything can be resolved at the time of start up. This is not case in all the application scenarios. The following are the few drawbacks […]

Inner beans in Spring IOC

spring-thumbnail

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

spring-thumbnail

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. also read: Spring Tutorials Spring 4 Tutorials Spring Interview Questions As the name implies, using setter methods in a bean class the Spring […]

Constructor Injection in Spring IOC

spring-thumbnail

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. also read: Spring Tutorials Spring 4 Tutorials Spring Interview Questions As the name implies, using constructor the Spring IOC container will inject the […]

How to Configure hibernate using XML files?

hibernate-thumbnail

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

JSF-Thumbnail

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 display the toolbar component. Apart from rich:toolBar, to create menus we have to use other tags rich:dropDownMenu and rich:menuItem. also read: Introduction to JSF […]

Use rich:datascroller for rich:dataTable pagination

JSF-Thumbnail

rich:datascroller and rich:dataTable rich:dataTable tag is the RichFaces version for 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

JSF-Thumbnail

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 […]

a4j:support – How to use action attribute?

JSF-Thumbnail

a4j:support and action attribute This example program demonstrates how to use action attribute to update the server values and display in the screen. In this example user inputs are passed to update method and processed. The values are updated in the h:panelGrid component. also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases […]

a4j:support – Simple Example on onkeyup event

JSF-Thumbnail

a4j:support This example program demonstrates how to get started with a4j:support tag in the RiachFaces tag libraray. This is part of Ajax4jsf libraray. But, from RiachFaces 3.0, Ajax4jsf is merged with RichFaces tag libraray. a4j:support is used inside any component to provide ajax support on that particular field. also read: Introduction to JSF JSF Interview […]