此行位于表单标记内:
<p:commandLink actionListener="#{questionBean.removeQuestion(question)}"
value="Delete" styleClass="delete" update="@all"/>
但是,它仅适用于@form
。当我有 @all
时什么也不会发生。我希望不仅能够更新表单,还能够更新页面的其他部分。
最佳答案
primefaces 似乎不支持 update="@all"
虽然问题有点不同update="@all" is not working with "ui:include ..."
但仍然被多次提及
update="@all" does not work with PimeFaces.
另一个引用:Issue 2026: update="@all" is not working PrimeFaces ajax.
关于java - @all 在 JSF Ajax 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8744466/