You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org> on 2005/08/26 01:39:09 UTC

[jira] Commented: (TAPESTRY-596) Form: have a success listener that is invoked only when the form is submitted normally and the delegate records no errors

    [ http://issues.apache.org/jira/browse/TAPESTRY-596?page=comments#action_12320075 ] 

Howard M. Lewis Ship commented on TAPESTRY-596:
-----------------------------------------------

Oh, and I called the new parameter "success", so there's

cancel -- user hit a cancel button
refresh -- user did something that caused a refresh of the page
success -- user submitted form with no errors
listener -- user submitted form (even with errors)

> Form: have a success listener that is invoked only when the form is submitted normally and the delegate records no errors
> -------------------------------------------------------------------------------------------------------------------------
>
>          Key: TAPESTRY-596
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-596
>      Project: Tapestry
>         Type: Improvement
>   Components: Framework
>     Versions: 4.0
>     Reporter: Howard M. Lewis Ship
>     Assignee: Howard M. Lewis Ship
>     Priority: Minor
>      Fix For: 4.0

>
> Most listener methods look like:
> public void doSubmit()
> {
>   if (getDelegate().getHasErrors()) return;
>   . . .
> }
> By defining a new parameter, submit, we can incorporate that logic into the Form component.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org