This example demonstrated how to configure Log4j setup using the Properties file and XML file. These are the two most widely used techniques for configuring the Log4j for your application. But, in the recent days configuring with properties files are considered to be old technique and recommended using XML. This example program uses simple standalone …
How to implement ActionListener (f:actionListener) in JSF?
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 …
Entity Beans in EJB(BMP)
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, …
Entity Beans in EJB(CMP)
Entity beans are characterized by the following 3 features. They are 'Persistent'. ( they are stored inhard-disk) They are shared by many clients. They have ,'Primary key'. also read: Java EE Tutorials EJB Interview Questions EJB 3 Web Services Annotation and Dependency Injection in EJB 3 Query API in EJB 3 As already mentioned ,Entity …
How to use Resource Bundle in JSF?
Topic : Java Server Faces (JSF) Environment : J2EE 5.0, MyFaces 1.1.5 Resource Bundle in JSF also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases in JSF This section explain how to use message resources in Java Server Faces (JSF). Resource Bundles are very important when comes to internationalization.JSF framework provides simple …
How to set selected tab in rich:tabPanel tag?
Topic : Java Server Faces (JSF), RichFaces, Ajax4Jsf Environment : J2EE 5.0, MyFaces 1.1.5, RichFaces 3.1.0 rich:tabPanel also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases in JSF This example illustrates how to set the selected tab in rich:tabPanel. This tag is used for creating the multiple tabs with in same page …
Templates in Groovy
1) Introduction In this article, we will expose the various APIs for processing Templates in Groovy. A template can be thought of some static content along with some well-defined place-holders. These templates can be re-used any number of times by simply copying it and substituting the place-holders with some appropriate values. The first section of …
Closures in Groovy
1) Introduction to Groovy Closure In this article, let us look into one of the important features supported in Groovy, the Closures. Groovy is an object-oriented scripting language in which the syntax resembles Java. Not all languages support the concept of Closures directly, although they may provide indirect support, that too with so many limitations and …