The button's action property will automatically be set to this new method.
In our example we replaced the default body of the method with a single statement,
returning the string success .
In a real application, we would add some business logic here, more than
likely saving the user-entered data into a database, then returning a value
if the operation was successful or a different value if there was a problem.
Now we need to add a page to land when the user submits the form, to do this we
need to go to File | New File... , select the Java Server Faces category, and the Visual
Web JSF Page file type.