A variational property of integral functionals on $L^{p}$-spaces of vector-valued functions