public void preRender() { super.preRender(); AcPageSession ps = getPageSession(); JwList<String> statuses = ps.getInternationalNominatedRouteStatusList(); _statusCbGroup.setSelectedValues(statuses); }
private ScControl createStatusFilter() { _statusCbGroup = new ScCheckboxGroup(); _statusCbGroup.setLabel("Status"); _statusCbGroup.hideLines(); _statusCbGroup.useHorizontalLayout(); _statusCbGroup.setNullSelectsAll(); ScOptionTree all = _statusCbGroup.addOption("All", "-- all --"); all.addOption( AcUspsInternationalNominatedRouteStatusEnum.NEW.getLabel(), AcUspsInternationalNominatedRouteStatusEnum.NEW.getCode()); all.addOption( AcUspsInternationalNominatedRouteStatusEnum.ACCEPTED.getLabel(), AcUspsInternationalNominatedRouteStatusEnum.ACCEPTED.getCode()); all.addOption( AcUspsInternationalNominatedRouteStatusEnum.REJECTED.getLabel(), AcUspsInternationalNominatedRouteStatusEnum.REJECTED.getCode()); return _statusCbGroup; }
protected void handleGo() { JwList<String> statuses = _statusCbGroup.getSelectedStrings(); getPageSession().setInternationalNominatedRouteStatusList(statuses); super.handleGo(); }