Esempio n. 1
0
 @Override
 public void reset(ActionMapping mapping, HttpServletRequest request) {
   if (request.getParameter("displayName") != null) {
     for (int i = 0; i < defaultFees.size(); i++) {
       // if an already checked fee is unchecked then the value set to
       // 0
       if (request.getParameter("defaultFee[" + i + "].feeRemoved") == null) {
         defaultFees.get(i).setFeeRemoved(YesNoFlag.NO.getValue());
       }
     }
   }
   super.reset(mapping, request);
 }
Esempio n. 2
0
 private void validateForFeeAssignedWithoutMeeting(HttpServletRequest request, ActionErrors errors)
     throws ApplicationException {
   for (int i = 0; i < defaultFees.size(); i++) {
     // if an already checked fee is unchecked then the value set to 0
     if (request.getParameter("defaultFee[" + i + "].feeRemoved") == null) {
       defaultFees.get(i).setFeeRemoved(YesNoFlag.NO.getValue());
     }
   }
   MeetingBO meeting = getCustomerMeeting(request);
   if (meeting == null && getFeesToApply().size() > 0) {
     errors.add(
         CustomerConstants.MEETING_REQUIRED_EXCEPTION,
         new ActionMessage(CustomerConstants.MEETING_REQUIRED_EXCEPTION));
   }
 }