tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard M. Lewis Ship (JIRA)" <tapestry-...@jakarta.apache.org>
Subject [jira] Closed: (TAPESTRY-622) Add streamlined API for recording errors into a validation delegate
Date Sat, 01 Oct 2005 12:14:51 GMT
     [ http://issues.apache.org/jira/browse/TAPESTRY-622?page=all ]
     
Howard M. Lewis Ship closed TAPESTRY-622:
-----------------------------------------

    Fix Version: 4.0
     Resolution: Fixed

> Add streamlined API for recording errors into a validation delegate
> -------------------------------------------------------------------
>
>          Key: TAPESTRY-622
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-622
>      Project: Tapestry
>         Type: Improvement
>   Components: Framework
>     Versions: 4.0
>     Reporter: Alexander Kundirenko
>     Assignee: Howard M. Lewis Ship
>      Fix For: 4.0

>
> Is there an easy way to add unassociated error to ValidationDelegate?
> For example - I have save() listener on my form:
> public void save() {
>     
>     //make some non-trivial validation
>     if(!validateObject()) {
>         getDelegate().record("Error message", null);
>     }    
>      
>     if( getDelegate().getHasErrors()) {
>          return;
>     }
>     
>     //do smth
>      ....
> }
> Actually  recorder message IS NOT unassoociated, it associated with last Field.
> because:
>   public void record(IRender errorRenderer, ValidationConstraint constraint)
>     {
>         FieldTracking tracking = findCurrentTracking(); //LAST FORM FIELD IS RETURNED
>         ...      
>     }
> To make it unassociated I have to call ValidationDelegate.clear() and record my error
after that.
> In this case it becomes really  unassociated but  all other erros are lost.
> Could you add easy and intuitively obvious way to add unassociated trackings, like:
>     void recordUnassociated(String errorMessage);
> ?
> Thank you

-- 
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


Mime
View raw message