ExtremeTable 表单复选框

ExtremeTable 表单复选框

复选框的JSP页面

  < form action = " ${ctx}/merchant/product.do?method=delete "  name = " outform "  id = " outform "  method = " post " >
                   
< ec:table var = " productForm "  items = " Products "
                    action
= " ${ctx}/merchant/product.do "  showPagination = " true "  showExports = " true "  showStatusBar = " true "  sortable = " true "  filterable = " false "  rowsDisplayed = " 15 "
                    retrieveRowsCallback
= " org.extremecomponents.table.callback.LimitCallback "  
                    filterRowsCallback
= " org.extremecomponents.table.callback.LimitCallback "    
                    sortRowsCallback
= " org.extremecomponents.table.callback.LimitCallback "  form = " outform " >
                    
< ec:exportXls fileName = " productList.xls "  tooltip = " toolbar.text.xls "   />
                    
< ec:row >
                       
< ec:column property = " name "  title = " 选择 "  style = " width:5px "  filterable = " false "   width = " 5% "  sortable = " false " >  
                        
< input type = " checkbox "  name = " productID "   value = " ${productForm.productId} " />  
                        
</ ec:column >  
                        
< ec:column property = " productName "  title = " PRODUCT.productName "  width = " 10% " /></ ec:row >
                
</ ec:table >
                
< input type = " submit "  value = " 批量删除 "  name = " submitData " >
                
</ form >

注意的地方
     1: <form action="${ctx}/merchant/product.do?method=delete" name="outform" id="outform" method="post">
     2:  <ec:table ...... form="outform" >
     3:   <ec:column property="name" title="选择" style="width:5px" filterable="false"  width="5%" sortable="false"> 
                     <input type="checkbox" name="productID"  value="${productForm.productId}"/> 
              </ec:column> 
              </form>
     
  

你可能感兴趣的:(ExtremeTable 表单复选框)