I have two data types in two forms: forma and formg. Inside each form there is p:dataTable , groupsa and groupsg. Each datatable has a custom column that displays an image ( h:graphicImage ) called fava and favg.
Clicking on the image will update the images from another file date.
<p:ajax event="click" listener="#{agent.toogleFavorite}" update="fava, :formg:groupsg:favg" />
Without a colon, I get an exception:
javax.faces.FacesException: Cannot find component with identifier "forma:agentsa:fava" referenced from "groupsg:0:favg".
What is the difference between formg: groupsg: favg and: formg: groupsg: favg?
I am using JSF2.0 and PrimeFaces 3.4.
source share