我已经阅读了JSF 2.2 docs,其中提到了这个特定的属性,
如果为真,则表明这个特定的 Ajax 事务是一个值重置事务。这将导致在由于此 ajax 事务而遇到的任何 EditableValueHolder 实例上调用 resetValue()。如果未指定,或者值为 false,则不进行此类指示。
作者是什么意思value reset transaction
?我无法理解它提供了哪些基本功能以及何时应该使用它?
请详细说明?
在下面的上下文中解释它的一个例子确实会非常有帮助,
<h:inputText id="nameId" value="#{ajaxBean.name}" />
<h:commandButton value="Submit">
<f:ajax onevent="ajaxMonitoring"
execute="@form"
resetValues="true"
listener="#{ajaxBean.listener()}"
render="@form"/>
</h:commandButton>