In the previous tutorial, you learned how to create a web component that has input and output elements and how to bind these elements to variables and methods in your code.
- Use a custom Java class to represent the data for a guest, rather than using three separate variables.
- Maintain a guest list, which keeps track of all guest data (whether entered by you or multiple users of your application), rather than just the current guest.
- Have a second component, so that the guest list is displayed in a new page rather than the same page. You'll use WebScript rather than Java to implement this component's behavior.
- Make use of additional interface elements (such as HTML tables).
- Binding the Class's Instance Variables to the Form Elements
- Creating a Table to Display the Output
- Adding Dynamic Elements to Table Cells
- Binding the Dynamic Elements in the Table
- Creating the Guest Object
- Keeping Track of Multiple Guests
- Creating a Guest List
- Adding Guests to the Guest List
- Clearing the Guest List
- Adding a Dynamic Hyperlink