PhotoCam PhotoCam is an input component to take photos with the webcam and send them to the backend model.
<h:form>        
    <h:panelGrid columns="3" cellpadding="5">
        <p:photoCam widgetVar="pc" listener="#{photoCamView.oncapture}" update="photo" />
        <p:commandButton type="button" value="Capture" onclick="PF('pc').capture()"/>
        <p:outputPanel id="photo">
            <p:graphicImage name="demo/images/photocam/#{photoCamView.filename}.jpeg" rendered="#{not empty photoCamView.filename}"/>
        </p:outputPanel>
    </h:panelGrid>
</h:form>
                
PrimeTek, Copyright © 2015
All rights reserved.
Running PrimeFaces-6.1-SNAPSHOT on Mojarra-2.2.8.