hi Issah,

you can have only one submit handler for a form. 

you could move all your code into the onSubmit handler or
use one of the other events 
(http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Form.html)
if you need some pre-processing.

onPrepareForSubmit()
onPrepare()
onValidateForm()

g,
kris




Issah Grusi <issah.gr...@yahoo.com> 
29.12.2008 04:17
Bitte antworten an
"Tapestry users" <users@tapestry.apache.org>


An
users@tapestry.apache.org
Kopie

Thema
onSubmitButton() method not running - Tapestry5







Folks!
I have a submit button on a form, the form event handler gets called but 
the submit event handler does not get called. Please Help!!

Object onSubmitFromRegistrationForm()
 {
  System.out.println("The form was submitted!");
  if (unsubscribe)
   subscribe = false;
  return nextPage;
 }
 @OnEvent(component="submitButton")
 void onSubmitButton()
 {
  System.out.println("Submit button was pressed!");
  User newUser = new User("John", "Johnson");
  this.user = newUser;
  nextPage = ShowAll.class;
 }



<t:form t:id="registrationForm">
            <table>
                .
                .
            </table>
<input type="submit" t:type="submit" t:id="submitButton" value="Submit"/>

Thank you for your attention to my request.
Issah


 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


Reply via email to