Mercurial > hg > ismi-richfaces
comparison src/main/java/de/mpiwg/itgroup/ismi/entry/beans/SessionBean.java @ 181:52aa06772336
fixed missingCodex function. moved some code from SessionBean up to MissingRelationsBean and PublicByAuthorBean.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 13 Jun 2018 17:48:06 +0200 |
parents | 0d31c8be7c31 |
children | 34ac2e1b323a |
comparison
equal
deleted
inserted
replaced
180:0d31c8be7c31 | 181:52aa06772336 |
---|---|
139 public static String TRANSFER_EVENT_TAB = "Transfer"; | 139 public static String TRANSFER_EVENT_TAB = "Transfer"; |
140 | 140 |
141 private String selectedTab = WITNESS_TAB; | 141 private String selectedTab = WITNESS_TAB; |
142 private String selectedEventTab = WITNESS_STUDY_EVENT_TAB; | 142 private String selectedEventTab = WITNESS_STUDY_EVENT_TAB; |
143 private String selectedAdvancedSearchTab = "01"; | 143 private String selectedAdvancedSearchTab = "01"; |
144 private String selectedPublicByAuthorTab = "aut"; | |
145 private String selectedMissingRelationsTab = "aut"; | |
146 | |
147 private Long editFormCurrentEntId; | 144 private Long editFormCurrentEntId; |
148 | 145 |
149 private boolean displayError = false; | 146 private boolean displayError = false; |
150 private ArrayList<String> errorMessages; | 147 private ArrayList<String> errorMessages; |
151 | 148 |
658 public void listenerAdvancedSearchTabChange(ItemChangeEvent event) { | 655 public void listenerAdvancedSearchTabChange(ItemChangeEvent event) { |
659 String url = "?searchForm=" + this.selectedAdvancedSearchTab; | 656 String url = "?searchForm=" + this.selectedAdvancedSearchTab; |
660 this.redirect(null, url); | 657 this.redirect(null, url); |
661 } | 658 } |
662 | 659 |
663 public void listenerPublicByAuthorTabChange(ItemChangeEvent event) { | 660 public void redirect(String redirectPath, String parameters){ |
664 String url = "?formIndex=" + this.selectedPublicByAuthorTab; | |
665 this.redirect(null, url); | |
666 } | |
667 | |
668 public void listenerMissingRelationsTabChange(ItemChangeEvent event) { | |
669 String url = "?formIndex=" + this.selectedMissingRelationsTab; | |
670 this.redirect(null, url); | |
671 } | |
672 | |
673 protected void redirect(String redirectPath, String parameters){ | |
674 FacesContext fc = FacesContext.getCurrentInstance(); | 661 FacesContext fc = FacesContext.getCurrentInstance(); |
675 ExternalContext ec = fc.getExternalContext(); | 662 ExternalContext ec = fc.getExternalContext(); |
676 String contextPath = ec.getRequestContextPath(); | 663 String contextPath = ec.getRequestContextPath(); |
677 if(StringUtils.isEmpty(redirectPath)){ | 664 if(StringUtils.isEmpty(redirectPath)){ |
678 redirectPath = ec.getRequestServletPath(); | 665 redirectPath = ec.getRequestServletPath(); |
1127 */ | 1114 */ |
1128 public void setPublicByAuthor(PublicByAuthorBean publicByAuthor) { | 1115 public void setPublicByAuthor(PublicByAuthorBean publicByAuthor) { |
1129 this.publicByAuthor = publicByAuthor; | 1116 this.publicByAuthor = publicByAuthor; |
1130 } | 1117 } |
1131 | 1118 |
1132 /** | |
1133 * @return the selectedPublicByAuthorTab | |
1134 */ | |
1135 public String getSelectedPublicByAuthorTab() { | |
1136 return selectedPublicByAuthorTab; | |
1137 } | |
1138 | |
1139 /** | |
1140 * @param selectedPublicByAuthorTab the selectedPublicByAuthorTab to set | |
1141 */ | |
1142 public void setSelectedPublicByAuthorTab(String selectedPublicByAuthorTab) { | |
1143 this.selectedPublicByAuthorTab = selectedPublicByAuthorTab; | |
1144 } | |
1145 | |
1146 public MissingRelationsBean getMissingRelations() { | 1119 public MissingRelationsBean getMissingRelations() { |
1147 return missingRelations; | 1120 return missingRelations; |
1148 } | 1121 } |
1149 | 1122 |
1150 public void setMissingRelations(MissingRelationsBean missingRelations) { | 1123 public void setMissingRelations(MissingRelationsBean missingRelations) { |
1151 this.missingRelations = missingRelations; | 1124 this.missingRelations = missingRelations; |
1152 } | 1125 } |
1153 | |
1154 public String getSelectedMissingRelationsTab() { | |
1155 return selectedMissingRelationsTab; | |
1156 } | |
1157 | |
1158 public void setSelectedMissingRelationsTab(String selectedMissingRelationsTab) { | |
1159 this.selectedMissingRelationsTab = selectedMissingRelationsTab; | |
1160 } | |
1161 | 1126 |
1162 | 1127 |
1163 | 1128 |
1164 } | 1129 } |
1165 | 1130 |