JSF 2 Tutorials and Examples

JSF-Thumbnail

JavaServer Faces (JSF) which provides a Component-Based Architecture for developing reusable User Interface Components hides most of the complex stuffs that are happening in the View portion of the MVC-2 Architecture. The framework is not only limited to developing customized User Interface Components but also provides support for various Advanced Features like Event handling Mechanism, Validating User Inputs that are sent by the clients, Easy Page Navigation […]

Spring Data JPA Tutorial

spring-thumbnail

The Java Persistence API (JPA) is the standard way of persisting Java objects into relational databases.The JPA consists of two parts: a mapping subsystem to map classes onto relational tables as well as an EntityManager API to access the objects, define and execute queries, and more. JPA abstracts a variety of implementations such as EclipseLink […]

PrimeFaces Charts – Pie Chart + Ajax Behavior Events Example

primefaces-thumbnail

ItemSelect is one and only ajax behavior event of charts, this event is triggered when a series of a chart is clicked. In case you have listener defined, it’ll be executed by passing an org.primefaces.event.ItemSelectEvent instance. This tutorial has added a listener on that RegistrationBean that already exposed in the Primefaces Pie tutorial. The listener that being added should list the […]

JQuery Scroll Event Example

jquery

The scroll event occurs when the user scrolls an element by using arrow keys, scroll bar or mouse wheel. We cannot prevent scrolling. When user scrolls to different place in the element, the scroll event is sent to an element. It is sent whenever the element’s scroll position changes. The scroll() event also occurs when […]

How To Get Class Loaded Path

java-thumbnail

This example illustrates how to get the class loaded path. If you are aware of the java.lang.Class, it has methods for knowing the details of a class. There are many details this object can reveal us, one of the method defined in that class is Class.getProtectionDomain() which is useful for getting the source code path […]

How To Get Current Class Loader Name

java-thumbnail

This example shows how to get the name of the class loader and parent class loader for the currently executing class. If you are not aware of the class loaders, please read our previous article about ClassLoader. What is the ClassLoader ? As its name implies, ClassLoader is a class that loads other classes. More […]

How To Get Implementing Interfaces Name For A Class

java-thumbnail

This example illustrates how to get the implemented interfaces names of a particular class. If you are aware of the java.lang.Class, it has methods for knowing the details of a class. One of the method defined in that class is Class.getInterfaces() which is useful for getting all the interfaces names which it is implemented. This […]

How To Get Super Class Name From Object

java-thumbnail

This example illustrates how to get the super class name from its instance. If you are aware of the java.lang.Class, it has methods for knowing the details of a class. One of the method defined in that class is Class.getSuperclass() which is useful for getting the super class’s java.lang.Class object. With that object, you can […]

How To Get Class Name From Object

java-thumbnail

This example illustrates how to get the class name from its object. If you are aware of the java.lang.Class, it has methods for knowing the details of a class. One of the method defined in that class is Class.getName() which is useful for getting the name of the class. Note that, each instance has “class” […]

How To Resolve java.lang.IllegalAccessException

java-thumbnail

This example shows when the java.lang.IllegalAccessException is thrown in your application. When an application tries to reflectively create an instance (other than an array), set or get a field, or invoke a method, if that method is not accessible to your application (probably the modifier is private or not accessible one), then your application will […]

Static Initializer In Java

java-thumbnail

This example shows how to use the static initializer in Java. The following are the few features of static blocks. Static initializers are block of code with static keyword. These are executed when the class is loaded or accessed first time by any application. Only static variables can be initialized inside static blocks. Instance variables […]

Close
Please support the site
By clicking any of these buttons you help our site to get better