Java Reference
In-Depth Information
A quick way to add an instance variable and the corresponding getter and
setter methods is to hit the "insert code" keyboard shortcut ( Alt+Insert ),
then select Add Property... from the resulting pop-up menu.
Once we have added the property to our managed bean, we can bind our text field
to it by right-clicking on it on the design window and selecting Bind To Data... .
Binding the text field to a managed bean property results in the property being
automatically updated with the user-entered data in the field. Additionally when the
page is loaded the value of the text field is populated with the value of the managed
bean property.
 
Search WWH ::




Custom Search