当前位置: 首页>>代码示例>>Java>>正文


Java RenderUtils类代码示例

本文整理汇总了Java中pt.ist.fenixWebFramework.renderers.utils.RenderUtils的典型用法代码示例。如果您正苦于以下问题:Java RenderUtils类的具体用法?Java RenderUtils怎么用?Java RenderUtils使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


RenderUtils类属于pt.ist.fenixWebFramework.renderers.utils包,在下文中一共展示了RenderUtils类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: searchCards

import pt.ist.fenixWebFramework.renderers.utils.RenderUtils; //导入依赖的package包/类
public ActionForward searchCards(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
        HttpServletResponse response) throws Exception {

    if (request.getParameter("prepareRenewal") != null) {
        return prepareCardsRenewal(mapping, actionForm, request, response);
    }
    ParkingCardSearchBean parkingCardSearchBean = getRenderedObject("parkingCardSearchBean");
    RenderUtils.invalidateViewState();
    if (parkingCardSearchBean == null) {
        parkingCardSearchBean = getSearchParameters(request);
    }
    parkingCardSearchBean.doSearch();
    parkingCardSearchBean.orderSearchedParkingParties();
    request.setAttribute("parkingCardSearchBean", parkingCardSearchBean);
    return mapping.findForward("cardsSearch");
}
 
开发者ID:ist-dsi-archive,项目名称:fenix-parking,代码行数:17,代码来源:ManageParkingCardsDA.java

示例2: prepareCardsRenewal

import pt.ist.fenixWebFramework.renderers.utils.RenderUtils; //导入依赖的package包/类
public ActionForward prepareCardsRenewal(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
        HttpServletResponse response) throws Exception {
    String[] selectedParkingCards = ((DynaActionForm) actionForm).getStrings("selectedParkingCards");
    ParkingCardSearchBean parkingCardSearchBean = getRenderedObject("parkingCardSearchBean");
    RenderUtils.invalidateViewState();
    parkingCardSearchBean.getSelectedParkingParties().clear();
    for (String selectedParkingCard : selectedParkingCards) {
        parkingCardSearchBean.getSelectedParkingParties().add(
                FenixFramework.<ParkingParty> getDomainObject(selectedParkingCard));
    }
    if (parkingCardSearchBean.getSelectedParkingParties().isEmpty()) {
        setMessage(request, "message.noParkingPartiesSelected");
        request.setAttribute("parkingCardSearchBean", parkingCardSearchBean);
        return mapping.findForward("cardsSearch");
    }
    parkingCardSearchBean.orderSelectedParkingParties();
    request.setAttribute("parkingCardSearchBean", parkingCardSearchBean);
    return mapping.findForward("cardsRenewal");
}
 
开发者ID:ist-dsi-archive,项目名称:fenix-parking,代码行数:20,代码来源:ManageParkingCardsDA.java

示例3: chooseDegreeForMobility

import pt.ist.fenixWebFramework.renderers.utils.RenderUtils; //导入依赖的package包/类
public ActionForward chooseDegreeForMobility(ActionMapping mapping, ActionForm form, HttpServletRequest request,
        HttpServletResponse response) {
    request.setAttribute(getIndividualCandidacyProcessBeanName(), getIndividualCandidacyProcessBean());
    request.setAttribute("degreeCourseInformationBean", readDegreeCourseInformationBean(request));
    MobilityIndividualApplicationProcessBean bean = readMobilityDegreeInformation(request);

    request.setAttribute("selectDegreeView", true);
    request.setAttribute("mobilityIndividualApplicationProcessBean", bean);
    RenderUtils.invalidateViewState();

    if ("editCandidacy".equals(request.getParameter("userAction"))) {
        return mapping.findForward("edit-degree-courses-information");
    }

    return mapping.findForward("fill-degree-information");
}
 
开发者ID:FenixEdu,项目名称:fenixedu-academic,代码行数:17,代码来源:ErasmusIndividualCandidacyProcessDA.java

示例4: createProposal

import pt.ist.fenixWebFramework.renderers.utils.RenderUtils; //导入依赖的package包/类
public ActionForward createProposal(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
        HttpServletResponse response) throws Exception {
    DegreeCurricularPlan degreeCurricularPlan = getDegreeCurricularPlan(request);

    ThesisBean bean = getRenderedObject("bean");
    RenderUtils.invalidateViewState("bean");

    if (bean == null) {
        return selectStudent(mapping, actionForm, request, response);
    }

    try {
        Thesis thesis = CreateThesisProposal.run(degreeCurricularPlan, bean.getStudent(), bean.getTitle(), bean.getComment());
        request.setAttribute("thesis", thesis);
    } catch (DomainException e) {
        addActionMessage("error", request, e.getKey(), e.getArgs());
        return listThesis(mapping, actionForm, request, response);
    }

    return editProposal(mapping, actionForm, request, response);
}
 
开发者ID:FenixEdu,项目名称:fenixedu-academic,代码行数:22,代码来源:ManageThesisDA.java

示例5: getLinkText

import pt.ist.fenixWebFramework.renderers.utils.RenderUtils; //导入依赖的package包/类
public String getLinkText(TableLink tableLink, Object object) {
    String text = tableLink.getText();

    if (text != null) {
        return text;
    }

    String key = tableLink.getKey();
    String bundle = tableLink.getBundle();

    if (key == null) {
        return tableLink.getName();
    }

    text = RenderUtils.getResourceString(bundle, key);

    if (text == null) {
        text = tableLink.getName();
    }

    return getCounter() != null ? text + RenderUtils.getFormattedProperties(getCounter(), object) : text;
}
 
开发者ID:FenixEdu,项目名称:bennu-renderers,代码行数:23,代码来源:CollectionRenderer.java

示例6: chooseDegree

import pt.ist.fenixWebFramework.renderers.utils.RenderUtils; //导入依赖的package包/类
public ActionForward chooseDegree(ActionMapping mapping, ActionForm form, HttpServletRequest request,
        HttpServletResponse response) {
    ActionForward actionForwardError = verifySubmissionPreconditions(mapping);
    if (actionForwardError != null) {
        return actionForwardError;
    }

    MobilityIndividualApplicationProcessBean bean = readMobilityDegreeInformation(request);
    request.setAttribute("mobilityIndividualApplicationProcessBean", bean);
    request.setAttribute(getIndividualCandidacyProcessBeanName(), getIndividualCandidacyProcessBean());
    request.setAttribute("degreeCourseInformationBean", readDegreeCourseInformationBean(request));

    RenderUtils.invalidateViewState();

    if ("editCandidacy".equals(request.getParameter("userAction"))) {
        return mapping.findForward("edit-candidacy-degree-and-courses");
    }

    return mapping.findForward("fill-degree-and-courses-information");
}
 
开发者ID:FenixEdu,项目名称:fenixedu-academic,代码行数:21,代码来源:ErasmusIndividualCandidacyProcessPublicDA.java

示例7: sendEmailPostback

import pt.ist.fenixWebFramework.renderers.utils.RenderUtils; //导入依赖的package包/类
public ActionForward sendEmailPostback(ActionMapping mapping, ActionForm form, HttpServletRequest request,
        HttpServletResponse response) {

    final PhdIndividualProgramProcessEmailBean emailBean = getRenderedObject("emailBean");
    emailBean.refreshTemplateInUse();
    request.setAttribute("emailBean", emailBean);

    RenderUtils.invalidateViewState("emailBean.create");
    for (PhdEmailParticipantsGroup group : emailBean.getPossibleParticipantsGroups()) {
        RenderUtils.invalidateViewState("emailBean.groups.edit." + group.toString());
    }
    RenderUtils.invalidateViewState("emailBean.individuals");
    RenderUtils.invalidateViewState("emailBean.template");

    return mapping.findForward("sendPhdIndividualProcessEmail");
}
 
开发者ID:FenixEdu,项目名称:fenixedu-academic,代码行数:17,代码来源:PhdIndividualProgramProcessDA.java

示例8: getValidatorsList

import pt.ist.fenixWebFramework.renderers.utils.RenderUtils; //导入依赖的package包/类
public List<HtmlValidator> getValidatorsList() {
    List<HtmlValidator> validators = new ArrayList<HtmlValidator>();
    for (ValidatorProperties validatorPair : this.validators) {
        Constructor<HtmlValidator> constructor;
        try {
            constructor = validatorPair.getType().getConstructor(new Class[] {});

            HtmlValidator validator = constructor.newInstance();
            RenderUtils.setProperties(validator, validatorPair.getProperties());

            validators.add(validator);
        } catch (Exception e) {
            throw new RuntimeException("could not create validator '" + validatorPair.getType().getName() + "' for slot '"
                    + getName() + "': ", e);
        }
    }

    return validators;
}
 
开发者ID:FenixEdu,项目名称:bennu-renderers,代码行数:20,代码来源:MetaSlot.java

示例9: seniorStatutePostBack

import pt.ist.fenixWebFramework.renderers.utils.RenderUtils; //导入依赖的package包/类
public ActionForward seniorStatutePostBack(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
        HttpServletResponse response) {

    final CreateStudentStatuteFactory oldManageStatuteBean = getRenderedObject();
    final Student student = oldManageStatuteBean.getStudent();
    final StatuteType statuteType = oldManageStatuteBean.getStatuteType();
    final CreateStudentStatuteFactory manageStatuteBean = new CreateStudentStatuteFactory(student);
    manageStatuteBean.setStatuteType(statuteType);

    RenderUtils.invalidateViewState();

    request.setAttribute("student", student);
    request.setAttribute("manageStatuteBean", manageStatuteBean);

    if (manageStatuteBean.getStatuteType().isSeniorStatute()) {
        request.setAttribute("schemaName", "student.createSeniorStatute");
    } else {
        request.setAttribute("schemaName", "student.createStatutes");
    }

    return mapping.findForward("manageStatutes");
}
 
开发者ID:FenixEdu,项目名称:fenixedu-academic,代码行数:23,代码来源:StudentStatutesDA.java

示例10: prepareExecuteSendReceptionEmail

import pt.ist.fenixWebFramework.renderers.utils.RenderUtils; //导入依赖的package包/类
public ActionForward prepareExecuteSendReceptionEmail(ActionMapping mapping, ActionForm actionForm,
        HttpServletRequest request, HttpServletResponse response) {
    SendReceptionEmailBean bean = getRenderedSendReceptionEmailBean();

    if (bean == null) {
        bean = new SendReceptionEmailBean(getProcess(request));
        bean.retrieveProcesses();
    }

    RenderUtils.invalidateViewState("send.reception.email.bean");
    RenderUtils.invalidateViewState("send.reception.email.bean.edit");

    request.setAttribute("sendReceptionEmailBean", bean);

    return mapping.findForward("send-reception-email-present-individual-processes");
}
 
开发者ID:FenixEdu,项目名称:fenixedu-academic,代码行数:17,代码来源:ErasmusCandidacyProcessDA.java

示例11: acceptEnrolments

import pt.ist.fenixWebFramework.renderers.utils.RenderUtils; //导入依赖的package包/类
public ActionForward acceptEnrolments(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
        HttpServletResponse response) {

    final ManageEnrolmentsBean bean = getRenderedObject("manageEnrolmentsBean");
    request.setAttribute("manageEnrolmentsBean", bean);

    try {

        ExecuteProcessActivity.run(getProcess(request), AcceptEnrolments.class, bean);

    } catch (final DomainException e) {
        addErrorMessage(request, e.getMessage(), e.getArgs());
        return mapping.findForward("validateEnrolments");
    }

    RenderUtils.invalidateViewState();
    return redirect(String.format("/phdIndividualProgramProcess.do?method=manageEnrolments&processId=%s", getProcess(request)
            .getExternalId()), request);
}
 
开发者ID:FenixEdu,项目名称:fenixedu-academic,代码行数:20,代码来源:PhdIndividualProgramProcessDA.java

示例12: chooseLessonPlanning

import pt.ist.fenixWebFramework.renderers.utils.RenderUtils; //导入依赖的package包/类
public ActionForward chooseLessonPlanning(ActionMapping mapping, ActionForm form, HttpServletRequest request,
        HttpServletResponse response) {

    IViewState summaryViewState = RenderUtils.getViewState("summariesManagementBeanWithLessonPlanning");
    if (summaryViewState == null) {
        summaryViewState = RenderUtils.getViewState("summariesManagementBeanWithSummary");
    }

    SummariesManagementBean bean = (SummariesManagementBean) summaryViewState.getMetaObject().getObject();
    LessonPlanning lessonPlanning = bean.getLessonPlanning();
    if (lessonPlanning != null) {
        bean.setSummaryText(lessonPlanning.getPlanning());
        bean.setTitle(lessonPlanning.getTitle());
        bean.setLastSummary(null);
    }

    return goToSummaryManagementPageAgain(mapping, request, (DynaActionForm) form, bean);
}
 
开发者ID:FenixEdu,项目名称:fenixedu-academic,代码行数:19,代码来源:SummariesManagementDA.java

示例13: chooseLastSummary

import pt.ist.fenixWebFramework.renderers.utils.RenderUtils; //导入依赖的package包/类
public ActionForward chooseLastSummary(ActionMapping mapping, ActionForm form, HttpServletRequest request,
        HttpServletResponse response) {

    IViewState summaryViewState = RenderUtils.getViewState("summariesManagementBeanWithLastSummary");
    if (summaryViewState == null) {
        summaryViewState = RenderUtils.getViewState("summariesManagementBeanWithSummary");
    }

    SummariesManagementBean bean = (SummariesManagementBean) summaryViewState.getMetaObject().getObject();
    Summary lastSummary = bean.getLastSummary();
    if (lastSummary != null) {
        bean.setSummaryText(lastSummary.getSummaryText());
        bean.setTitle(lastSummary.getTitle());
        bean.setLessonPlanning(null);
    }

    return goToSummaryManagementPageAgain(mapping, request, (DynaActionForm) form, bean);
}
 
开发者ID:FenixEdu,项目名称:fenixedu-academic,代码行数:19,代码来源:SummariesManagementDA.java

示例14: showCurrentForm

import pt.ist.fenixWebFramework.renderers.utils.RenderUtils; //导入依赖的package包/类
public ActionForward showCurrentForm(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
        HttpServletResponse response) throws FenixActionException, FenixServiceException {

    request.setAttribute("candidacy", getCandidacy(request));
    request.setAttribute("operation", RenderUtils.getViewState("operation-view-state").getMetaObject().getObject());
    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");
}
 
开发者ID:FenixEdu,项目名称:fenixedu-academic,代码行数:19,代码来源:DegreeCandidacyManagementDispatchAction.java

示例15: addCoordinator

import pt.ist.fenixWebFramework.renderers.utils.RenderUtils; //导入依赖的package包/类
public ActionForward addCoordinator(ActionMapping mapping, ActionForm form, HttpServletRequest request,
        HttpServletResponse response) {

    final String personId = request.getParameter("personId");
    final Person personAdding = FenixFramework.getDomainObject(personId);

    ExecutionDegreeCoordinatorsBean coordsBean = getRenderedObject("coordsBean");

    Coordinator.makeCreation(personAdding, coordsBean.getExecutionDegree(), coordsBean.getNewCoordinator(),
            Boolean.valueOf(false));

    coordsBean.setNewCoordinator(null);
    request.setAttribute("coordsBean", coordsBean);
    RenderUtils.invalidateViewState("coordsBean");
    request.setAttribute("startVisible", true);

    return mapping.findForward("editCoordination");
}
 
开发者ID:FenixEdu,项目名称:fenixedu-academic,代码行数:19,代码来源:EditExecutionDegreeCoordinationDA.java


注:本文中的pt.ist.fenixWebFramework.renderers.utils.RenderUtils类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。