81 lines
11 KiB
HTML
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"><?xml version='1.0' encoding='UTF-8' ?></span>
|
|
<span class="ST0"><!DOCTYPE</span> <span class="ST0">html</span> <span class="ST0">PUBLIC</span> <span class="ST0">"-//W3C//DTD</span> <span class="ST0">XHTML</span> <span class="ST0">1.0</span> <span class="ST0">Transitional//EN"</span> <span class="ST0">"</span><span class="ST2">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</span><span class="ST0">"</span><span class="ST0">></span>
|
|
<span class="ST3"><</span><span class="ST3">html</span> <span class="ST4">xmlns</span><span class="ST4">=</span><span class="ST5">"</span><span class="ST2">http://www.w3.org/1999/xhtml</span><span class="ST5">"</span>
|
|
<span class="ST4">xmlns:h</span><span class="ST4">=</span><span class="ST5">"</span><span class="ST2">http://xmlns.jcp.org/jsf/html</span><span class="ST5">"</span><span class="ST3">></span>
|
|
<span class="ST6"><</span><span class="ST6">h:head</span><span class="ST6">></span>
|
|
<span class="ST3"><</span><span class="ST3">title</span><span class="ST3">></span>Building Sophisticated JSF Views with Components<span class="ST3"></</span><span class="ST3">title</span><span class="ST3">></span>
|
|
<span class="ST6"></</span><span class="ST6">h:head</span><span class="ST6">></span>
|
|
<span class="ST6"><</span><span class="ST6">h:body</span><span class="ST6">></span>
|
|
<span class="ST6"><</span><span class="ST6">h:form</span><span class="ST6">></span>
|
|
<span class="ST3"><</span><span class="ST3">h1</span><span class="ST3">></span>JSF Components, Creating a Sophisticated Page<span class="ST3"></</span><span class="ST3">h1</span><span class="ST3">></span>
|
|
<span class="ST3"><</span><span class="ST3">p</span><span class="ST3">></span>
|
|
The view for this page is made up entirely of JSF standard components.
|
|
<span class="ST3"><</span><span class="ST3">br</span><span class="ST3">/></span>As you can see, there are many useful components bundled with JSF out of the box.
|
|
<span class="ST3"><</span><span class="ST3">br</span><span class="ST3">/></span>
|
|
<span class="ST3"></</span><span class="ST3">p</span><span class="ST3">></span>
|
|
<span class="ST3"><</span><span class="ST3">p</span><span class="ST3">></span>Book Recommendation: Java 7 Recipes
|
|
<span class="ST3"><</span><span class="ST3">br</span><span class="ST3">/></span>
|
|
|
|
<span class="ST6"><</span><span class="ST6">h:graphicImage</span> <span class="ST4">style</span><span class="ST4">=</span><span class="ST5">"</span>max-height: <span class="ST7">300px</span>; max-width: <span class="ST7">300px</span>;<span class="ST5">"</span>
|
|
<span class="ST4">library</span><span class="ST4">=</span><span class="ST5">"images"</span> <span class="ST4">name</span><span class="ST4">=</span><span class="ST5">"picture.png"</span><span class="ST3">/</span><span class="ST6">></span>
|
|
<span class="ST3"><</span><span class="ST3">br</span><span class="ST3">/></span>
|
|
<span class="ST6"><</span><span class="ST6">h:outputLabel</span> <span class="ST4">for</span><span class="ST4">=</span><span class="ST5">"newAuthorFirst"</span> <span class="ST4">value</span><span class="ST4">=</span><span class="ST5">"New Author First Name: "</span><span class="ST3">/</span><span class="ST6">></span>
|
|
<span class="ST6"><</span><span class="ST6">h:inputText</span> <span class="ST4">id</span><span class="ST4">=</span><span class="ST5">"newAuthorFirst"</span> <span class="ST4">value</span><span class="ST4">=</span><span class="ST5">"</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">"</span><span class="ST3">/</span><span class="ST6">></span>
|
|
|
|
<span class="ST3"><</span><span class="ST3">br</span><span class="ST3">/></span>
|
|
<span class="ST6"><</span><span class="ST6">h:outputLabel</span> <span class="ST4">for</span><span class="ST4">=</span><span class="ST5">"newAuthorLast"</span> <span class="ST4">value</span><span class="ST4">=</span><span class="ST5">"New Author Last Name: "</span><span class="ST3">/</span><span class="ST6">></span>
|
|
<span class="ST6"><</span><span class="ST6">h:inputText</span> <span class="ST4">id</span><span class="ST4">=</span><span class="ST5">"newAuthorLast"</span> <span class="ST4">value</span><span class="ST4">=</span><span class="ST5">"</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">"</span><span class="ST3">/</span><span class="ST6">></span>
|
|
<span class="ST3"><</span><span class="ST3">br</span><span class="ST3">/></span>
|
|
<span class="ST6"><</span><span class="ST6">h:inputTextarea</span> <span class="ST4">id</span><span class="ST4">=</span><span class="ST5">"bio"</span> <span class="ST4">cols</span><span class="ST4">=</span><span class="ST5">"20"</span> <span class="ST4">rows</span><span class="ST4">=</span><span class="ST5">"5"</span>
|
|
<span class="ST4">value</span><span class="ST4">=</span><span class="ST5">"</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">"</span><span class="ST3">/</span><span class="ST6">></span>
|
|
<span class="ST3"><</span><span class="ST3">br</span><span class="ST3">/></span><span class="ST3"><</span><span class="ST3">br</span><span class="ST3">/></span>
|
|
<span class="ST6"><</span><span class="ST6">h:commandButton</span> <span class="ST4">id</span><span class="ST4">=</span><span class="ST5">"addAuthor"</span> <span class="ST4">action</span><span class="ST4">=</span><span class="ST5">"</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">"</span>
|
|
<span class="ST4">value</span><span class="ST4">=</span><span class="ST5">"Add Author"</span><span class="ST3">/</span><span class="ST6">></span>
|
|
<span class="ST3"><</span><span class="ST3">br</span><span class="ST3">/></span><span class="ST3"><</span><span class="ST3">br</span><span class="ST3">/></span>
|
|
|
|
<span class="ST6"><</span><span class="ST6">h:dataTable</span> <span class="ST4">id</span><span class="ST4">=</span><span class="ST5">"authorTable"</span>
|
|
<span class="ST4">value</span><span class="ST4">=</span><span class="ST5">"</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">"</span>
|
|
<span class="ST4">var</span><span class="ST4">=</span><span class="ST5">"author"</span><span class="ST6">></span>
|
|
<span class="ST6"><</span><span class="ST6">h:column</span><span class="ST6">></span>
|
|
<span class="ST6"><</span><span class="ST6">h:outputText</span> <span class="ST4">id</span><span class="ST4">=</span><span class="ST5">"authorName"</span>
|
|
<span class="ST4">value</span><span class="ST4">=</span><span class="ST5">"</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">"</span><span class="ST3">/</span><span class="ST6">></span>
|
|
<span class="ST6"></</span><span class="ST6">h:column</span><span class="ST6">></span>
|
|
<span class="ST6"></</span><span class="ST6">h:dataTable</span><span class="ST6">></span>
|
|
|
|
<span class="ST6"><</span><span class="ST6">h:message</span> <span class="ST4">for</span><span class="ST4">=</span><span class="ST5">"addAuthor"</span> <span class="ST3">/</span><span class="ST6">></span>
|
|
|
|
<span class="ST3"></</span><span class="ST3">p</span><span class="ST3">></span>
|
|
|
|
<span class="ST6"></</span><span class="ST6">h:form</span><span class="ST6">></span>
|
|
<span class="ST6"></</span><span class="ST6">h:body</span><span class="ST6">></span>
|
|
<span class="ST3"></</span><span class="ST3">html</span><span class="ST3">></span>
|
|
|
|
</pre></body>
|
|
</html>
|