【发布时间】:2013-11-22 14:51:26
【问题描述】:
我想问一下标题是什么意思: 假设我们有一个输入文本和一个按钮。好吧,我想在单击按钮时在 inputtext 中提交一个 ajax 请求。
例如,从 inputtext 的角度来看,我想达到这样的效果:
<h:inputtext>
<a4j:support event="button.onclick"/>
<h:inputtext>
<h:button id="button">
或者,从按钮的角度来看:
<h:inputtext id="input"/>
<h:button id="button">
<a4j:support event="onclick" action="input.submit"/>
</h:button>
不知道是否有简单的方法来完成这项工作。
提前致谢!!
【问题讨论】: