【发布时间】:2013-07-12 20:30:23
【问题描述】:
我知道我们可以将actionListener 添加到commandButton 为:
<h:commandButton value="ClickMe">
<f:actionListener type="com.mycompany.MyActionListener" />
</h:commandButton>
但是我怎样才能将actionListener 添加到文档(整个文档,而不仅仅是正文)?我这样做的原因是当用户点击页面中的任何地方时,我想触发一个方法。
【问题讨论】: