Java Reference
In-Depth Information
By clicking on the
Java
tab we can see the generated
Page1.java
request scoped
managed bean.
Like with most JSF applications, we need to bind the value of our text field to a
managed bean property. When using Visual Web we can simply add a property
to the generated session scoped managed bean named
SessionBean1.java
. For
our example, we simply add a private instance variable of type
String
named
page1FirstName
, and the corresponding getter and setter methods.