Yeah,man ,this problem was caused because you hadn't add a event type for
this button.
THe default event type is "action" ,which means that your event handler
could be equal to following:
@OnEvent(value="action" component="submitButton")
But things are a little different on Submit . The default event that it will
reply is "selected" . Now changin
it to following style:
@OnEvent(value="selected" component="submitButton")
Have a sound Bingo~~
spaway wrote:
>
> Dear List,
>
> I have the submit button below on a form
>
> <input type="submit" t:type="submit" t:id="submitButton" value="Submit" />
>
> and the event handler below in the page class
>
> @OnEvent(component="submitButton")
> Object onSubmitButton() {
> System.out.println("Submit button was pressed ...");
> User newUser = new User(this.userName, this.email);
> this.user = newUser;
> return nextAction.class;
> }
>
>
> this method does not get called after click clicking the submit button.
>
> could anybody help me with a solution?
>
>
>
> Thanks
>
> SPA
>
>
--
View this message in context:
http://www.nabble.com/Submit-Button-on-Form---Event-Handler-Actions-tp23842757p23939271.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]