Im using Primefaces photocam component. I can perform capture by using:
PF('photoCam').capture();
But how to perform this operation from backing bean?
I have a binding:
<p:photoCam widgetVar="pc" binding="#{photoCamView.photoCam}" listener="#{photoCamView.oncapture}" update="photo" />
But org.primefaces.component.photocam.PhotoCam does not have "capture" method.