Monday, March 31, 2014

How to Bind UI Component to Backing Bean


This blog explains about binding UI component to backing bean, This is not a best practice to bind UI component, If it is really required then only I suggest to bind any UI component to backing bean.

- Select the UI component which you want to bind, Go to the properties of the selected UI component. Click on 'Down Arrow' as highlighted in yellow color in below picture corresponding to 'Binding' attribute.


- If you have already managed bean configured then select from the drop down, otherwise click on 'New' and create the new managed bean. Click on 'New' button associated to 'Property' field and give meaningful name for the property , Click on 'Ok' button, this will create setter and getter properties for the selected UI component in selected managed bean.

- Below is the 'Create Managed Bean' window.




No comments:

Post a Comment