Hi Checkout the "for" parameter in http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Error.html. You can specify a field there to retrieve error specific to that field
regards Taha On Nov 19, 2012, at 2:10 AM, Muhammad Gelbana wrote: > I have a form that submits by reloading the whole page. But my form's > fields are in separate zones. Before submitting the form, these zones get > changed (i.e. different fields are shown with each zone update) till the > user is satisfied and then he submits the form in the manner mentioned. > > Now after I validate my fields and record errors using recordError(Field, > String), I don't find a difference between that method and using the other > one recordError(String). What is the difference if the t:error component > doesn't utilize the Field object passed to the first method to indicate the > difference between the error messages ?! > > I mean it always lists all error messages in a list without indicating to > which field does this error message belong ? Shouldn't it be something like: > > >> You must resolve these errors before proceeding: > > Field A: >> . Error msg 1. >> . Error msg 2. >> Field C: >> . Error msg 1. >> Field B: >> . Error msg 1. >> . Error msg 2. > > > ? > > After checking the Error component source code, I think this deserves a > JIRA issue. Am I correct or did I miss something here ?