Merge remote-tracking branch 'origin/julian4'

This commit is contained in:
Johannes Theiner 2019-05-17 10:18:57 +02:00
commit 533a6fb202
4 changed files with 204 additions and 1 deletions

View File

@ -0,0 +1,23 @@
package de.hsel.itech.jsf;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
//JSF Bean for bookinfo
@ManagedBean(name="bookInfo", eager=true)
@SessionScoped
public class BookInfo {
private String test;
BookInfo(){
test = "test String";
}
public String getTest(){
return test;
}
public void setTest(String str){
test = str;
}
}

View File

@ -0,0 +1,24 @@
<?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"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:f="http://xmlns.jcp.org/jsf/core">
<f:view>
<ui:composition template="template.xhtml">
<ui:define name="content">
<h:outputLabel value="Hello, world"/>
<h:outputLabel value="test: #{bookInfo.test}"/>
<h:messages />
</ui:define>
</ui:composition>
</f:view>
</html>

View File

@ -0,0 +1,156 @@
<?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"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:f="http://xmlns.jcp.org/jsf/core">
<head>
<link rel="stylesheet" href="css/m-light.css" id="pagestyle"/>
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Libre+Baskerville:400,400i,700,700i%7CSource+Code+Pro:400,400i,600"/>
<meta name="theme-color" content="#cb4b16" id="pagecolor"/>
<link href="css/custom.css" rel="stylesheet"/>
<link href="css/slick-theme.css" rel="stylesheet"/>
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css"/>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"/>
<title>Amazon Light</title>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<header>
<nav id="navigation">
<div class="m-container">
<div class="m-row">
<a href="" id="m-navbar-brand" class="m-col-t-9 m-col-m-none m-left-m"/>
<a id="m-navbar-show" href="#navigation" title="Show navigation"
class="m-col-t-3 m-hide-m m-text-right"/>
<a id="m-navbar-hide" href="#" title="Hide navigation" class="m-col-t-3 m-hide-m m-text-right"/>
<div id="m-navbar-collapse" class="m-col-t-12 m-show-m m-col-m-none m-right-m">
<div class="m-row">
<ol class="m-col-t-6 m-col-m-none">
<li><a href="#">Katalog</a></li>
<li><a href="#">(1) Warenkorb</a></li>
</ol>
<ol class="m-col-t-6 m-col-m-none" start="4">
<li>
<a href="#">Mein Account</a>
<ol>
<li><a href="#">Meine Bestellungen</a></li>
<li><a href="#">Adressen und Konten</a></li>
<li><a href="#">Abmelden</a></li>
</ol>
</li>
</ol>
<ol class="m-col-t-6 m-col-m-none" start="6">
<li>
<a href="#"><i class="fas fa-ellipsis-v"/></a>
<ol>
<li>Dark Theme
<div class="onoffswitch">
<input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox"
id="myonoffswitch" onchange="changeTheme()"/>
<label class="onoffswitch-label" for="myonoffswitch">
<span class="onoffswitch-inner"/>
<span class="onoffswitch-switch"/>
</label>
</div>
</li>
</ol>
</li>
</ol>
</div>
</div>
</div>
</div>
</nav>
</header>
<ui:insert name="content"/>
<footer>
<nav>
<div class="m-container">
<div class="m-row">
<div class="m-col-s-3 m-col-t-6">
<h3>Hilfe</h3>
<ul>
<li><a href="#">FAQ</a></li>
<li><a href="#">Rückgabe</a></li>
</ul>
</div>
<div class="m-col-s-3 m-col-t-6">
<h3>Zahlung</h3>
<ul>
<li><a href="#">Kreditkarten</a></li>
<li><a href="#">Gutscheine</a></li>
<li><a href="#">Bankeinzug</a></li>
</ul>
</div>
<div class="m-clearfix-t"></div>
<div class="m-col-s-3 m-col-t-6">
<h3>Amazon light</h3>
<ul>
<li><a href="#">Über</a></li>
<li><a href="#">Kontakt</a></li>
<li><a href="#">Presse</a></li>
<li><a href="#">Jobs</a></li>
</ul>
</div>
<div class="m-col-s-3 m-col-t-6">
<h3>Rechtliches</h3>
<ul>
<li><a href="https://joethei.xyz/imprint">Impressum</a></li>
<li><a href="https://joethei.xyz/privacy">Datenschutz</a></li>
<li><a href="https://joethei.xyz/disclaimer">Haftung</a></li>
</ul>
</div>
</div>
<div class="m-row">
<div class="m-col-l-10 m-push-l-1">
<p>Amazon light. Copyright &copy; <a href="#">B1</a>,
2019. All rights reserved.</p>
</div>
</div>
</div>
</nav>
</footer>
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"/>
<script type="text/javascript" src="//code.jquery.com/jquery-migrate-1.2.1.min.js"/>
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"/>
<script>
function changeTheme() {
if (document.getElementById('myonoffswitch').checked) {
swapStyleSheet("dark", "#22272e");
} else {
swapStyleSheet("light", "#cb4b16");
}
}
function swapStyleSheet(sheet, color) {
document.getElementById("pagestyle").setAttribute("href", "css/m-" + sheet + ".css");
document.getElementById("pagecolor").setAttribute("content", color);
}
$(document).ready(function () {
$('.slider').slick({
infinite: true,
slidesToShow: 6,
slidesToScroll: 3
})
});
</script>
</body>
</html>