You can try like this In this way you can access values from bean to html tag-

JSF can save state of component tree in either session or on clients machine inform of serialized data . While creating component tree JSF creates a key and keep all objects of component tree as UIViewRoot in session with against it.For next JSF request it will use same key to restore that view 🙂 For […]

Well i am refering here the jsfutil class for my reference.this code doesn’t written by me.But it is very helpful for ADF developer. Happy coding with Vinay in Techartifact.

Quick JSF tip- I found these two annotation really useful and very tricky too.It should be used at right time otherwise you will see error like me. 🙂 @PostConstruct as per Oracle Doc-The PostConstruct annotation is used on a method that needs to be executed after dependency injection is done to perform any initialization. This […]

A presentation on JSF 2.0 by me Happy coding with Techartifact 🙂

Requirement- Access one Managed Bean from another in JSF Solution- There are two ways- Dependency Injection We can use JSF 2 @ManagedProperty annotation In the managed bean add a @ManagedProperty annotation to the related property Usingthrough faces-config.xml Following are the constraints: -> The current bean must have scope which is the same as or shorter […]

In JSF 2.0, Java bean that is accessed from JSF page is called a Managed Bean. The managed bean can be a normal Java bean, which contains the getter and setter methods, business logic or even a backing bean (a bean contains all the HTML form value). There are two ways to configure the managed […]

Requirement-How to programmatically navigate to next jsf page in taskflow. Solution- Following code show the sample code for navigating one jsf to another using code. Package: javax.faces.application.NavigationHandler public abstract void handleNavigation(FacesContext context, String fromAction, String outcome) Perform navigation processing based on the state information in the specified FacesContext,plus the outcome string returned by an executed […]

1. Restore View : A request comes through the FacesServlet controller. The controller examines the request and extracts the view ID, which is determined by the name of the JSP page 2. Apply request values: The purpose of the apply request values phase is for each component to retrieve its current state. The components must […]

As, i am working on my project.I have to use cancel button.So somebody said make immediate attribute to true.There is very common myth among ADF and JSF developers that using Immediate attribute will avoid unnecessary validation in any case. It is not 100% correct. Basically , everyone not very much clear about it. If we […]