Create simple custom Converter implementation class in JSF

JSF-Thumbnail

Custom Converter Class Implementation This article explains the simple Converter class implementation. Converter class is used for converting any given input to the desired output format or with any business logic to the input values. also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases in JSF This example also includes the PhaseListener […]

How to implement f:phaseListener for h:commandButton?

JSF-Thumbnail

Introduction This article explains with basic example on how to implement the f:phaseListener in JSF. This tag is useful for registering any particular component to the Life Cycle of the phases. also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases in JSF This following program provides very basic example for using f:phaseListener […]

How to read xml file and inject bean reference using Spring Framework?

spring-thumbnail

Introduction This article presents sample source code for creating the Bean instance using the Spring Framework. This is basic example to read configuration file from the file system and create the beans from the applicationContext.xml file. This xml file define two beans Employee and Address. Address bean is injected inside Employee bean using the ref […]

How to implement ActionListener (f:actionListener) in JSF?

JSF-Thumbnail

Introduction This article explains how to implement the ActionListener class in the JSF core tag library. also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases in JSF An ActionListener is an event handler interface for a class that can respond to user events in your JSF page. The body content of this […]

f:convertDateTime tag in JSF

JSF-Thumbnail

Introduction f:convertDateTime is used for validating the date input. also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases in JSF If the user enters any invlid input, it will throw the error message to the screen. Also it allows the user to specify the apttern of date format using the ‘pattern’ attribute. […]

h:outputFormat tag in JSF

JSF-Thumbnail

Introduction The outputFormat tag renders parameterized text and allows you to customize the appearance of this text using CSS styles. Parameterized text is compound text containing placeholder values to be replaced by actual values at rendering time. also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases in JSF JSP File (index.jsp) JavaBean […]

f:convertNumber Tag in JSF

JSF-Thumbnail

What is the use? This tag is used to register the NumberConverter instance on the enclosing component. also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases in JSF This class is responsible to convert String to java.util.Number object and vice-versa. JSP file JSF Bean faces-config.xml Description currencyCode : In this attribute ISO […]

Create EJB 3.0 project in NetBeans 6.1

java-ee-thumbnail

Introduction This article explains how to create EJB 3.0 project using NetBeans IDE 6.1. This article will not explain the details of EJB 3.0 but will give basic knowledge on how to create simple EJB 3.0 project using NetBeans 6.1 IDE. also read: Java EE Tutorials EJB Interview Questions EJB 3 Web Services Annotation and […]

How to initialize Map property in Managed Mean?

JSF-Thumbnail

Map property in Managed Mean JSF Managed Beans can initialize its Map properties in the faces-config.xml. There is a property in the faces-config.xml as map-entries. This can be used for initializing the values and can be accessed directly through the Managed Beans in any JSP pages. also read: Introduction to JSF JSF Interview Questions Request […]

Entity Beans in EJB(BMP)

java-ee-thumbnail

ENTITY BEAN WITHBEAN-MANAGED PERSISTENCE Thus far, we acquainted ourselves with Sessionbeans ( both stateless & stateful) and also CMP Entity bean. also read: Java EE Tutorials EJB Interview Questions EJB 3 Web Services Annotation and Dependency Injection in EJB 3 Query API in EJB 3 In this instalment, we take up the most difficult type, […]