Sometimes, it is necessary to create java bean as a data control so that we can directly drag and drop bean methods into task flows, or add the bean properties as attributes in jsf pages. So, for those who is looking out how to generate a data control for a java bean, it's quite simple. Steps below:
For a simple java bean with the content below,
1. Right click the Java bean and select 'Create Data Control..'
2. Now, it generates an xml data control in the same package. That's it. Data control is generated for the bean.
3. If you expand 'Data Controls' pallette, you would be able to see the bean data control that you just created and you can drag and drop the data control properties and methods into your jsff pages or task flows.