tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Kundirenko (JIRA)" <tapestry-...@jakarta.apache.org>
Subject [jira] Created: (TAPESTRY-622) ValidationDelegate: easy way to add anussociated error
Date Fri, 02 Sep 2005 09:21:13 GMT
ValidationDelegate: easy way to add anussociated error

         Key: TAPESTRY-622
         URL: http://issues.apache.org/jira/browse/TAPESTRY-622
     Project: Tapestry
        Type: Improvement
  Components: Framework  
    Versions: 4.0    
 Reporter: Alexander Kundirenko

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()) {
    //do smth

Actually  recorder message IS NOT unassoociated, it associated with last Field.
  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
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:
For more information on JIRA, see:

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

View raw message