ConfigurationUtility.normalizeConfiguration(configurationComponent.getConfiguration(),
configurationComponent.getConfigurationDefinition());
if (configurationComponent instanceof ConfigurationSetComponent) {
ConfigurationSetComponent configurationSetComponent = (ConfigurationSetComponent) configurationComponent;
// Only add the propSet modal panel if it's not already in the component tree.
if (configurationSetComponent.getPropSetModalPanel() == null)
addPropSetModalPanel(configurationSetComponent);
// Otherwise, if the propSet was just submitted and it doesn't contain any validation errors,
// close the propSet modal.
else if (isAjaxRefresh(configurationSetComponent)
&& !propertySetComponentContainsInvalidInputs(configurationSetComponent)) {
HtmlModalPanel propSetModalPanel = configurationSetComponent.getPropSetModalPanel();
String script = "Richfaces.hideModalPanel('"
+ propSetModalPanel.getClientId(FacesContext.getCurrentInstance()) + "');";
FacesComponentUtility.addJavaScript(configurationSetComponent, null, null, script);
}
}