ASDV-WebDev/Semester 2/Assignments/lab6-f23_CalebFontenot/Printed HTMLs/index.html
2023-09-27 13:31:02 -05:00

81 lines
11 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>index.xhtml</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style type="text/css">
<!--
body {color: #a9b7c6; background-color: #2b2b2b; font-family: monospace}
pre {color: #a9b7c6; background-color: #2b2b2b; font-family: monospace}
table {color: #888888; background-color: #313335; font-family: monospace}
.ST3 {color: #e8bf6a}
.ST6 {color: #e8bf6a; font-family: monospace; font-weight: bold}
.ST7 {color: #6897bb}
.ST1 {color: #505050}
.ST4 {color: #bababa}
.ST2 {color: #287bde}
.ST0 {color: #628fb5}
.ST5 {color: #a5c261}
.expression-language {background-color: #232525}
.highlight-caret-row {background-color: #323232}
-->
</style>
</head>
<body>
<table width="100%"><tr><td align="center">/home/caleb/ASDV-WebDev/Semester 2/Assignments/lab6-f23_CalebFontenot/src/main/webapp/index.xhtml</td></tr></table>
<pre>
<span class="highlight-caret-row">&lt;?xml version=&#39;1.0&#39; encoding=&#39;UTF-8&#39; ?&gt;</span>
<span class="ST0">&lt;!DOCTYPE</span> <span class="ST0">html</span> <span class="ST0">PUBLIC</span> <span class="ST0">&quot;-//W3C//DTD</span> <span class="ST0">XHTML</span> <span class="ST0">1.0</span> <span class="ST0">Transitional//EN&quot;</span> <span class="ST0">&quot;</span><span class="ST2">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</span><span class="ST0">&quot;</span><span class="ST0">&gt;</span>
<span class="ST3">&lt;</span><span class="ST3">html</span> <span class="ST4">xmlns</span><span class="ST4">=</span><span class="ST5">&quot;</span><span class="ST2">http://www.w3.org/1999/xhtml</span><span class="ST5">&quot;</span>
<span class="ST4">xmlns:h</span><span class="ST4">=</span><span class="ST5">&quot;</span><span class="ST2">http://xmlns.jcp.org/jsf/html</span><span class="ST5">&quot;</span><span class="ST3">&gt;</span>
<span class="ST6">&lt;</span><span class="ST6">h:head</span><span class="ST6">&gt;</span>
<span class="ST3">&lt;</span><span class="ST3">title</span><span class="ST3">&gt;</span>Building Sophisticated JSF Views with Components<span class="ST3">&lt;/</span><span class="ST3">title</span><span class="ST3">&gt;</span>
<span class="ST6">&lt;/</span><span class="ST6">h:head</span><span class="ST6">&gt;</span>
<span class="ST6">&lt;</span><span class="ST6">h:body</span><span class="ST6">&gt;</span>
<span class="ST6">&lt;</span><span class="ST6">h:form</span><span class="ST6">&gt;</span>
<span class="ST3">&lt;</span><span class="ST3">h1</span><span class="ST3">&gt;</span>JSF Components, Creating a Sophisticated Page<span class="ST3">&lt;/</span><span class="ST3">h1</span><span class="ST3">&gt;</span>
<span class="ST3">&lt;</span><span class="ST3">p</span><span class="ST3">&gt;</span>
The view for this page is made up entirely of JSF standard components.
<span class="ST3">&lt;</span><span class="ST3">br</span><span class="ST3">/&gt;</span>As you can see, there are many useful components bundled with JSF out of the box.
<span class="ST3">&lt;</span><span class="ST3">br</span><span class="ST3">/&gt;</span>
<span class="ST3">&lt;/</span><span class="ST3">p</span><span class="ST3">&gt;</span>
<span class="ST3">&lt;</span><span class="ST3">p</span><span class="ST3">&gt;</span>Book Recommendation: Java 7 Recipes
<span class="ST3">&lt;</span><span class="ST3">br</span><span class="ST3">/&gt;</span>
<span class="ST6">&lt;</span><span class="ST6">h:graphicImage</span> <span class="ST4">style</span><span class="ST4">=</span><span class="ST5">&quot;</span>max-height: <span class="ST7">300px</span>; max-width: <span class="ST7">300px</span>;<span class="ST5">&quot;</span>
<span class="ST4">library</span><span class="ST4">=</span><span class="ST5">&quot;images&quot;</span> <span class="ST4">name</span><span class="ST4">=</span><span class="ST5">&quot;picture.png&quot;</span><span class="ST3">/</span><span class="ST6">&gt;</span>
<span class="ST3">&lt;</span><span class="ST3">br</span><span class="ST3">/&gt;</span>
<span class="ST6">&lt;</span><span class="ST6">h:outputLabel</span> <span class="ST4">for</span><span class="ST4">=</span><span class="ST5">&quot;newAuthorFirst&quot;</span> <span class="ST4">value</span><span class="ST4">=</span><span class="ST5">&quot;New Author First Name: &quot;</span><span class="ST3">/</span><span class="ST6">&gt;</span>
<span class="ST6">&lt;</span><span class="ST6">h:inputText</span> <span class="ST4">id</span><span class="ST4">=</span><span class="ST5">&quot;newAuthorFirst&quot;</span> <span class="ST4">value</span><span class="ST4">=</span><span class="ST5">&quot;</span><span class="expression-language">#{</span><span class="expression-language">authorController</span><span class="expression-language">.</span><span class="expression-language">newAuthorFirst</span><span class="expression-language">}</span><span class="ST5">&quot;</span><span class="ST3">/</span><span class="ST6">&gt;</span>
<span class="ST3">&lt;</span><span class="ST3">br</span><span class="ST3">/&gt;</span>
<span class="ST6">&lt;</span><span class="ST6">h:outputLabel</span> <span class="ST4">for</span><span class="ST4">=</span><span class="ST5">&quot;newAuthorLast&quot;</span> <span class="ST4">value</span><span class="ST4">=</span><span class="ST5">&quot;New Author Last Name: &quot;</span><span class="ST3">/</span><span class="ST6">&gt;</span>
<span class="ST6">&lt;</span><span class="ST6">h:inputText</span> <span class="ST4">id</span><span class="ST4">=</span><span class="ST5">&quot;newAuthorLast&quot;</span> <span class="ST4">value</span><span class="ST4">=</span><span class="ST5">&quot;</span><span class="expression-language">#{</span><span class="expression-language">authorController</span><span class="expression-language">.</span><span class="expression-language">newAuthorLast</span><span class="expression-language">}</span><span class="ST5">&quot;</span><span class="ST3">/</span><span class="ST6">&gt;</span>
<span class="ST3">&lt;</span><span class="ST3">br</span><span class="ST3">/&gt;</span>
<span class="ST6">&lt;</span><span class="ST6">h:inputTextarea</span> <span class="ST4">id</span><span class="ST4">=</span><span class="ST5">&quot;bio&quot;</span> <span class="ST4">cols</span><span class="ST4">=</span><span class="ST5">&quot;20&quot;</span> <span class="ST4">rows</span><span class="ST4">=</span><span class="ST5">&quot;5&quot;</span>
<span class="ST4">value</span><span class="ST4">=</span><span class="ST5">&quot;</span><span class="expression-language">#{</span><span class="expression-language">authorController</span><span class="expression-language">.</span><span class="expression-language">bio</span><span class="expression-language">}</span><span class="ST5">&quot;</span><span class="ST3">/</span><span class="ST6">&gt;</span>
<span class="ST3">&lt;</span><span class="ST3">br</span><span class="ST3">/&gt;</span><span class="ST3">&lt;</span><span class="ST3">br</span><span class="ST3">/&gt;</span>
<span class="ST6">&lt;</span><span class="ST6">h:commandButton</span> <span class="ST4">id</span><span class="ST4">=</span><span class="ST5">&quot;addAuthor&quot;</span> <span class="ST4">action</span><span class="ST4">=</span><span class="ST5">&quot;</span><span class="expression-language">#{</span><span class="expression-language">authorController</span><span class="expression-language">.</span><span class="expression-language">addAuthor</span><span class="expression-language">}</span><span class="ST5">&quot;</span>
<span class="ST4">value</span><span class="ST4">=</span><span class="ST5">&quot;Add Author&quot;</span><span class="ST3">/</span><span class="ST6">&gt;</span>
<span class="ST3">&lt;</span><span class="ST3">br</span><span class="ST3">/&gt;</span><span class="ST3">&lt;</span><span class="ST3">br</span><span class="ST3">/&gt;</span>
<span class="ST6">&lt;</span><span class="ST6">h:dataTable</span> <span class="ST4">id</span><span class="ST4">=</span><span class="ST5">&quot;authorTable&quot;</span>
<span class="ST4">value</span><span class="ST4">=</span><span class="ST5">&quot;</span><span class="expression-language">#{</span><span class="expression-language">authorController</span><span class="expression-language">.</span><span class="expression-language">authorList</span><span class="expression-language">}</span><span class="ST5">&quot;</span>
<span class="ST4">var</span><span class="ST4">=</span><span class="ST5">&quot;author&quot;</span><span class="ST6">&gt;</span>
<span class="ST6">&lt;</span><span class="ST6">h:column</span><span class="ST6">&gt;</span>
<span class="ST6">&lt;</span><span class="ST6">h:outputText</span> <span class="ST4">id</span><span class="ST4">=</span><span class="ST5">&quot;authorName&quot;</span>
<span class="ST4">value</span><span class="ST4">=</span><span class="ST5">&quot;</span><span class="expression-language">#{</span><span class="expression-language">author</span><span class="expression-language">.</span><span class="expression-language">first</span><span class="expression-language">}</span> <span class="expression-language">#{</span><span class="expression-language">author</span><span class="expression-language">.</span><span class="expression-language">last</span><span class="expression-language">}</span> <span class="expression-language">#{</span><span class="expression-language">author</span><span class="expression-language">.</span><span class="expression-language">bio</span><span class="expression-language">}</span><span class="ST5">&quot;</span><span class="ST3">/</span><span class="ST6">&gt;</span>
<span class="ST6">&lt;/</span><span class="ST6">h:column</span><span class="ST6">&gt;</span>
<span class="ST6">&lt;/</span><span class="ST6">h:dataTable</span><span class="ST6">&gt;</span>
<span class="ST6">&lt;</span><span class="ST6">h:message</span> <span class="ST4">for</span><span class="ST4">=</span><span class="ST5">&quot;addAuthor&quot;</span> <span class="ST3">/</span><span class="ST6">&gt;</span>
<span class="ST3">&lt;/</span><span class="ST3">p</span><span class="ST3">&gt;</span>
<span class="ST6">&lt;/</span><span class="ST6">h:form</span><span class="ST6">&gt;</span>
<span class="ST6">&lt;/</span><span class="ST6">h:body</span><span class="ST6">&gt;</span>
<span class="ST3">&lt;/</span><span class="ST3">html</span><span class="ST3">&gt;</span>
</pre></body>
</html>