Ejemplo n.º 1
0
 private void copyProperties(
     ScientificJournal scientificJournal,
     MergeScientificJournalPageContainerBean researchActivityPageContainerBean) {
   researchActivityPageContainerBean.setName(scientificJournal.getName());
   researchActivityPageContainerBean.setIssn(scientificJournal.getIssn());
   researchActivityPageContainerBean.setUrl(scientificJournal.getUrl());
   researchActivityPageContainerBean.setResearchActivityLocationType(
       scientificJournal.getLocationType());
   researchActivityPageContainerBean.setStage(scientificJournal.getStage());
 }
Ejemplo n.º 2
0
  public ActionForward chooseScientificJournal(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response) {
    MergeScientificJournalPageContainerBean researchActivityPageContainerBean =
        getRenderedObject("mergeList");
    ScientificJournal scientificJournal =
        (ScientificJournal) researchActivityPageContainerBean.getSelected();
    researchActivityPageContainerBean.setSelected(null);

    copyProperties(scientificJournal, researchActivityPageContainerBean);

    RenderUtils.invalidateViewState();
    request.setAttribute("mergeList", researchActivityPageContainerBean);
    return mapping.findForward("show-research-activity-merge-list");
  }