[jboss-cvs] jboss-seam/examples/booking/view/exp ...
Gavin King
gavin.king at jboss.com
Fri Nov 10 14:07:54 EST 2006
User: gavin
Date: 06/11/10 14:07:54
Modified: examples/booking/view/exp bookingExp.html
confirmExp.html introExp.html loginExp.html
mainExp.html registerExp.html workspaceExp.html
Log:
add DOCTYPES, fix many minor HTML errors
Revision Changes Path
1.6 +5 -16 jboss-seam/examples/booking/view/exp/bookingExp.html
(In the diff below, changes in quantity of whitespace are not shown.)
Index: bookingExp.html
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/booking/view/exp/bookingExp.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- bookingExp.html 28 Sep 2006 01:16:06 -0000 1.5
+++ bookingExp.html 10 Nov 2006 19:07:54 -0000 1.6
@@ -3,9 +3,6 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>In-depth Explanation</title>
<link href="../css/trailblazer_main.css" rel="stylesheet" type="text/css" />
</head>
@@ -18,13 +15,9 @@
<h2>Conversations</h2>
<img src="../img/header_line.gif" />
- <p>
- <center>
<form>
- <INPUT type="button" value="Close Window" onClick="window.close()">
+ <input type="button" value="Close Window" onclick="window.close()"/>
</form>
- </center>
- </p>
<p>
The hotel booking "wizard" is implemented by a conversation-scoped
@@ -40,7 +33,7 @@
To see this working in practice, right click on the "View Hotel" button
in the search screen and select "open in new tab" or "open in new window",
and try working on multiple hotel bookings simultaneously.
- In the <a href="workspaceExp.html"/>next step</a>, we will discuss
+ In the <a href="workspaceExp.html">next step</a>, we will discuss
Seam's built-in components to manage multiple concurrent conversations.
</p>
@@ -152,13 +145,9 @@
</p>
- <p>
- <center>
<form>
- <INPUT type="button" value="Close Window" onClick="window.close()">
+ <input type="button" value="Close Window" onclick="window.close()"/>
</form>
- </center>
- </p>
</div>
</div>
1.5 +5 -16 jboss-seam/examples/booking/view/exp/confirmExp.html
(In the diff below, changes in quantity of whitespace are not shown.)
Index: confirmExp.html
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/booking/view/exp/confirmExp.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- confirmExp.html 28 Sep 2006 01:16:06 -0000 1.4
+++ confirmExp.html 10 Nov 2006 19:07:54 -0000 1.5
@@ -3,9 +3,6 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>In-depth Explanation</title>
<link href="../css/trailblazer_main.css" rel="stylesheet" type="text/css" />
</head>
@@ -18,13 +15,9 @@
<h2>Ending Conversations</h2>
<img src="../img/header_line.gif" />
- <p>
- <center>
<form>
- <INPUT type="button" value="Close Window" onClick="window.close()">
+ <input type="button" value="Close Window" onclick="window.close()"/>
</form>
- </center>
- </p>
<p>
The "Confirm" button is bound to the action method <code>confirm()</code>
@@ -34,7 +27,7 @@
<code class="block">
<h:commandButton value="Confirm"
action="#{hotelBooking.confirm}"
- class="button"/>
+ class="button"/>
</code>
<p>
@@ -101,13 +94,9 @@
}
</code>
- <p>
- <center>
<form>
- <INPUT type="button" value="Close Window" onClick="window.close()">
+ <input type="button" value="Close Window" onclick="window.close()"/>
</form>
- </center>
- </p>
</div>
</div>
1.3 +2 -5 jboss-seam/examples/booking/view/exp/introExp.html
(In the diff below, changes in quantity of whitespace are not shown.)
Index: introExp.html
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/booking/view/exp/introExp.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- introExp.html 25 Jul 2006 17:38:20 -0000 1.2
+++ introExp.html 10 Nov 2006 19:07:54 -0000 1.3
@@ -3,9 +3,6 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>In-depth Explanation</title>
<link href="../css/trailblazer_main.css" rel="stylesheet" type="text/css" />
</head>
@@ -21,7 +18,7 @@
<p>
<center>
<form>
- <INPUT type="button" value="Close Window" onClick="window.close()">
+ <INPUT type="button" value="Close Window" onclick="window.close()">
</form>
</center>
</p>
@@ -64,7 +61,7 @@
<p>
<center>
<form>
- <INPUT type="button" value="Close Window" onClick="window.close()">
+ <INPUT type="button" value="Close Window" onclick="window.close()">
</form>
</center>
</p>
1.4 +13 -24 jboss-seam/examples/booking/view/exp/loginExp.html
(In the diff below, changes in quantity of whitespace are not shown.)
Index: loginExp.html
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/booking/view/exp/loginExp.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- loginExp.html 25 Jul 2006 17:38:20 -0000 1.3
+++ loginExp.html 10 Nov 2006 19:07:54 -0000 1.4
@@ -3,9 +3,6 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>In-depth Explanation</title>
<link href="../css/trailblazer_main.css" rel="stylesheet" type="text/css" />
</head>
@@ -18,13 +15,9 @@
<h2>What happens when you login?</h2>
<img src="../img/header_line.gif" />
- <p>
- <center>
<form>
- <INPUT type="button" value="Close Window" onClick="window.close()">
+ <input type="button" value="Close Window" onclick="window.close()"/>
</form>
- </center>
- </p>
<p>
The login page is defined using pure XHTML with JSF controls.
@@ -37,21 +30,21 @@
</p>
<code class="block">
-<div>
+<div>
<h:outputLabel for="username">Login Name</h:outputLabel>
<h:inputText id="username" value="#{user.username}" />
-</div>
-<div>
+</div>
+<div>
<h:outputLabel for="password">Password</h:outputLabel>
<h:inputSecret id="password" value="#{user.password}" />
-</div>
+</div>
... ...
-<div class="buttonBox">
+<div class="buttonBox">
<h:commandButton action="#{login.login}"
- value="Account Login" class="button" />
-</div>
+ value="Account Login" class="button" />
+</div>
</code>
<p>
@@ -148,13 +141,9 @@
available to other session beans and JSF pages.
</p>
- <p>
- <center>
<form>
- <INPUT type="button" value="Close Window" onClick="window.close()">
+ <input type="button" value="Close Window" onclick="window.close()"/>
</form>
- </center>
- </p>
</div>
</div>
1.5 +36 -47 jboss-seam/examples/booking/view/exp/mainExp.html
(In the diff below, changes in quantity of whitespace are not shown.)
Index: mainExp.html
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/booking/view/exp/mainExp.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- mainExp.html 25 Jul 2006 17:38:20 -0000 1.4
+++ mainExp.html 10 Nov 2006 19:07:54 -0000 1.5
@@ -3,9 +3,6 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>In-depth Explanation</title>
<link href="../css/trailblazer_main.css" rel="stylesheet" type="text/css" />
</head>
@@ -18,13 +15,9 @@
<h2>Stateful components</h2>
<img src="../img/header_line.gif" />
- <p>
- <center>
<form>
- <INPUT type="button" value="Close Window" onClick="window.close()">
+ <input type="button" value="Close Window" onclick="window.close()"/>
</form>
- </center>
- </p>
<p>
The hotel search page is backed by the a stateful session bean named
@@ -33,16 +26,16 @@
</p>
<code class="block">
-<h:inputText value="#{hotelSearch.searchString}" />
+<h:inputText value="#{hotelSearch.searchString}" />
<h:commandButton value="Find Hotels"
action="#{hotelBooking.find}"
- styleClass="button" />
-<h:outputLabel for="pageSize">Maximum results:</h:outputLabel>
-<h:selectOneMenu value="#{hotelSearch.pageSize}" id="pageSize">
- <f:selectItem itemLabel="5" itemValue="5"/>
- <f:selectItem itemLabel="10" itemValue="10"/>
- <f:selectItem itemLabel="20" itemValue="20"/>
-</h:selectOneMenu>
+ styleClass="button" />
+<h:outputLabel for="pageSize">Maximum results:</h:outputLabel>
+<h:selectOneMenu value="#{hotelSearch.pageSize}" id="pageSize">
+ <f:selectItem itemLabel="5" itemValue="5"/>
+ <f:selectItem itemLabel="10" itemValue="10"/>
+ <f:selectItem itemLabel="20" itemValue="20"/>
+</h:selectOneMenu>
</code>
<p>
@@ -129,39 +122,39 @@
</p>
<code class="block">
-<h:outputText value="No Hotels Found" rendered="#{hotels != null and hotels.rowCount==0}"/>
-<h:dataTable value="#{hotels}" var="hot" rendered="#{hotels.rowCount>0}">
- <h:column>
- <f:facet name="header">Name</f:facet>
+<h:outputText value="No Hotels Found" rendered="#{hotels != null and hotels.rowCount==0}"/>
+<h:dataTable value="#{hotels}" var="hot" rendered="#{hotels.rowCount>0}">
+ <h:column>
+ <f:facet name="header">Name</f:facet>
#{hot.name}
- </h:column>
- <h:column>
- <f:facet name="header">Address</f:facet>
+ </h:column>
+ <h:column>
+ <f:facet name="header">Address</f:facet>
#{hot.address}
- </h:column>
- <h:column>
- <f:facet name="header">City, State</f:facet>
+ </h:column>
+ <h:column>
+ <f:facet name="header">City, State</f:facet>
#{hot.city}, #{hot.state}
- </h:column>
- <h:column>
- <f:facet name="header">Zip</f:facet>
+ </h:column>
+ <h:column>
+ <f:facet name="header">Zip</f:facet>
#{hot.zip}
- </h:column>
- <h:column>
- <f:facet name="header">Action</f:facet>
- <s:link value="View Hotel" action="#{hotelBooking.selectHotel}"/>
- </h:column>
-</h:dataTable>
+ </h:column>
+ <h:column>
+ <f:facet name="header">Action</f:facet>
+ <s:link value="View Hotel" action="#{hotelBooking.selectHotel}"/>
+ </h:column>
+</h:dataTable>
</code>
<p>
The "View Hotel" link is the above mentioned command link associated
with each row of the data table. It is implemented
- using a Seam <code><s:Link></code>, which is part of Seam's
+ using a Seam <code><s:Link></code>, which is part of Seam's
extension of JSF controls.
This JSF control let's us call an action, and pass a request parameter, without
- submitting any JSF form. The advantage of <code><s:link></code> is that,
- unlike a standard JSF <code><h:commandLink></code>, there is no JavaScript
+ submitting any JSF form. The advantage of <code><s:link></code> is that,
+ unlike a standard JSF <code><h:commandLink></code>, there is no JavaScript
used, so "open link in new tab" works seamlessly.
</p>
<p>
@@ -192,13 +185,9 @@
}
</code>
- <p>
- <center>
<form>
- <INPUT type="button" value="Close Window" onClick="window.close()">
+ <input type="button" value="Close Window" onclick="window.close()"/>
</form>
- </center>
- </p>
</div>
</div>
1.4 +31 -42 jboss-seam/examples/booking/view/exp/registerExp.html
(In the diff below, changes in quantity of whitespace are not shown.)
Index: registerExp.html
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/booking/view/exp/registerExp.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- registerExp.html 14 Jul 2006 05:28:45 -0000 1.3
+++ registerExp.html 10 Nov 2006 19:07:54 -0000 1.4
@@ -3,9 +3,6 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>In-depth Explanation</title>
<link href="../css/trailblazer_main.css" rel="stylesheet" type="text/css" />
</head>
@@ -18,13 +15,9 @@
<h2>What happens in the registration process?</h2>
<img src="img/header_line.gif" />
- <p>
- <center>
<form>
- <INPUT type="button" value="Close Window" onClick="window.close()">
+ <input type="button" value="Close Window" onclick="window.close()"/>
</form>
- </center>
- </p>
<p>
The register.xhtml JSF form captures the user input for new account
@@ -34,35 +27,35 @@
</p>
<code class="block">
-<s:validateAll>
-<div class="entry">
- <div class="label">
- <h:outputLabel for="username">Username:</h:outputLabel>
- </div>
- <div class="input">
- <h:inputText id="username" value="#{user.username}"/><br/>
- <span class="errors"><h:message for="username" /></span>
- </div>
-</div>
-<div class="entry">
- <div class="label">
- <h:outputLabel for="name">Real Name:</h:outputLabel>
- </div>
- <div class="input">
- <h:inputText id="name" value="#{user.name}" /><br/>
- <span class="errors"><h:message for="name" /></span>
- </div>
-</div>
-</s:validateAll>
+<s:validateAll>
+<div class="entry">
+ <div class="label">
+ <h:outputLabel for="username">Username:</h:outputLabel>
+ </div>
+ <div class="input">
+ <h:inputText id="username" value="#{user.username}"/><br/>
+ <span class="errors"><h:message for="username" /></span>
+ </div>
+</div>
+<div class="entry">
+ <div class="label">
+ <h:outputLabel for="name">Real Name:</h:outputLabel>
+ </div>
+ <div class="input">
+ <h:inputText id="name" value="#{user.name}" /><br/>
+ <span class="errors"><h:message for="name" /></span>
+ </div>
+</div>
+</s:validateAll>
... ...
- <div class="input">
+ <div class="input">
<h:commandButton value="Register"
action="#{register.register}"
- class="button"/>
- <h:commandButton value="Cancel" action="login" class="button"/>
- </div>
+ class="button"/>
+ <h:commandButton value="Cancel" action="login" class="button"/>
+ </div>
</code>
<p>
@@ -81,7 +74,7 @@
The validation conditions are specified on the entity bean classes
those input fields map to (e.g., here the validation condition is
on the <code>User</code> class, see later).
- This JSF form also includes <code><h:message></code> tags that
+ This JSF form also includes <code><h:message></code> tags that
will display the results of any JSF validation failures.
</p>
@@ -224,13 +217,9 @@
messages to the user, even when redirect after post is used.
</p>
- <p>
- <center>
<form>
- <INPUT type="button" value="Close Window" onClick="window.close()">
+ <input type="button" value="Close Window" onclick="window.close()"/>
</form>
- </center>
- </p>
</div>
</div>
1.2 +21 -26 jboss-seam/examples/booking/view/exp/workspaceExp.html
(In the diff below, changes in quantity of whitespace are not shown.)
Index: workspaceExp.html
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/booking/view/exp/workspaceExp.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- workspaceExp.html 31 Mar 2006 11:49:54 -0000 1.1
+++ workspaceExp.html 10 Nov 2006 19:07:54 -0000 1.2
@@ -3,9 +3,6 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>In-depth Explanation</title>
<link href="../css/trailblazer_main.css" rel="stylesheet" type="text/css" />
</head>
@@ -21,7 +18,7 @@
<p>
<center>
<form>
- <INPUT type="button" value="Close Window" onClick="window.close()">
+ <INPUT type="button" value="Close Window" onclick="window.close()">
</form>
</center>
</p>
@@ -33,22 +30,22 @@
</p>
<code class="block">
-<h:dataTable value="#{conversationList}" var="entry">
- <h:column>
- <h:commandLink action="#{entry.select}" value="#{entry.description}"/>
+<h:dataTable value="#{conversationList}" var="entry">
+ <h:column>
+ <h:commandLink action="#{entry.select}" value="#{entry.description}"/>
- <h:outputText value="[current]" rendered="#{entry.current}"/>
- </h:column>
- <h:column>
- <h:outputText value="#{entry.startDatetime}">
- <f:convertDateTime type="time" pattern="hh:mm"/>
- </h:outputText>
+ <h:outputText value="[current]" rendered="#{entry.current}"/>
+ </h:column>
+ <h:column>
+ <h:outputText value="#{entry.startDatetime}">
+ <f:convertDateTime type="time" pattern="hh:mm"/>
+ </h:outputText>
-
- <h:outputText value="#{entry.lastDatetime}">
- <f:convertDateTime type="time" pattern="hh:mm"/>
- </h:outputText>
- </h:column>
-</h:dataTable>
+ <h:outputText value="#{entry.lastDatetime}">
+ <f:convertDateTime type="time" pattern="hh:mm"/>
+ </h:outputText>
+ </h:column>
+</h:dataTable>
</code>
<p>
@@ -58,11 +55,11 @@
</p>
<code class="block">
-<pages>
- <page view-id="/hotel.xhtml">View hotel: #{hotel.name}</page>
- <page view-id="/book.xhtml">Book hotel: #{hotel.name}</page>
- <page view-id="/confirm.xhtml">Confirm: #{booking.description}</page>
-</pages>
+<pages>
+ <page view-id="/hotel.xhtml">View hotel: #{hotel.name}</page>
+ <page view-id="/book.xhtml">Book hotel: #{hotel.name}</page>
+ <page view-id="/confirm.xhtml">Confirm: #{booking.description}</page>
+</pages>
</code>
<p>
@@ -71,11 +68,9 @@
</p>
<p>
- <center>
<form>
- <INPUT type="button" value="Close Window" onClick="window.close()">
+ <input type="button" value="Close Window" onclick="window.close()"/>
</form>
- </center>
</p>
</div>
More information about the jboss-cvs-commits
mailing list