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 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.
Because this snippet contains entry fields, we use the store style sheet entries in this object snippet.
Related concepts
Related reference
JSP object snippet: AddressDisplay.jspf
JSP object snippet: AddressEntryFormDisplay.jspf
JSP object snippet: CatalogEntryPriceDisplay.jspf
JSP object snippet: CatalogEntryThumbnailDisplay.jspf
Related information
Tutorial: Customizing the consumer direct sample store using snippets