My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<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/grids/fluid_grid.css"/>
<link media="screen" type="text/css" rel="stylesheet" href="#{contextPath}/css/main.css"/>
<link media="screen" type="text/css" rel="stylesheet" href="#{contextPath}/css/redmond/jquery-ui-1.8.13.custom.css"/>
<link media="screen" type="text/css" rel="stylesheet" href="#{contextPath}/css/samples.css"/>
<title>#{samplesMsg.compute_title}</title>
</head>
<body class='sample-demos'>
<div id='awa-hdr'>
<div id='awa-top'>
<ul>
<li id='help'><a href="http://code.google.com/p/ada-asf" 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>
</div>
<div id='awa-page' class="container_12">
<ui:include src="/WEB-INF/layouts/header.xhtml"/>
<div class="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="grid_12 ui-tabs-panel">
<h1>#{samplesMsg.compute_message}</h1>

<h:form id='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>
</div>
<ui:include src="/WEB-INF/layouts/footer.xhtml">
<ui:param name="source_file" value="compute.xhtml"/>
</ui:include>
</body>
</html>
</f:view>

Change log

r855 by Stephane.Carrez on May 11, 2012   Diff
Add the footer for the cylinder volume
example
(we don't use the demo layout to keep that
demo as simple as possible)
Go to: 
Project members, sign in to write a code review

Older revisions

r841 by Stephane.Carrez on May 8, 2012   Diff
Localize several messages from the
demo application
Translate in French
r808 by Stephane.Carrez on May 5, 2012   Diff
Add a link to the source file at
bottom of each page
r685 by Stephane.Carrez on Feb 5, 2012   Diff
Refactor the examples to have a Demo
top level entry and several demo
tabs
All revisions of this file

File info

Size: 3585 bytes, 82 lines
Powered by Google Project Hosting