Spring – How to freeze or disable an update input form

faceletsjsfspringspring-webflowtrinidad

I wonder if it is possible for me to freeze or disable the entire update form? I have an input h:form with a check box in it. when users check the box, I would like to freeze or disable the entire form so that disallow users from changing inputs.

Thanks, and I am using JSF, Spring Web Flow, Facelets, and Trinidad.

Best Solution

You would want to use javascript to set all the form inputs to disabled when the user checks the checkbox. Something like:

document.getElementById('id').disabled = true;

You would do this for each input element where 'id' is the ID of that element.

Related Question