From: MBauschert <mba...@us...> - 2007-07-31 13:45:21
|
Update of /cvsroot/sblim/wbemsmt-commons/commons-eui/org/sblim/wbemsmt/tools/jsf In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv15197/commons-eui/org/sblim/wbemsmt/tools/jsf Modified Files: MultiLinePanel.java Log Message: Fix [ 1764543 ] wbemsmt-webapp: Custom footer in child panel not displayed Index: MultiLinePanel.java =================================================================== RCS file: /cvsroot/sblim/wbemsmt-commons/commons-eui/org/sblim/wbemsmt/tools/jsf/MultiLinePanel.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- MultiLinePanel.java 26 Jul 2007 08:33:56 -0000 1.5 +++ MultiLinePanel.java 31 Jul 2007 13:45:18 -0000 1.6 @@ -88,18 +88,18 @@ customFooterPanel = (HtmlPanelGroup) FacesContext.getCurrentInstance().getApplication().createComponent(HtmlPanelGroup.COMPONENT_TYPE); HtmlPanelGroup outerFooterPanel = (HtmlPanelGroup) FacesContext.getCurrentInstance().getApplication().createComponent(HtmlPanelGroup.COMPONENT_TYPE); + outerFooterPanel.getChildren().add(customFooterPanel); HtmlOutputText noEntriesFooter = (HtmlOutputText) FacesContext.getCurrentInstance().getApplication().createComponent(HtmlOutputText.COMPONENT_TYPE); noEntriesFooter.setValueBinding("value",FacesContext.getCurrentInstance().getApplication().createValueBinding("#{messages.noEntries}") ); noEntriesFooter.setValueBinding("styleClass",FacesContext.getCurrentInstance().getApplication().createValueBinding("#{" + bindingPrefix + rolename + "AvailableFooterClass}") ); noEntriesFooter.setStyle("width:200px;white-space: nowrap;"); + outerFooterPanel.getChildren().add(noEntriesFooter); - dataTable.getFacets().put("footer", noEntriesFooter); + dataTable.getFacets().put("footer", outerFooterPanel); dataTable.setValueBinding("footerClass",FacesContext.getCurrentInstance().getApplication().createValueBinding("#{" + bindingPrefix + rolename + "FooterClass}") ); - outerFooterPanel.getChildren().add(customFooterPanel); - outerFooterPanel.getChildren().add(noEntriesFooter); StringBuffer sb = new StringBuffer(); for (int i=0; i < cols; i++) |