Check if the view associated with viewId has a hint that equals to the string associated with messageResId.