简体   繁体   中英

@all in JSF Ajax does not work

This line is inside a form tag:

<p:commandLink actionListener="#{questionBean.removeQuestion(question)}"
   value="Delete" styleClass="delete" update="@all"/>

However, it only works with @form . Nothing happens when I have @all . I want to be able to update not only the form but also other parts of the page.

Seems that update="@all" not supported by primefaces

although its a bit diff question update="@all" is not working with "ui:include ..."

but still its being said several time that

update="@all" does not work with PimeFaces.

another ref : Issue 2026: update="@all" is not working PrimeFaces ajax.

Try with process="@all" as explained here .

<p:commandLink actionListener="#{questionBean.removeQuestion(question)}" 
   value="Delete" styleClass="delete" process="@all"/> 

I think it may be a bug. Even if you use JSF's <f:ajax render="@all"> , it may also does not work. To solve this, I think you can simply set the id attribute of the body tag to, for example, mySexyBody . Then you can do update="mySexyBody" .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM