-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcompute.xhtml
More file actions
84 lines (80 loc) · 3.52 KB
/
Copy pathcompute.xhtml
File metadata and controls
84 lines (80 loc) · 3.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<f:view contentType="text/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html">
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<link media="screen" type="text/css" rel="stylesheet" href="#{contextPath}/css/grids/reset.css"/>
<link media="screen" type="text/css" rel="stylesheet" href="#{contextPath}/css/main.css"/>
<link media="screen" type="text/css" rel="stylesheet" href="#{jquery.uiCssPath}/jquery-ui.structure.css"/>
<link media="screen" type="text/css" rel="stylesheet" href="#{jquery.uiCssPath}/jquery-ui.theme.css"/>
<link media="screen" type="text/css" rel="stylesheet" href="#{contextPath}/css/samples.css"/>
<title>#{samplesMsg.compute_title}</title>
</head>
<body class='sample-demos'>
<header id='awa-hdr'>
<div id='awa-top'>
<ul>
<li id='help'><a href="https://github.com/stcarrez/ada-asf/wiki" title="#{samplesMsg.layout_help_title}">
#{samplesMsg.layout_help_label}
</a></li>
<li>|</li>
<li id='settings'><a href="#{contextPath}/statistics.xml" title="#{samplesMsg.layout_statistics_title}">
#{samplesMsg.layout_statistics_label}
</a></li>
</ul>
</div>
</header>
<main id='awa-page'>
<ui:include src="/WEB-INF/layouts/header.xhtml"/>
<div class="awa-grid-12 left ui-tabs ui-widget ui-widget-content ui-corner-all">
<ui:include src="/WEB-INF/layouts/demo-tabs.xhtml">
<ui:param name="tab" value="volume"/>
</ui:include>
<div id='content' class="awa-grid-12 ui-tabs-panel">
<h1>#{samplesMsg.compute_message}</h1>
<h:form id='compute' validity='60'>
<h:message for='compute'/>
<dl>
<dt>#{samplesMsg.compute_height_label}</dt>
<dd>
<h:inputText id='height' size='10' value='#{compute.height}'>
<f:converter converterId="float" />
</h:inputText>
<h:message for='height'/>
</dd>
<dt>#{samplesMsg.compute_radius_label}</dt>
<dd>
<h:inputText id='radius' size='10' value='#{compute.radius}'>
<f:converter converterId="float"/>
</h:inputText>
<h:message for='radius'/>
</dd>
<dt>
</dt>
<dd>
<h:commandButton id='run' value='#{samplesMsg.compute_button}' action="#{compute.run}"/>
</dd>
</dl>
</h:form>
<h:panelGroup rendered="#{not empty compute.volume}">
<h2>#{samplesMsg.compute_result_message}
<h:outputText value="#{compute.volume}">
<f:converter converterId="float"/>
</h:outputText>
</h2>
</h:panelGroup>
</div>
</div>
<div id="awa-clfooter"></div>
</main>
<ui:include src="/WEB-INF/layouts/footer.xhtml">
<ui:param name="source_file" value="compute.xhtml"/>
</ui:include>
</body>
</html>
</f:view>