Ajax Smajax
This commit is contained in:
		@@ -0,0 +1,21 @@
 | 
			
		||||
<?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>
 | 
			
		||||
		Reference in New Issue
	
	Block a user