When creating Visual JSF projects in NetBeans 6.0 (and 6.1) to
connect to and execute database operations from a JSF application
a data source is created by dragging and dropping a database
table to the Design view and right on top of a JSF
component. This creates a JSF binding to the
component. By default the data source name generated is
[schema name]_[database product name]. If you're using
MySQL then the table name is used instead of the schema
name. To see the name generated for your database
connection, for your project in the Projects window, expand the
Data Source References node.
If you want to choose the data source name generated then an option has been added. Open the Options dialog from the Tools main menu. Next click the Miscellaneous icon at the top and then click the Visual Web tab. Next, check the Prompt for Data Source Name …
[Read more]