蔣德的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 蔣德 閱讀(955) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 天津市| 临沭县| 那曲县| 武城县| 孟州市| 靖江市| 杭州市| 南郑县| 兴业县| 公主岭市| 武强县| 吴川市| 宁强县| 揭东县| 得荣县| 深水埗区| 浏阳市| 马尔康县| 皮山县| 永和县| 宿松县| 东宁县| 庆安县| 杭锦旗| 汽车| 册亨县| 镇平县| 新蔡县| 沭阳县| 民和| 夹江县| 平舆县| 盘山县| 安塞县| 永城市| 镇安县| 吉林市| 连城县| 托克逊县| 津市市| 司法|