蒋德的JAVA备忘录

JAVA备忘录

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  14 随笔 :: 4 文章 :: 5 评论 :: 0 Trackbacks

复选框的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>
     
  

posted on 2008-03-12 18:21 蒋德 阅读(940) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: