public void validate() { LOGGER.debug("Start validate"); Boolean noerror = Boolean.TRUE; for (BpaFeeExtn sanctionfees : getSantionFeeList()) { if (sanctionfees.getIsMandatory()) { if (sanctionfees.getFeeAmount() == null || sanctionfees.getFeeAmount().equals("") || sanctionfees.getFeeAmount().equals(BigDecimal.ZERO)) { addActionError("Fee Amount is required for " + sanctionfees.getFeeDescription()); noerror = Boolean.FALSE; break; } } } if (!noerror) preparNewForm(); LOGGER.debug("Exit validate"); }