When you are in View mode then either your components are not form
components (e.g. input is replaced with label/span/...) or as you said
they are disabled. Form submit will not send name/value pair for disabled
form elements.
I think the first approach is better regarding user experience.
See
I should have clarified.
Yea, if you have input fields with a dozen or so fields and you have 50%
disabled. But you are using the AbstractFormValidator validate() {
get(field1).getInput; get(field2).getInput ... And doing validation
checks, I guess this isn't a good approach.
I have to keep the
If I am using AbstractFormValidator and in some places, I am using
setRequired, default validation on components. What is the best way to
remove the validation temporarily Let's say I am in a view only mode
and fields are disabled, I want to remove validation. And then later
on, may add back