Apple WebObjects 3.5 User Manual
Page 34

Chapter 1
Creating a Simple WebObjects Application
34
10. Save your component. It should now look like this:
In summary, when the user clicks the Submit button, a new request-response
cycle begins. WebObjects stores the data entered in the dynamic form elements
in the variables they are bound to (
guestName
contains the value in the Name field,
contains the value in the E-mail field, and
comments
contains the value in the
Comments field). It then triggers the action method bound to the
action
attribute
of the WOSubmitButton. The action method returns a page (which, in this
example, is the same page). When the page is redrawn, the dynamic strings at
the bottom show the values entered by the user.
Now you are ready to test your application.
Choose
View Source File
from this menu.