海蓝啸 发表于 2008-1-11 09:35

关于datatable和commandlink组合使用的问题

下面代码是我的datatable的一个column

<h:column binding="#{organizeList.column2}" id="column2">
     <h:commandLink  binding="#{organizeList.cl_organizeEdit}" onclick="window.alert(this.value)"
                   id="cl_organizeEdit" style="font-size: 14px" value="#{organize.name}"/>
     <f:facet name="header">
         <h:outputText binding="#{organizeList.outputText2}" id="outputText2" style="font-size: 18px"  
                   value="机构名称"/>
     </f:facet>
</h:column>


为什么我点击动态生成的commandLink的时候onclick会不执行?

liugy52 发表于 2008-1-11 09:43

datatable我没有用过,但是我在用其他类似datatable的东西的时候也遇到过类似问题,感觉挺奇怪,如果没有 “value="#{organize.name”      onclick还能正常执行,否则就不行了。你发到JavaScript板块吧,那里有人可以帮你解决。

页: [1]

编程论坛