Examples of triggerValidationProcessIfNeeded()


Examples of org.fenixedu.academic.domain.contacts.PartyContact.triggerValidationProcessIfNeeded()

    public ActionForward prepareValidate(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        final String partyContactExtId = request.getParameter("partyContact");
        PartyContact partyContact = FenixFramework.getDomainObject(partyContactExtId);
        partyContact.triggerValidationProcessIfNeeded();
        PartyContactBean contactBean = PartyContactBean.createFromDomain(partyContact);
        addWarningMessage(request, contactBean);
        return forwardToInputValidationCode(mapping, actionForm, request, response, partyContact);
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.contacts.PartyContact.triggerValidationProcessIfNeeded()

        // return type true if value changed
        Boolean wasChanged = contactBean.edit();
        if (wasChanged) {
            final PartyContact contact = contactBean.getContact();
            if (toBeValidated) {
                contact.triggerValidationProcessIfNeeded();
            } else {
                if (contact instanceof PhysicalAddress || contact instanceof WebAddress) {
                    contact.setValid();
                }
            }
View Full Code Here

Examples of org.fenixedu.academic.domain.contacts.PartyContact.triggerValidationProcessIfNeeded()

            return null;
        }
        final PartyContact createNewContact = contactBean.createNewContact();
        createNewContact.getParty().logCreateContact(createNewContact);
        if (toBeValidated) {
            createNewContact.triggerValidationProcessIfNeeded();
        } else {
            if (createNewContact instanceof PhysicalAddress) {
                ((PhysicalAddress) createNewContact).setValid();
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.