PDA

View Full Version : Form to add item to a list


TSH
Jun 9th, 2008, 06:07 AM
Hello,

I have an object "user". A user has a list of appointments. Now I want to have an input field (string) for a new appointment, which then should be added to his list.

What is the form backing object? The user or the List? Which tags should I use? Can I just 'catch' the input value and handle it inside my form backing controller?

TSH
Jun 10th, 2008, 05:26 AM
OK, I think I should use a SimpleFormController. Perhaps I define the list as the formBackingObject. With onSubmitDo I want to grab the text string entered in the form and simply add this to the list of strings (the command aka formBackingObject).

Any ideas?