You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2010/05/05 20:12:03 UTC

[jira] Created: (TAP5-1131) @SkipIfValidationErrors component method annotation

@SkipIfValidationErrors component method annotation
---------------------------------------------------

                 Key: TAP5-1131
                 URL: https://issues.apache.org/jira/browse/TAP5-1131
             Project: Tapestry 5
          Issue Type: New Feature
          Components: tapestry-core
    Affects Versions: 5.2.0
            Reporter: Howard M. Lewis Ship


It is common when writing a "validate" event handler method to skip the method if more fundamental validation errors have occurred. Currently one must:

@Environmental ValidationTracker tracker;

void onValidateFromMyForm() { if (tracker.hasErrors()) return;  ... }

A @SkipIfValidationErrors annotation could encompass that check.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TAP5-1131) @SkipIfValidationErrors component method annotation

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAP5-1131:
---------------------------------------

    Priority: Minor  (was: Major)

> @SkipIfValidationErrors component method annotation
> ---------------------------------------------------
>
>                 Key: TAP5-1131
>                 URL: https://issues.apache.org/jira/browse/TAP5-1131
>             Project: Tapestry 5
>          Issue Type: New Feature
>          Components: tapestry-core
>    Affects Versions: 5.2.0
>            Reporter: Howard M. Lewis Ship
>            Priority: Minor
>
> It is common when writing a "validate" event handler method to skip the method if more fundamental validation errors have occurred. Currently one must:
> @Environmental ValidationTracker tracker;
> void onValidateFromMyForm() { if (tracker.hasErrors()) return;  ... }
> A @SkipIfValidationErrors annotation could encompass that check.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TAP5-1131) @SkipIfValidationErrors component method annotation

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAP5-1131:
---------------------------------------

    Priority: Minor  (was: Major)

> @SkipIfValidationErrors component method annotation
> ---------------------------------------------------
>
>                 Key: TAP5-1131
>                 URL: https://issues.apache.org/jira/browse/TAP5-1131
>             Project: Tapestry 5
>          Issue Type: New Feature
>          Components: tapestry-core
>    Affects Versions: 5.2.0
>            Reporter: Howard M. Lewis Ship
>            Priority: Minor
>
> It is common when writing a "validate" event handler method to skip the method if more fundamental validation errors have occurred. Currently one must:
> @Environmental ValidationTracker tracker;
> void onValidateFromMyForm() { if (tracker.hasErrors()) return;  ... }
> A @SkipIfValidationErrors annotation could encompass that check.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.