groupPanel.setOpened(!group.isDefaultHidden());
groupPanel.setHeaderClass(PROPERTY_GROUP_HEADER_STYLE_CLASS);
groupPanel.setBodyClass(PROPERTY_GROUP_BODY_STYLE_CLASS);
// Custom header that includes the name and description
HtmlPanelGroup headerPanel = FacesComponentUtility.createBlockPanel(config, null);
FacesComponentUtility.addOutputText(headerPanel, config, group.getDisplayName(), null);
FacesComponentUtility
.addOutputText(headerPanel, config, group.getDescription(), "group-description-text-panel");
groupPanel.getFacets().put("header", headerPanel);
// custom "close" widget
HtmlPanelGroup closePanel = FacesComponentUtility.createBlockPanel(config, null);
closePanel.setStyle("text-align: right; font-weight: normal; font-size: 0.8em; whitespace: nowrap;");
FacesComponentUtility.addGraphicImage(closePanel, config, "/images/ico_trigger_wht_collapse.gif", "collapse");
FacesComponentUtility.addOutputText(closePanel, config, " Collapse", null);
groupPanel.getFacets().put("closeMarker", closePanel);
// custom "open" widget
HtmlPanelGroup openPanel = FacesComponentUtility.createBlockPanel(config, null);
openPanel.setStyle("text-align: right; font-weight: normal; font-size: 0.8em; whitespace: nowrap;");
FacesComponentUtility.addGraphicImage(openPanel, config, "/images/ico_trigger_wht_expand.gif", "expand");
FacesComponentUtility.addOutputText(openPanel, config, " Expand", null);
groupPanel.getFacets().put("openMarker", openPanel);
addDebug(config, true, ".addGroupPanel()");