push changes

This commit is contained in:
2023-09-08 14:45:42 -05:00
parent 1c4ffa9a2a
commit f3d65894e2
84 changed files with 1890 additions and 59 deletions

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scene Scope="Project" version="2">
<Scope Scope="Faces Configuration Only"/>
<Scope Scope="Project"/>
<Scope Scope="All Faces Configurations"/>
</Scene>

View File

@@ -7,6 +7,7 @@ package edu.slcc.asdv.beans;
import jakarta.inject.Named;
import jakarta.enterprise.context.RequestScoped;
import java.io.Serializable;
/**
*
@@ -14,7 +15,7 @@ import jakarta.enterprise.context.RequestScoped;
*/
@Named(value="simpleController")
@RequestScoped
public class SimpleController {
public class SimpleController implements Serializable {
private String message;

View File

@@ -0,0 +1,23 @@
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/JSF/JSFManagedBean.java to edit this template
*/
package edu.slcc.asdv.beans;
import jakarta.inject.Named;
import jakarta.enterprise.context.Dependent;
/**
*
* @author caleb
*/
@Named(value="simpleController2")
@Dependent
public class SimpleController2 extends SimpleController {
/** Creates a new instance of SimpleController2 */
public SimpleController2() {
}
}

View File

@@ -49,5 +49,9 @@
</navigation-case>
</navigation-rule>
<managed-bean>
<managed-bean-name>messageHandler</managed-bean-name>
<managed-bean-class>edu.slcc.asdv.beans.SimpleController2</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
</faces-config>

View File

@@ -6,6 +6,7 @@
<title>Facelet Title</title>
</h:head>
<h:body>
#{simpleController} <br/>
<h1>Error Message Page</h1>
<h2>Message is too short</h2>
</h:body>

View File

@@ -7,7 +7,8 @@
</h:head>
<h:body>
<h:form>
<h:commandLink value = "Go to start-page-1" action = "start-page-1"></h:commandLink>
<h:commandLink value = "Go to start-page-1" action = "start-page-1"></h:commandLink> <br/>
<h:commandLink value = "Go to start-page-2" action = "start-page-2"></h:commandLink>
</h:form>
</h:body>
</html>

View File

@@ -6,6 +6,7 @@
<title>Result Page 1</title>
</h:head>
<h:body>
#{simpleController} <br/>
<h1>Result Page 1</h1>
<h2>Your Message: "#{simpleController.getMessage()}"</h2>
</h:body>

View File

@@ -6,6 +6,7 @@
<title>Result Page 2</title>
</h:head>
<h:body>
#{simpleController} <br/>
<h1>Result Page 2</h1>
<h2>Your Message: "#{simpleController.getMessage()}"</h2>
</h:body>

View File

@@ -6,6 +6,7 @@
<title>Result Page 3</title>
</h:head>
<h:body>
#{simpleController} <br/>
<h1>Result Page 3</h1>
<h2>Your Message: "#{simpleController.getMessage()}"</h2>
</h:body>

View File

@@ -7,6 +7,7 @@
</h:head>
<h:body>
<h:form>
#{simpleController} <br/>
Your Message:
<h:inputText value="#{simpleController.message}"></h:inputText>
<br/>

View File

@@ -0,0 +1,17 @@
<?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">
<h:head>
<title>Facelet Title</title>
</h:head>
<h:body>
<h:form>
#{messageHandler} <br/>
Your Message:
<h:inputText value="#{messageHandler.message}"></h:inputText>
<br/>
<h:commandButton value="Show Results" action ="#{messageHandler.doNavigation}"></h:commandButton>
</h:form>
</h:body>
</html>