Search in sources :

Example 11 with MessageContext

use of org.springframework.binding.message.MessageContext in project head by mifos.

the class MandatorySavings method validateCustomerSearchStep.

/**
     * Validation method that Spring webflow calls on state transition out of
     * customerSearchStep.
     */
public void validateCustomerSearchStep(ValidationContext context) {
    MessageContext messages = context.getMessageContext();
    validator.validate(this, messages, CustomerSearchStep.class);
}
Also used : MessageContext(org.springframework.binding.message.MessageContext)

Example 12 with MessageContext

use of org.springframework.binding.message.MessageContext in project head by mifos.

the class MandatorySavings method validateAccountDetails.

private void validateAccountDetails(ValidationContext context) {
    MessageContext messages = context.getMessageContext();
    validator.validate(this, messages, MandatorySavings.class);
    validateMandatoryDepositAmountDigits(context);
}
Also used : MessageContext(org.springframework.binding.message.MessageContext)

Example 13 with MessageContext

use of org.springframework.binding.message.MessageContext in project head by mifos.

the class MandatorySavings method validateSelectCustomerStep.

/**
     * Validation method that Spring webflow calls on state transition out of
     * selectCustomerStep.
     */
public void validateSelectCustomerStep(ValidationContext context) {
    MessageContext messages = context.getMessageContext();
    validator.validate(this, messages, CustomerSearchStep.class);
}
Also used : MessageContext(org.springframework.binding.message.MessageContext)

Example 14 with MessageContext

use of org.springframework.binding.message.MessageContext in project head by mifos.

the class CustomerSearchFormBean method validateSelectCustomerStep.

/**
     * Validation method that Spring webflow calls on state transition out of
     * selectCustomerStep.
     */
public void validateSelectCustomerStep(ValidationContext context) {
    MessageContext messages = context.getMessageContext();
    validator.validate(this, messages);
}
Also used : MessageContext(org.springframework.binding.message.MessageContext)

Example 15 with MessageContext

use of org.springframework.binding.message.MessageContext in project head by mifos.

the class CustomerSearchFormBean method validateCustomerSearchStep.

/**
     * Validation method that Spring webflow calls on state transition out of
     * customerSearchStep.
     */
public void validateCustomerSearchStep(ValidationContext context) {
    MessageContext messages = context.getMessageContext();
    validator.validate(this, messages);
}
Also used : MessageContext(org.springframework.binding.message.MessageContext)

Aggregations

MessageContext (org.springframework.binding.message.MessageContext)51 Test (org.junit.Test)18 Message (org.springframework.binding.message.Message)16 MessageBuilder (org.springframework.binding.message.MessageBuilder)9 ArrayList (java.util.ArrayList)5 AuthenticationException (org.apereo.cas.authentication.AuthenticationException)5 InvalidTicketException (org.apereo.cas.ticket.InvalidTicketException)4 UnsatisfiedAuthenticationPolicyException (org.apereo.cas.ticket.UnsatisfiedAuthenticationPolicyException)4 LocalDate (org.joda.time.LocalDate)4 BigDecimal (java.math.BigDecimal)3 GeneralSecurityException (java.security.GeneralSecurityException)3 HashMap (java.util.HashMap)3 AccountLockedException (javax.security.auth.login.AccountLockedException)3 AccountNotFoundException (javax.security.auth.login.AccountNotFoundException)3 PreventedException (org.apereo.cas.authentication.PreventedException)3 DateTime (org.joda.time.DateTime)3 LoanCreationInstallmentDto (org.mifos.dto.domain.LoanCreationInstallmentDto)2 LoanScheduleDto (org.mifos.dto.screen.LoanScheduleDto)2 QuestionGroupDetail (org.mifos.platform.questionnaire.service.QuestionGroupDetail)2 ErrorEntry (org.mifos.platform.validations.ErrorEntry)2