hi,

i currently have a situation where i need to display the errors that exist
on a prepopulated form _before_ the form is submitted.

basically there are a group of applications that all share the same form
components - one of the applications allows users to fill in a form online.
if the user gets stuck and have problems getting their data to pass
validation then they call a helpline, which is answered by people using
another application that uses the same common form components to show the
form to the call centre operator.
when the call centre operator looks at the form, they want to be able to
view all of the validation errors immediately when the form first loads up.

we have a custom validation engine which parses the object model and puts
any errors into properties on the object model objects, then we have hacked
tapestry a little bit by creating a class which parses the object model and
moves these messages from the om into tapestry's fieldtracking. this all
occurs in the rewind phase normally - and works fine.

to achieve the effect we want, i have tried validating the object model in
the render phase (works fine), but then the class that copies the values
into the fieldtracking fails on render because the fieldtracking is all null
- this only seems to get set up during the rewind phase of a form. so im a
bit stuck... its like i need a rewind to occur where i can do validation on
the page im moving _to_ rather than the page im on... and then display the
existing errors when i get there... *sob*

i am basically wondering if anyone has had a similar requirement in the past
and has been able to achieve this effect? it seems like a simple requirement
- perhaps i am missing something obvious O_o

any help appreciated, cheers
gaz

Reply via email to