<?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> <h:head> <title>Page JSF pour saisir l'id d'une vidéo YouTube</title> <h:ouputScript name="js/apiYT2.js" /> </h:head> <h:body > <h1>Page JSF pour saisir l'id d'une vidéo YouTube</h1> <f:view> <h:form id="form"> id de la vidéo : <h:inputText id="idVideo" value="#{beanVideo2.idVideo}"/> <br/> <div id="player"></div> <br/> <h:commandButton value='Voir la vidéo'/> </h:form> </f:view> </h:body> </html>