BAEL-1112 - Apache Tapestry
This commit is contained in:
@@ -1,67 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_4.xsd"
|
||||
>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>${title}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<meta name="description" content=""/>
|
||||
<meta name="author" content=""/>
|
||||
<!-- Fav and touch icons -->
|
||||
<link rel="shortcut icon" href="${asset:context:/favicon.ico}"/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<t:pagelink page="index" class="navbar-brand">app</t:pagelink>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
<t:loop source="pageNames" value="pageName">
|
||||
<t:any element="li" class="prop:classForPageName">
|
||||
<t:pagelink page="prop:pageName">${pageName}</t:pagelink>
|
||||
</t:any>
|
||||
</t:loop>
|
||||
</ul>
|
||||
<span class="navbar-right">
|
||||
<li>
|
||||
<t:pagelink page="login" class="btn btn-default navbar-btn">Sign in</t:pagelink>
|
||||
</li>
|
||||
</span>
|
||||
|
||||
</div><!--/.nav-collapse -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
<t:alerts/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
|
||||
<t:body />
|
||||
|
||||
<hr />
|
||||
|
||||
<footer>
|
||||
<p>© Your Company 2015</p>
|
||||
</footer>
|
||||
|
||||
</div> <!-- /container -->
|
||||
|
||||
</body>
|
||||
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_4.xsd">
|
||||
<head>
|
||||
<title>${title}</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
<t:alerts/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<t:body />
|
||||
<hr />
|
||||
<footer>
|
||||
<p>© Your Company 2015</p>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
<html t:type="layout" title="About apache-tapestry"
|
||||
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_4.xsd"
|
||||
xmlns:p="tapestry:parameter">
|
||||
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
<p>About apache-tapestry application ...</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<t:if test="learn">
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
<p>
|
||||
To learn more go to
|
||||
<a href="http://tapestry.apache.org">Tapestry home</a>
|
||||
and start typing...
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</t:if>
|
||||
|
||||
</html>
|
||||
@@ -1,7 +0,0 @@
|
||||
<html t:type="layout" title="Contact com.baeldung"
|
||||
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_4.xsd"
|
||||
xmlns:p="tapestry:parameter">
|
||||
|
||||
<p>Contact com.baeldung ...</p>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1 @@
|
||||
introMsg=Welcome to the Apache Tapestry Tutorial
|
||||
@@ -0,0 +1,14 @@
|
||||
<html t:type="layout" title="apache-tapestry Home" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_4.xsd">
|
||||
|
||||
<h1>Home! ${appName}</h1>
|
||||
<h2>${message:introMsg}</h2>
|
||||
<h3>${currentTime}</h3>
|
||||
<p><t:eventlink event="callAjax" zone="ajaxZone" class="btn btn-default">Call Ajax</t:eventlink></p>
|
||||
<t:zone t:id="ajaxZone" class="span4"></t:zone>
|
||||
<t:block t:id="ajaxBlock">
|
||||
<hr/>
|
||||
<h2>Rendered through Ajax</h2>
|
||||
<p>The current time is: <strong>${currentTime}</strong></p>
|
||||
</t:block>
|
||||
|
||||
</html>
|
||||
@@ -6,8 +6,8 @@
|
||||
<div class="span4 offset3">
|
||||
<t:form t:id="login">
|
||||
<h2>Please sign in</h2>
|
||||
<t:textfield t:id="email" class="input-block-level" validate="required" placeholder="Email address"/>
|
||||
<t:passwordfield t:id="password" class="input-block-level" validate="required" placeholder="Password"/>
|
||||
<t:textfield t:id="email" class="input-block-level" placeholder="Email address"/>
|
||||
<t:passwordfield t:id="password" class="input-block-level" placeholder="Password"/>
|
||||
<t:submit class="btn btn-large btn-primary" value="Sign in"/>
|
||||
</t:form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user