JSP object snippet: NameEntryFormDisplay.jspf
This object snippet displays a set of name entry fields when included on a page, and the appropriate required parameters are set up.
Required parameters
- paramSource: A UserRegistrationDataBean or any other object implementing java.util.Map that the name databean fields could be retrieved from. For example, 'paramSource.firstName' will be evaluated. If paramSource is set to be a map with an entry with a key of 'firstName' or a UserRegistrationDataBean with the method getFirstName, the first name field will be prepopulated. This method of prepopulation is useful because you might want to prepopulate the fields with information from the request (for example, in an error situation) or with an existing UserRegistrationDataBean (when updating a registration).
Optional parameters
- locale: The locale of the name entry fields you want to display. Note that in the starter stores this variable is declared for you. If locale is not provided a default display format is used. Note: Because this snippet contains entry fields, we use the store style sheet entries in this object snippet.
Note: Because this snippet contains entry fields,
we use the store style
sheet entries in this object snippet.