把ecside分装在一个自定义标签中在页面打印不出来

标签中的代码,其中list为一个集合

out.print("<center> \n <ec:table");
   if(this.id!=null){
    out.print(" tableId=\""+this.id+"\"");
   }
   out.print(" items=\"list\"  var=\"record\" retrieveRowsCallback=\"process\"");
   if(this.action!=null){
    out.print(" action=\""+this.path+"\\\""+this.action);
   }
   out.print(" rowsDisplayed=\"10\" editable=\"true\"  sortable=\"true\" filterable=\"true\"");
   out.print(" toolbarContent=\"status|refresh save add del|export|extend|navigation|pagejump|pagesize\"");
   out.print(" resizeColWidth=\"true\" width=\"100%\"");
   out.print(" excludeTool=\"true\" filterable=\"true\" showPrint=\"true\"");
   out.print(" xlsFileName=\""+file+".xls\" csvFileName=\""+file+".csv\" pdfFileName=\""+file+".pdf\">");
   
   out.println("\n <ec:row>");
   out.println("<ec:column property=\"_0\" title=\"序号\" value=\"${GLOBALROWCOUNT}\" />");
   for(int i=0;i<key.getCnfield().length;i++){
    out.println("<ec:column property=\""+key.getField()[i].trim()+"\" title=\""+key.getCnfield()[i].trim()+"\"");
   }
   out.println("</ec:row>");
   out.println("</ec:table>");
   //编辑和过滤所使用得通用的文本框模板
   out.println("<textarea  id=\"ecs_t_data\" rows=\"\" cols=\"\" style=\"display:none\">");
   out.println("<input type=\"text\" class=\"inputtext\" value=\"\" stytle=\"width:100px\" name=\"\" />");
   out.println("<input class=\"calendarImgButton\" onclick=\"ECSideUtil.showCalendar(this)\" type=\"button\" id=\"date_button\" />");
   out.println("</textarea>");
   //编辑和过滤所使用得通用的文本框模板
   out.println("<textarea id=\"ecs_t_input\" rows=\"\" cols=\"\" style=\"display:none\">");
   out.println("<input type=\"text\" class=\"inputtext\" value=\"\" noblur=\"ECSideUtil.updateEditcell(this)\" style=\"width:100%;\" name=\"\" />");
   out.println("</textarea>");
   //新建记录所用模板
   out.println("<textarea id=\"add_template\" rows=\"\" cols=\"\" style=\"display:none\">");
   out.println("<tpsp /> \n &nbsp;");
   for(int i=0;i<key.getField().length;i++){
    if(i!=key.getField().length-1){
     out.println("<input type=\"text\" name=\""+key.getField()[i].trim()+"\" />");
     out.println("<tpsp />");
    }else{
     out.println("<input type=\"text\" name=\""+key.getField()[i].trim()+"\" />");
    }
   }
   out.println("</textarea> \n </center");

页面源代码:

 

 

 

 

<html>
 <head>
  <title>eXtremeTest</title>
  <link rel="stylesheet" type="text/css" href="ecside/css/ecside_style.css" />
  <script type="text/javascript" src="ecside/js/prototype_mini.js"></script>
  <script type="text/javascript" src="ecside/js/ecside_msg_utf8_cn.js"></script>
  <script type="text/javascript" src="ecside/js/ecside.js"></script>
  <script type="text/javascript">
   function a(){
    var t=document.getElementById("a");
    var e=event.srcElement;
    //alert(e.parentElement.rowIndex);
   }
  </script>
  
  
 </head>
 
 <body style="margin: 25px;">
 <p style="font-family: Verdana; font-size: 14px;">
   恭喜!! 你已经配置 eXtremeTable 成功!
  </p>
  <center>
 <ec:table items="list"  var="record" retrieveRowsCallback="process" rowsDisplayed="10" editable="true"  sortable="true" filterable="true" toolbarContent="status|refresh save add del|export|extend|navigation|pagejump|pagesize" resizeColWidth="true" width="100%" excludeTool="true" filterable="true" showPrint="true" xlsFileName="2008-04-25.xls" csvFileName="2008-04-25.csv" pdfFileName="2008-04-25.pdf">
 <ec:row>
<ec:column property="_0" title="序号" value="${GLOBALROWCOUNT}" />
<ec:column property="organCode" title="机构编码"
<ec:column property="organName" title="机构名称"
<ec:column property="parentCode" title="上级机构编码"
<ec:column property="organGrade" title="等级编码"
</ec:row>
</ec:table>
<textarea  id="ecs_t_data" rows="" cols="" style="display:none">
<input type="text" class="inputtext" value="" stytle="width:100px" name="" />
<input class="calendarImgButton" onclick="ECSideUtil.showCalendar(this)" type="button" id="date_button" />
</textarea>
<textarea id="ecs_t_input" rows="" cols="" style="display:none">
<input type="text" class="inputtext" value="" noblur="ECSideUtil.updateEditcell(this)" style="width:100%;" name="" />
</textarea>
<textarea id="add_template" rows="" cols="" style="display:none">
<tpsp />
 &nbsp;
<input type="text" name="organCode" />
<tpsp />
<input type="text" name="organName" />
<tpsp />
<input type="text" name="parentCode" />
<tpsp />
<input type="text" name="organGrade" />
</textarea>
 </center

  
 </body>
</html>

你可能感兴趣的:(JavaScript,css,prototype)