Isolation of a detainee, including a death row convict, was held to be illegal.