posts - 0,  comments - 0,  trackbacks - 0
   <html>
     
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
       
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
      
<%@ taglib uri="http://corejsf.com/pager" prefix="corejsf" %>
  
       
<f:view>
          
<head>
             
<link href="styles.css" rel="stylesheet" type="text/css"/>
            
<title>Pager Test</title>
          
</head>
           
<body>
              
<h:form>
               
<h:dataTable id="timezones" value="#{bb.data}" var="row" rows="10">
                   
<h:column>
                     
<h:selectBooleanCheckbox value="{bb.dummy}" onchange="submit()"/>
                   
</h:column>
                   
<h:column>
                      
<h:outputText value="#{row}" />
                   
</h:column>
                
</h:dataTable>
                
<corejsf:pager dataTableId="timezones"
                   showpages
="20" selectedStyleClass="currentPage"/>
                   
<h:commandButton value="foo"/>
             
</h:form>
          
</body>
       
</f:view>
   
</html>
onchange="submit()"
posted on 2007-12-11 20:09 *一凡* 阅读(221) 评论(0)  编辑  收藏 所属分类: JSF