1
I have a customer registration form with two fields, the first field is the CPF with mandatory and the second Name with optional. When editing a client with CPF and Name populated, delete the two fields and click Save, the JSF returns the message "The CPF field is required". However, when presenting the message the CPF field comes blank as it was submitted. The Name field does not come empty as submitted, but with the previous value.
Is this the standard behavior of JSF 2? Can I base this behavior on the JSF JCP documentation? What arguments do you present to the client that the CPF field comes blank to show the requirement and the Name field is restored because the JSF lifecycle has not completed to accept the new value?
Post your page . xhtml and your managedBean!
– Wellington Avelino