Jsf 我可以延迟a4j:commandButton';使用accesskey单击时的操作?
我有一个Jsf 我可以延迟a4j:commandButton';使用accesskey单击时的操作?,jsf,richfaces,Jsf,Richfaces,我有一个h:inputText,当onchange()事件发生时,它将调用后端方法 <h:inputText> <a4j:support event="onchange" action="#{mBean.onInputChange}" /> </h:inputText> 我有一个a4j:commandButton,它将执行保存过程。a4j:commandButton也有分配给它的热键 <a4j:commandButton acces
h:inputText
,当onchange()事件发生时,它将调用后端方法
<h:inputText>
<a4j:support event="onchange" action="#{mBean.onInputChange}" />
</h:inputText>
我有一个a4j:commandButton,它将执行保存过程。a4j:commandButton也有分配给它的热键
<a4j:commandButton accesskey="s" action="#{mBean.performSave}" />
当我在
h:inputText
中键入文本,然后按“Alt+s”单击按钮时,mBean.performSave()
和mBean.onInputChange()
将同时运行。我是否可以延迟mBean.performSave()
的操作,以便mBean.performSave()
将在mBean.onInputChange()
完成后运行?Richfaces
提供了一个可用于处理您的场景的组件。您可以尝试使用