Apache Ant Example This article explains how to write a very basic ANT build script. This does not explain indepth knowledge on building your project using ANT script. But, this writeup will be more useful for the beginners who haben’t writen any ANT script before. Before start writing the script, lets look into how to …
Basic steps to configure Log4j using xml and properties file
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 …
Customizing Dragging and Dropping for Swing Components
Swing’s Drop and Drop API can be used for customizing Drag and Drop support. For most of the commonly used components like Text Components, Color Chooser, File Chooser etc, the dropping support is enabled by default. We have to explicitly enable the dragging support by calling the setDragEnabled() method. Before getting into customizing them, let …


