Posts

Showing posts with the label Managed Bean in JSF Application

Managed Bean in JSF Application

Managed Bean in JSF Application 1.    Ruls Of Managed Bean a.    Public non arg consructor b.    Getter/setter for expose data Member (Properties) c.    @ManagedBean (annotation on class level to support JSF2) There are 2 Ways to Create 1. Using Annotation package com.user.javasci;   import javax.faces.bean.ManagedBean; import javax.faces.bean.RequestScoped ;   @ManagedBean @ RequestScoped public class User {       private String firstName ;     private String lastName ;         //no argument constructor     public User() {               }         public String getFirstName() {           return firstName ;     }     public void setFirst...