Home
Drop-down menu for customer login
The CustomerManager class contains a getCustomerSelectList method that retrieves the ssn of all the customers. This list can be used to populate a drop-down menu for customer login:
| Open the logon.jsp.
|
| Replace the input field with a Combo Box component:
|
Id: ssn1
|
Value: #{sessionScope.SSN}
|
| Add two choices for the list:
|
Click Add Choice (Label: Select an ssn, Value: 000-00-0000)
|
Click Add Set of Choices (Label: <selectitems>, Value: click and locate #{customerManager.customerSelectList})
|
| Validation: Select Value is required.
|