日期:2014-05-18  浏览次数:20629 次

myfaces的分页标签t:dataScroller怎么不好使啊
myfaces的t:dataScroller可以提供分页功能,但使用后却发现不能显示dataTable的内容,后台日志有如下错误信息:
16:24:55,703   WARN     [HtmlResponseWriterImpl]   HTML   nesting   warning   on   closing   td:   element   t:dataScroller   not   explicitly   closed
16:24:55,703   WARN     [HtmlResponseWriterImpl]   HTML   nesting   warning   on   closing   t:dataScroller:   element   td   rendered   by   component   :   {Component-Path   :   [Class:   javax.faces.component.UIViewRoot,ViewId:   /membership/public/viewMembershipPlansPublic.xhtml]
[Class:javax.faces.component.html.HtmlForm,Id:view-all-membership-form]
[Class:javax.faces.component.html.HtmlPanelGroup,Id:   body][Class:   javax.faces.component.html.HtmlPanelGrid,Id:   _id65]}   not   explicitly   closed
页面代码段如下:
<h:outputText   value= "Rows   to   show "/>
<h:inputText   value= "#{allMembershipPlanList.rowCount} "   />
<h:commandButton   value= "set   rowCount "/>
    <h:panelGroup   id= "body ">
        <t:dataTable   id= "membershipPlans "          
              value= "#{allMembershipPlanList.list} "  
              var= "membershipPlan "
              rowClasses= "oddRow,   evenRow "  
              headerClass= "tableHeader "  
              preserveDataModel= "false "
              rows= "#{allMembershipPlanList.rowCount} ">
              <h:column>                   <f:facet   name= "header ">         <h:panelGroup> <h:outputText   value= "Name "   />                         </h:panelGroup>
      </f:facet>                              
                  <h:outputText   value= "#{membershipPlan.name} "   />               </h:column>
              <h:column>                   <f:facet   name= "header ">         <h:panelGroup> <h:outputText   value= "Description "   />         </h:panelGroup>
    </f:facet>                                                          
                  <h:outputText   value= "#{membershipPlan.desc} "   />
              </h:column>