Examples of ResidenceInformationForm


Examples of org.fenixedu.academic.domain.candidacy.workflow.form.ResidenceInformationForm

        Form form = (Form) RenderUtils.getViewState("fillData" + getCurrentFormPosition(request)).getMetaObject().getObject();
        request.setAttribute("currentForm", form);

        if (isPostback(request)) {
            if (getFromRequest(request, "country") != null) {
                ResidenceInformationForm rif = (ResidenceInformationForm) form;
                rif.setDistrictSubdivisionOfResidence(null);
            }
            RenderUtils.invalidateViewState();
        }

        return mapping.findForward("fillData");
View Full Code Here

Examples of org.fenixedu.academic.domain.candidacy.workflow.form.ResidenceInformationForm

        return new DomainObjectKeyConverter();
    }

    @Override
    public Object provide(Object source, Object currentValue) {
        final ResidenceInformationForm residenceInformationForm = (ResidenceInformationForm) source;
        if (residenceInformationForm.getSchoolTimeDistrictOfResidence() != null) {
            return residenceInformationForm.getSchoolTimeDistrictOfResidence().getDistrictSubdivisionsSet();
        }

        return Collections.emptyList();
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.candidacy.workflow.form.ResidenceInformationForm

        return new DomainObjectKeyConverter();
    }

    @Override
    public Object provide(Object source, Object currentValue) {
        final ResidenceInformationForm residenceInformationForm = (ResidenceInformationForm) source;
        if (residenceInformationForm.getDistrictOfResidence() != null) {
            List<DistrictSubdivision> result =
                    new ArrayList<DistrictSubdivision>(residenceInformationForm.getDistrictOfResidence()
                            .getDistrictSubdivisionsSet());
            Collections.sort(result, new BeanComparator("name"));
            return result;
        }
View Full Code Here

Examples of org.fenixedu.academic.domain.candidacy.workflow.form.ResidenceInformationForm

        return new DomainObjectKeyConverter();
    }

    @Override
    public Object provide(Object source, Object currentValue) {
        final ResidenceInformationForm residenceInformationForm = (ResidenceInformationForm) source;
        final List<District> result = new ArrayList<District>();
        if (residenceInformationForm.getCountryOfResidence().isDefaultCountry()) {
            for (District district : Bennu.getInstance().getDistrictsSet()) {
                if (!district.getName().equals("Estrangeiro")) {
                    result.add(district);
                }
            }
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.