当前位置: 代码迷 >> JavaScript >> jsf中使用js的技巧
  详细解决方案

jsf中使用js的技巧

热度:365   发布时间:2012-11-11 10:07:57.0
jsf中应用js的技巧
jsf中使用js的技巧:

1.事件方法的书写:
<script type="text/javascript">
   function danji(form){
      form["form1:xxid"].value = "";//获取控件的方式
   }
</script>

2.调用
<h:form id="form1">
   <h:inputText onclick=danji("this.form")/>
</h:form>
  相关解决方案