January 2013
Intermediate to advanced
328 pages
7h 14m
English
The photoCam component supports taking images with the attached camera and sending them to the JSF backend data model.
A simple definition for capturing an image with the photoCam component would be as follows:
<p:photoCam widgetVar="pc" listener="#{photoCamController.onCapture}" update="capturedImage"/>
<p:graphicImage id="capturedImage" value="#{photoCamController.capturedImage}" />update="capturedImage"/>
<p:commandButton type="button" value="Capture" onclick="pc.capture()"/>The captured image is triggered via the client-side JavaScript method capture. The button declared in the preceding sample invokes the capture method via the widget variable defined for the photoCam component. ...
Read now
Unlock full access