 For the child shall be a Nazarite. In other words, the long hair is a sign of his Nazarite vow, his complete devotion to the God of Israel. And he shall begin to deliver then Israel out of the hand of the Philistines. So God's will for him.