This tutorial show how to inject JSF Managed Bean into another JSF Managed bean. In JSF 2.0 there is a new @ManagedProperty annotation. This annotation is used for dependency injection. We can Inject a...
This tutorial show how to execute a initialization method before the page is loaded in JSF. View parameters are not yet available in the @PostConstruct phase. JSF PreRenderView tackles this problem, you can address...
This tutorial we configure JSF Backing Beans with Annotation Configuration. The @ManagedBean marks a bean to be managed by JSF. By default if no name attribute is specified it’ll use the fully qualified class...
This example explains how to use Lists and Maps as Managed Beans in JSF. It is recommend to put the managed beans in a separate managed-beans.xml file to keep a clear overview of managed...
This example shows how to call an action on a GET request using JSF viewAction. Since JSF 2.2 we have a new element called <f:viewAction> which is a child element of <f:metadata> . This...
This example show how to make a form submission in JSF bookmarkable. It is called the POST redirect GET problem. Prior to JSF 2.0 it was impossible to add the form parameters to the...
Prior to JSF 2.0 it was hard to accomplish bookmarkable URL’s. Now since JSF 2.0 they have made a good effort. We now have a new category of parameters. JSF Bookmarkable View Parameters. These...
This tutorial shows how to install and configure CDI in tomcat. To start you must know what tomcat is. Tomcat is a JSP/Servlet container. And more importantly what tomcat is not. Tomcat is not...
In this tutorial we will create a custom el resolver. We can extend the ELResolver class to create our own implicit variables in JSF. The following are three simple steps to add custom implicit...
This example shows how to use jsf managed property. When annotating a field with @ManagedProperty the values are set immediately after the bean’s construction and are available during @PostConstruct. Be informed that you can...
Follow:
Subscribe to our monthly newsletter to receive the latest news right in your inbox.