相关疑难解决方法(0)

h:commandButton在h:dataTable中不起作用

我试图执行一个action通过commandButton内部的dataTable,但action在时不调用commandButton被放置在数据表中,如下图所示

<h:form>
    <h:dataTable value="#{bean.list}" var="item">
        <h:column>
            <h:commandButton value="submit" action="#{bean.submit}" />
        </h:column>
    </h:dataTable>
</h:form>
Run Code Online (Sandbox Code Playgroud)

当我commandButton移出时dataTable,action成功执行.数据表内部有什么问题commandButton?该commandLink有同样的问题.

datatable jsf commandlink jsf-2 commandbutton

5
推荐指数
1
解决办法
9594
查看次数

标签 统计

commandbutton ×1

commandlink ×1

datatable ×1

jsf ×1

jsf-2 ×1