Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我看来,大多数时候您希望在您的 a4j:support、a4j:commandLink、a4j:commandButton 等组件上将 ignoreDupResponse 设置为 true。在哪种情况下,将 ignoreDupResponse 设置为 false 会很有用?将 ignoreDupResponse 设置为 true 是否有任何性能成本?如果不是,为什么 A4J 默认不将 ignoreDupResponse 设置为 true?
我想不出一个应该将其设置为假的有用示例。但是,默认设置为 false 的原因是这是默认/正常行为。因此,当它为假时,什么都不必发生,而当它为真时,重复的响应需要被“过滤”。
顺便说一句:这是客户端行为,因此它不会对您的网络或服务器负载产生任何影响。
设置 ignoreDupResponse=true 将在类似请求(相同组件或来自同一组)排队时在请求完成后删除 DOM 更新。这并不总是理想的行为。希望这可以帮助。