I’m developing primefaces based www application. One of my components [tree] is defined in .xhtml file. I would like to to refresh it from different place [ file ]. Is there any way to do this? I’ve tried classic
update="nameOfElement"
but it doesn’t work at all. I don’ need an specific code line by line. Just in general how to do this and is it even possible. If not – > can I use primepush for this? How to pass the tree structure?
The
updateattribute in many Primefaces components will typically take a space delimited string of component ids that should be redrawn after a JSF Ajax request/response has occurred. The following entries can be put into the update attribute:UINamingContainerof this componentSo it can’t seem to find the component with this id, just because it is in a different
UINamingContainer, Eg.<form> <h:dataTable> etc.Using the
:prefix will resolve the id relative to the view root of the page.This should be able to find the element if it is not inside of a naming container…
But what if it is inside of a form that prepends its id?
Then the above should find the form prefixed element relative to the view root.