In 1977 John Ball obtained a series of very important existence results in hyperelasticity. The objective of the present paper is to extend his results in two directions, first by considering unilateral boundary conditions corresponding to contact without friction, secondly by allowing “locking” constraints in the set of admissible deformations.