addCountry.xhtml 721 Bytes
<?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:jsf="http://xmlns.jcp.org/jsf"
      xmlns:ui="http://java.sun.com/jsf/facelets">
<body>
<ui:include src="/org/legrog/web/navigation.xhtml" />

    <form action="" jsf:id="country">
    <h:panelGrid columns="2">
        <label for="name">Nom du pays</label>
        <input type="text" id="name" jsf:value='#{addCountryView.countryName}'/>

        <button jsf:action="#{addCountryView.add}">Ajouter</button>
    </h:panelGrid>
</form>
</body>
</html>