private String getInitInputsJavaScriptComponentId(AbstractConfigurationComponent configUIComponent) {
return configUIComponent.getId() + INIT_INPUTS_JAVA_SCRIPT_COMPONENT_ID_SUFFIX;
}
private void addPropSetModalPanel(ConfigurationSetComponent configurationSetComponent) {
UIForm configSetForm = FacesComponentUtility.getEnclosingForm(configurationSetComponent);
// Add the modal panel as a sibling of the configSet form.
HtmlModalPanel modalPanel = FacesComponentUtility.createComponent(HtmlModalPanel.class);
String modalPanelId = ConfigurationSetComponent.getPropSetModalPanelId(configurationSetComponent);
modalPanel.setId(modalPanelId);
modalPanel.setWidth(715);
modalPanel.setHeight(535);
modalPanel.setTrimOverlayedElements(false);
modalPanel.setStyle("overflow-y: auto;");
modalPanel.setOnbeforeshow("sizeAppropriately('configSetForm:" + modalPanelId + "')");
modalPanel.setOnresize("keepCentered('configSetForm:" + modalPanelId + "')");
// Insert the modal panel as a sibling of the configSet form, just after the form in the component tree.
int index = getComponentIndex(configSetForm);
configSetForm.getParent().getChildren().add(index + 1, modalPanel);
// Add the propSet form as a child of the modal panel.
HtmlForm propSetForm = new HtmlForm();
modalPanel.getChildren().add(propSetForm);
String propSetFormId = ConfigurationSetComponent.getPropSetFormId(configurationSetComponent);