首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

extreme Table不能生成checkbox呢解决思路

2013-11-15 
extreme Table不能生成checkbox呢extreme Table怎么不能生成checkbox呢?使用alias“checkbox”也不行,谁知

extreme Table不能生成checkbox呢
extreme Table怎么不能生成checkbox呢?使用alias=“checkbox”也不行,谁知道,急求! checkbox extreme?Table
[解决办法]


<form id="presForm" action="<c:url value="selectedPresidentsListedController.run"/>" method="post">

 Enter your name: 
 <input 
  type="text" 
  name="userName" 
  style="font-family:verdana,arial,helvetica,sans-serif;font-size:11px;"
  value="<c:out value="${param.userName}"/>"
  /> 

  <ec:table 
    items="presidents"
    action="${pageContext.request.contextPath}/selectedPresidentsController.run"  
    view="compact"
    imagePath="${pageContext.request.contextPath}/images/table/compact/*.gif"
    rowsDisplayed="8"
    autoIncludeParameters="false"
    form="presForm"
    >
    <ec:exportPdf 
        fileName="output.pdf" 
        tooltip="Export PDF" 
        headerColor="black" 
        headerBackgroundColor="#b6c2da" 
        headerTitle="Presidents"
        />
    <ec:row>
      <ec:column 
          alias="checkbox"
          title=" " 
          width="5px" 
          filterable="false" 
          sortable="false" 
          viewsAllowed="compact"
          cell="selectedPresident"
          />
      <ec:column property="fullName" title="Name"/>
      <ec:column property="nickName" />
      <ec:column property="term" />
    </ec:row>
  </ec:table>
 
  <input
      type="button"
      name="sel"
      class="button"
      value="List Selected Presidents"
      onclick="document.forms.presForm.submit();"
      />
 
    <script type="text/javascript">
    function setPresidentState(chkbx) {
     //make sure that always know the state of the checkbox
     if (chkbx.checked) {
      eval('document.forms.presForm.chkbx_' + chkbx.name).value='SELECTED';
     } else {
      eval('document.forms.presForm.chkbx_' + chkbx.name).value='UNSELECTED';
     }
    }
    </script> 

</form>

热点排行