In my onvalidate I attempt to change a different form value from one that I
was validating (reset it to blank) but the field always displays the
original form value) and not blank as I would wish.  Can anyone suggest
anything obviously wrong?  thx in adavnce



@Property
@Persist
private String answer;

@Property
@Persist
private String lastname
        
        

void onValidateFromPersonalDetailsForm() throws ValidationException {

        if (lastname.length()>20){
                personalDetailsForm.recordError("Please Supply a valid 
lastname");
        }


        if (!personalDetailsForm.isValid()){
                answer="";
        }




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/OnValidate-reset-form-values-on-error-tp5482780p5482780.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to