On two boundary value problems in nonlinear elasticity from a numerical viewpoint