public void templateChange(AjaxBehaviorEvent event) { String dbTemplate; UIComponent select = event.getComponent(); if (select instanceof ValueHolder) { dbTemplate = (String) ((ValueHolder) select).getValue(); } else { log.error("Bad component returned " + select); throw new AbortProcessingException("Bad component returned " + select); } setupConfigGenerator.changeDBTemplate(dbTemplate); setParameters(); Contexts.getEventContext().remove("setupParams"); Contexts.getEventContext().remove("advancedParams"); FacesContext context = FacesContext.getCurrentInstance(); context.renderResponse(); }
public void templateChange(AjaxBehaviorEvent event) { String dbTemplate; UIComponent select = event.getComponent(); if (select instanceof ValueHolder) { dbTemplate = (String) ((ValueHolder) select).getValue(); } else { log.error("Bad component returned " + select); throw new AbortProcessingException("Bad component returned " + select); } setupConfigGenerator.changeDBTemplate(dbTemplate); setParameters(); Contexts.getEventContext().remove("setupParams"); Contexts.getEventContext().remove("advancedParams"); FacesContext context = FacesContext.getCurrentInstance(); context.renderResponse(); }