JSF中, <h:dataTable>中 <hx:commandExButton/>点击失效的问题!
源码如下: <h:dataTable border="0" cellpadding="2" cellspacing="0"
   headerClass="headerClass1" footerClass="footerClass" 
   styleClass="dataTable" id="table1"
   value="#{pc_PupPageSelection.viewList}" var="varpuppageselection" width="800">
<h:column id="column1">
   <hx:commandExButton type="submit" value="广告表示"
style="width:90px;height:25px;" styleClass="commandExButton" id="button2"
action="#{pc_PupPageSelection.doButton2Action}"></hx:commandExButton>
</h:column>
</h:dataTable>点击button的时候,不能执行doButton2Action,只是刷新本页面。但是将这个<hx:commandExButton/>放到datatable外面的时候却能执行了。这是什么问题呢?

解决方案 »

  1.   

    JSF标签未必相互兼容吧, hx:的你使用h:commandButton 或者commnadLink试下
      

  2.   

    是不是要在table的外面使用一个form 标签呢
      

  3.   

    jsf标签没见过hx:commandExButton 的,h:commandButton 倒是经常用
      

  4.   

    ding        ___  ^_^ ______
      

  5.   

    你也是用JSF开发的?
    咱们交个朋友吧.
    你有MSN吗?
    我MSN:[email protected]
    以后多多探讨哦.