Greg,
I think I misread your question.
On second read (after I posted of course
) I realized what I'd posted was wrong...
JSF will reflect. All you have to do is specify the class name, JSF will create it and look for get/set methods based on the EL expression.
For Example:
here is part of my faces-config.xml file
<managed-bean>
<description>
Manages the registration stuff
</description>
<managed-bean-name> regPage </managed-bean-name>
<managed-bean-class> register.model.RegistrationPage </managed-bean-class>
<managed-bean-scope> session </managed-bean-scope>
</managed-bean>
Here is a part of the
JSP that uses it...
<h:inputText value="#{regPage.user.firstName}">
<f:validateLength maximum="20" minimum="0"/>
</h:inputText>
I did not have to specify that 'user' was a property. The only time you have to do that is if you want to specify a default value.
Hope this helps.