Files
ASDV-WebDev/Semester 2/Exams/FinalExamProblem1_CalebFontenot/src/main/webapp/index.xhtml
2024-01-23 13:22:06 -06:00

22 lines
849 B
HTML

<?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="jakarta.faces.html"
xmlns:f="jakarta.faces.core">
<h:head>
<title>Facelet Title</title>
</h:head>
<h:body style="text-align: center;">
<h:form>
<h1>JSF Navigation via Command Button</h1>
<p>
<br/><br/>
Your message: <h:inputText value="#{pageNavigator.message}">
<f:validator validatorId="textLengthValidator"/>
</h:inputText>
</p>
<h:commandButton value="Navigate to a random page between 1 and 4" action="#{pageNavigator.determine()}"/>
</h:form>
</h:body>
</html>