Many JavaBeans have an approval status (pending submission, being approved, approved, rejected) and a rejection reason. When the approval status is rejected, the rejection reason is required, and other statuses are not required. Is there an elegant way to handle it? |