I have a basic form in which I need to fill in details about a Case. The form also has a section to fill out Account information. So my standard controller is Case with an extension: CaseInputFormExt
I create an Account mPerson
in my constructor and then reference the fields in my visualforce page: <apex:inputText value="{!mPerson.PersonEmail}" />
My submit button calls a function validate()
in which I perform some custom validation. In this case compare the value of mPerson.PersonEmail
to a valid email regex. If it returns false (not a valid email) I show a custom ApexMessage error.
The problem is now if the user goes back, changes the email value, clicks submit again - the new value for mPerson.PersonEmail isn't changed in the controller.
Why are the new values on visualforce page not getting passed back into the controller?