[jboss-cvs] jboss-seam/seam-gen/view-scaffold ...
Gavin King
gavin.king at jboss.com
Sat Oct 28 13:56:03 EDT 2006
User: gavin
Date: 06/10/28 13:56:03
Added: seam-gen/view-scaffold index.html first-page.xhtml
home.xhtml submit-order.xhtml registered.xhtml
second-page.xhtml third-page.xhtml register.xhtml
Log:
add seam-gen to CVS
Revision Changes Path
1.1 date: 2006/10/28 17:56:03; author: gavin; state: Exp;jboss-seam/seam-gen/view-scaffold/index.html
Index: index.html
===================================================================
<html>
<head>
<meta http-equiv="Refresh" content="0; URL=home.seam">
</head>
</html>
1.1 date: 2006/10/28 17:56:03; author: gavin; state: Exp;jboss-seam/seam-gen/view-scaffold/first-page.xhtml
Index: first-page.xhtml
===================================================================
<!DOCTYPE html 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:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<body>
<ui:composition template="/WEB-INF/layout/template.xhtml">
<ui:define name="header">
<ui:include src="/WEB-INF/layout/header.xhtml" />
</ui:define>
<ui:define name="body">
<f:view>
<h:form>
<h2>EJB3</h2>
<p>Enterprise Java Beans (EJB) 3.0 is a deep overhaul and
simplification of the EJB specification. EJB 3.0's goals are to
simplify development, facilitate test driven development, and focus
more on writing plain old java objects (POJOs) rather than on
complex EJB APIs. EJB 3.0 has fully embraced Java Annotations
introduced in JDK 5.0 and also simplifies the API for CMP entity
beans by using Hibernate as the EJB 3.0 Java Persistence engine.</p>
<div class="formField"><h:selectBooleanCheckbox
value="#{flowBean.continueFlow}" />Continue Flow?</div>
<div class="formField"><h:commandButton styleClass="formButton"
type="submit" value="Next"
action="#{simpleFlow.continueFlowDecision}" />
</div>
</h:form>
</f:view>
</ui:define>
<ui:define name="footer">
<ui:include src="/WEB-INF/layout/footer.xhtml" />
</ui:define>
</ui:composition>
</body>
</html>
1.1 date: 2006/10/28 17:56:03; author: gavin; state: Exp;jboss-seam/seam-gen/view-scaffold/home.xhtml
Index: home.xhtml
===================================================================
<!DOCTYPE html 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:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf"
xmlns:h="http://java.sun.com/jsf/html">
<body>
<ui:composition template="/WEB-INF/layout/template.xhtml">
<ui:define name="header">
<ui:include src="/WEB-INF/layout/header.xhtml" />
</ui:define>
<ui:define name="body">
<h1>Seam Generated Application</h1>
<p>This scaffold Seam application contains:</p>
<ul>
<li>Facelets - with templating</li>
<li>BPM - with working source/config files for a sample jBPM workflow</li>
<li>Pageflow - with working source/config files for a sample pageflow</li>
<li>Database - with working ejb3/config files for a sample DB insert</li>
<li>Embedded EJB - with sample testng tests</li>
<li>i18n - With populated properties file for english</li>
<li>CSS - stylesheet with sample styles</li>
</ul>
<p>For an empty shell application, "ant create-project"</p>
<ul>
<li>Facelets - with an empty home page</li>
<li>Datasource - configured for HSQL with commented mySQL entries</li>
<li>Embedded EJB - For testng unit tests</li>
<li>i18n - With an empty properties file for english</li>
<li>CSS - empty stylesheet</li>
</ul>
<h:form>
<div align="center">
<h:commandButton styleClass="formButton" action="register" value="Registeration Form"/>
<h:commandButton styleClass="formButton" type="submit"
value="Start Pageflow"
action="#{simpleFlow.gotoFirstPage}"/>
<h:commandButton styleClass="formButton"
value="Order Submission Process"
action="order-submit"/>
</div>
</h:form>
</ui:define>
<ui:define name="footer">
<ui:include src="/WEB-INF/layout/footer.xhtml" />
</ui:define>
</ui:composition>
</body>
</html>
1.1 date: 2006/10/28 17:56:03; author: gavin; state: Exp;jboss-seam/seam-gen/view-scaffold/submit-order.xhtml
Index: submit-order.xhtml
===================================================================
<!DOCTYPE html 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:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<body>
<ui:composition template="/WEB-INF/layout/template.xhtml">
<ui:define name="header">
<ui:include src="/WEB-INF/layout/header.xhtml" />
</ui:define>
<ui:define name="body">
<h:form>
<div>
<h2>Shopping Cart</h2>
</div>
<div>
<h:dataTable value="#{cartBean.items}" var="item">
<h:column>
<h:outputText value="#{item}" />
</h:column>
</h:dataTable>
</div>
<div>
<h:commandButton styleClass="formButton"
type="submit"
value="Submit Order"
action="#{shoppingAction.submitOrder}"/>
</div>
</h:form>
</ui:define>
<ui:define name="footer">
<ui:include src="/WEB-INF/layout/footer.xhtml" />
</ui:define>
</ui:composition>
</body>
</html>
1.1 date: 2006/10/28 17:56:03; author: gavin; state: Exp;jboss-seam/seam-gen/view-scaffold/registered.xhtml
Index: registered.xhtml
===================================================================
<!DOCTYPE html 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:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<body>
<ui:composition template="/WEB-INF/layout/template.xhtml">
<ui:define name="header">
<ui:include src="/WEB-INF/layout/header.xhtml" />
</ui:define>
<ui:define name="body">
<f:view>
<h2>Registration Confirmation</h2>
<div>
Welcome, <h:outputText value="#{user.name}"/>,
you are successfully registered as <h:outputText value="#{user.username}"/>.
</div>
</f:view>
</ui:define>
<ui:define name="footer">
<ui:include src="/WEB-INF/layout/footer.xhtml" />
</ui:define>
</ui:composition>
</body>
</html>
1.1 date: 2006/10/28 17:56:03; author: gavin; state: Exp;jboss-seam/seam-gen/view-scaffold/second-page.xhtml
Index: second-page.xhtml
===================================================================
<!DOCTYPE html 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:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<body>
<ui:composition template="/WEB-INF/layout/template.xhtml">
<ui:define name="header">
<ui:include src="/WEB-INF/layout/header.xhtml" />
</ui:define>
<ui:define name="body">
<f:view>
<h:form>
<h2>JBoss jBPM</h2>
<p>JBoss jBPM is a powerful workflow, BPM, orchestration (BPEL) and
web application pageflow platform that enables the creation of
business processes that coordinate between people, applications and
services. Designed for the mass market as well as supporting
enterprise scale applications, jBPM opens up process automation to a
much wider market. With its modular architecture, JBoss jBPM
combines easy development of workflow applications with a flexible
and scalable process engine. The JBoss jBPM process designer
graphically represents the business process steps in order to
facilitate a strong link between the business analyst and the
technical developer.</p>
<h:commandButton styleClass="formButton" type="submit"
value="Continue Pageflow" action="#{simpleFlow.gotoThirdPage}" />
</h:form>
</f:view>
</ui:define>
<ui:define name="footer">
<ui:include src="/WEB-INF/layout/footer.xhtml" />
</ui:define>
</ui:composition>
</body>
</html>
1.1 date: 2006/10/28 17:56:03; author: gavin; state: Exp;jboss-seam/seam-gen/view-scaffold/third-page.xhtml
Index: third-page.xhtml
===================================================================
<!DOCTYPE html 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:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<body>
<ui:composition template="/WEB-INF/layout/template.xhtml">
<ui:define name="header">
<ui:include src="/WEB-INF/layout/header.xhtml" />
</ui:define>
<ui:define name="body">
<f:view>
<h:form>
<h2>JBoss Seam</h2>
<p>JBoss Seam is a powerful new application framework to build next
generation Web 2.0 applications by unifying and integrating popular
service oriented architecture (SOA) technologies like Asynchronous
JavaScript and XML(AJAX), Java Serve Faces(JSF), Enterprise Java
Beans(EJB3), Java Portlets and Business Process Management(BPM) and
workflow. Seam has been designed from the ground up to eliminate
complexity at the architecture and the API level. It enables
developers to assemble complex web applications with simple
annotated Plain Old Java Objects (POJOs), componentized UI widgets
and very little XML. The simplicity of Seam 1.0 will enable easy
integration with the JBoss Enterprise Service Bus (ESB) and Java
Business Integration (JBI) in the future.</p>
<h:commandButton styleClass="formButton" value="Finish"
action="home" />
</h:form>
</f:view>
</ui:define>
<ui:define name="footer">
<ui:include src="/WEB-INF/layout/footer.xhtml" />
</ui:define>
</ui:composition>
</body>
</html>
1.1 date: 2006/10/28 17:56:03; author: gavin; state: Exp;jboss-seam/seam-gen/view-scaffold/register.xhtml
Index: register.xhtml
===================================================================
<!DOCTYPE html 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:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<body>
<ui:composition template="/WEB-INF/layout/template.xhtml">
<ui:define name="header">
<ui:include src="/WEB-INF/layout/header.xhtml" />
</ui:define>
<ui:define name="body">
<f:view>
<h2>Registration Form</h2>
<h:form>
<table border="0">
<tr>
<td>Username</td>
<td><h:inputText value="#{user.username}" /></td>
</tr>
<tr>
<td>Real Name</td>
<td><h:inputText value="#{user.name}" /></td>
</tr>
<tr>
<td>Password</td>
<td><h:inputSecret value="#{user.password}" /></td>
</tr>
</table>
<font color="red"><h:messages /></font>
<h:commandButton styleClass="formButton" type="submit" value="Register"
action="#{register.register}" />
</h:form>
</f:view>
</ui:define>
<ui:define name="footer">
<ui:include src="/WEB-INF/layout/footer.xhtml" />
</ui:define>
</ui:composition>
</body>
</html>
More information about the jboss-cvs-commits
mailing list