Added session support to label parameters to company view
This commit is contained in:
parent
da7eeb7c21
commit
41661c3afc
1 changed files with 11 additions and 0 deletions
|
|
@ -156,6 +156,15 @@ public class CompanyPlanningController implements Composer {
|
|||
}
|
||||
|
||||
private void loadPredefinedBandboxFilter() {
|
||||
List<FilterPair> sessionFilterPairs = (List<FilterPair>) Sessions
|
||||
.getCurrent().getAttribute("companyFilterLabel");
|
||||
if (sessionFilterPairs != null && !sessionFilterPairs.isEmpty()) {
|
||||
for (FilterPair filterPair : sessionFilterPairs) {
|
||||
bdFilters.addSelectedElement(filterPair);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
User user;
|
||||
try {
|
||||
user = this.userDAO.findByLoginName(SecurityUtils
|
||||
|
|
@ -313,6 +322,8 @@ public class CompanyPlanningController implements Composer {
|
|||
filterStartDate.getValue());
|
||||
Sessions.getCurrent().setAttribute("companyFilterFinishDate",
|
||||
filterFinishDate.getValue());
|
||||
Sessions.getCurrent().setAttribute("companyFilterLabel",
|
||||
bdFilters.getSelectedElements());
|
||||
filterByPredicate(createPredicate());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue