[jboss-cvs] jboss-seam/examples/seampay/view ...
Norman Richards
norman.richards at jboss.com
Fri Oct 20 12:51:27 EDT 2006
User: nrichards
Date: 06/10/20 12:51:27
Added: examples/seampay/view index.html screen.css search.xhtml
Log:
initial checkin
Revision Changes Path
1.1 date: 2006/10/20 16:51:27; author: nrichards; state: Exp;jboss-seam/examples/seampay/view/index.html
Index: index.html
===================================================================
<html>
<head>
<meta http-equiv="Refresh" content="0; URL=search.seam">
</head>
</html>
1.1 date: 2006/10/20 16:51:27; author: nrichards; state: Exp;jboss-seam/examples/seampay/view/screen.css
Index: screen.css
===================================================================
a:active, a:link, a:visited {
color: #0D5798;
}
a:hover {
color: #8CAFCD;
}
.menuButtons {
background-color: #FF6600; /*#8CAFCD*/
padding-top: 10px;
padding-bottom: 10px;
}
.menuButtons a {
font-weight: bold;
text-decoration: none;
padding-left: 25px;
padding-right: 25px;
}
.menuButtons a:active, .menuButtons a:link, .menuButtons a:visited {
font-family: Arial,sans-serif;
background-color: #FF6600; /*#8CAFCD*/
color: white;
border-right: 1px solid white;
}
.menuButtons a:hover {
font-family: Arial,sans-serif;
background-color: white;
color: #FF6600; /*#8CAFCD*/
}
.actionButtons {
width: 100%;
text-align: center;
padding-top: 10px;
}
.tableControl {
width: 100%;
text-align: right;
padding-top: 15px;
}
.actionButtons a, .tableControl a {
font-family: Arial,sans-serif;
font-weight: bold;
color: #578BB8;
border: 1px solid #578BB8;
text-decoration: none;
padding: 5px;
margin: 5px;
}
.actionButtons a:hover, .tableControl a:hover {
color: white;
background-color: #578BB8;
margin: 5px;
}
h1 {
font-family: Arial,sans-serif;
color: #578BB8;
font-size: 1.6em;
margin-top: 0;
}
body {
margin: 0px;
font-family: Arial,sans-serif;
color: #616161;
}
.body {
padding: 30px;
}
table {
width: 100%;
}
th {
background-color: #578BB8;
color: white;
font-family: Arial,sans-serif;
padding: 5px;
}
td {
background-color: #F0F0F0;
text-align: center;
}
.narrow {
width: 20%;
}
.wide {
width: 80%;
}
.first td {
background-color: #F0F0F0;
}
.second td {
background-color: white;
}
.dialog
{
padding: 15px;
background-color: #F0F0F0;
margin: 10px;
}
.dialog table
{
width: auto;
}
.message {
border: 1px solid #FFCC00;
padding: 5px;
margin-top: 5px;
margin-bottom: 5px;
background-color: #F0F0F0;
}
.prop {
padding: 5px;
}
.prop .name {
font-weight: bold;
text-align: left;
width: 115px;
}
.prop .value {
text-align: left;
}
.prop .errors {
color: red;
text-align: left;
}
.value input {
width:190px;
}
.errors input {
border: 1px solid red;
}
1.1 date: 2006/10/20 16:51:27; author: nrichards; state: Exp;jboss-seam/examples/seampay/view/search.xhtml
Index: search.xhtml
===================================================================
<!DOCTYPE composition 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:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:s="http://jboss.com/products/seam/taglib"
template="template.xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Seam Pay</title>
<link href="screen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="menuButtons">
<s:link view="/search.xhtml" value="Show Accounts"/>
</div>
<div class="body">
<h1>Account</h1>
<h:messages styleClass="message"/>
<!-- search results -->
<table>
<tr>
<th>Id</th>
<th>Account Number</th>
<th>Balance</th>
</tr>
<ui:repeat value="#{accounts.resultList}" var="account">
<tr>
<td>
<s:link view="/search.xhtml" value="#{account.id}">
<f:param name="id" value="#{account.id}"/>
</s:link>
</td>
<td>#{account.accountNumber}</td>
<td>#{account.balance}</td>
</tr>
</ui:repeat>
</table>
<h:outputText value="No accounts found" rendered="#{empty accounts.resultList}" class="message"/>
<f:subview rendered="#{accountHome.idDefined}">
<h2>Payments from Account #{accountHome.instance.accountNumber}</h2>
<table>
<tr>
<th>Payee</th>
<th>Payment Amount</th>
<th>Created Date</th>
<th>Scheduled Date</th>
<th>Paid?</th>
</tr>
<ui:repeat value="#{accountHome.instance.payments}" var="payment">
<tr>
<td>#{payment.payee}</td>
<td>
<h:outputText value="#{payment.amount}">
<f:convertNumber type="currency" currencySymbol="$"/>
</h:outputText>
</td>
<td>
<h:outputText value="#{payment.createdDate}">
<f:convertDateTime type="date" dateStyle="medium" />
</h:outputText>
</td>
<td>
<h:outputText value="#{payment.paymentDate}">
<f:convertDateTime type="date" dateStyle="medium" />
</h:outputText>
</td>
<td>#{payment.paid}</td>
</tr>
</ui:repeat>
</table>
<h2>Make a payment from account #{accountHome.instance.accountNumber}:</h2>
<h:form>
<s:validateAll>
<table>
<tr>
<td>To:</td>
<td>
<h:inputText id="payee" value="#{newPayment.payee}" required="true"/>
</td>
<td width="60%"><h:message for="payee" /></td>
</tr>
<tr>
<td>Amount:</td>
<td><h:inputText id="amount" value="#{newPayment.amount}" required="true">
<ui:remove>
<f:convertNumber type="currency" currencySymbol="$"/>
</ui:remove>
</h:inputText></td>
<td><h:message for="amount" /></td>
</tr>
<tr>
<td>Date:</td>
<td><h:inputText id="paymentDate" value="#{newPayment.paymentDate}" required="true">
<f:convertDateTime type="date" dateStyle="short"/>
</h:inputText>
</td>
<td><h:message for="paymentDate" /></td>
</tr>
</table>
</s:validateAll>
<h:commandButton value="schedule"
action="#{paymentHome.saveAndSchedule}" />
</h:form>
</f:subview>
</div>
</body>
</html>
More information about the jboss-cvs-commits
mailing list