蔣德的JAVA備忘錄

          JAVA備忘錄

            BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            14 隨筆 :: 4 文章 :: 5 評(píng)論 :: 0 Trackbacks

          復(fù)選框的JSP頁(yè)面

           <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 蔣德 閱讀(954) 評(píng)論(0)  編輯  收藏

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 于田县| 洛浦县| 辰溪县| 达日县| 长寿区| 延庆县| 弥勒县| 锡林郭勒盟| 长泰县| 浏阳市| 社旗县| 兴海县| 咸阳市| 和田县| 舒城县| 洞头县| 闻喜县| 双城市| 灵寿县| 曲周县| 景泰县| 石屏县| 当阳市| 瑞昌市| 乡宁县| 察哈| 神木县| 宁国市| 通道| 德州市| 长垣县| 沽源县| 三亚市| 溧阳市| 昭通市| 紫云| 怀来县| 宁都县| 博爱县| 尉氏县| 炉霍县|