[jboss-cvs] jboss-seam/seam-gen/view ...
Gavin King
gavin.king at jboss.com
Mon Nov 6 15:13:47 EST 2006
User: gavin
Date: 06/11/06 15:13:47
Added: seam-gen/view action.xhtml conversation.xhtml
edit.xhtml form.xhtml list.xhtml page.xhtml
Log:
use ant replace instead of freemarker
Revision Changes Path
1.1 date: 2006/11/06 20:13:47; author: gavin; state: Exp;jboss-seam/seam-gen/view/action.xhtml
Index: action.xhtml
===================================================================
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition 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"
template="layout/template.xhtml">
<ui:define name="body">
<h1>@pageName@</h1>
<p>Generated action page</p>
<h:messages globalOnly="true" styleClass="message"/>
<h:form id="@componentName@">
<div>
<h:commandButton id="@methodName@" value="@methodName@!"
action="#{@componentName at .@methodName@}"/>
</div>
</h:form>
</ui:define>
</ui:composition>
1.1 date: 2006/11/06 20:13:47; author: gavin; state: Exp;jboss-seam/seam-gen/view/conversation.xhtml
Index: conversation.xhtml
===================================================================
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition 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"
template="layout/template.xhtml">
<ui:define name="body">
<h1>@pageName@</h1>
<p>Generated conversation page.</p>
<h:messages globalOnly="true" styleClass="message"/>
<div class="dialog">
<div class="prop">
<span class="name">Value</span>
<span class="value">#{@componentName at .value}</span>
</div>
</div>
<h:form id="@componentName@">
<div class="actionButtons">
<h:commandButton id="begin" value="Begin"
action="#{@componentName at .begin}"/>
<h:commandButton id="inc" value="Increment"
action="#{@componentName at .increment}"/>
<h:commandButton id="end" value="End"
action="#{@componentName at .end}"/>
</div>
</h:form>
</ui:define>
</ui:composition>
1.1 date: 2006/11/06 20:13:47; author: gavin; state: Exp;jboss-seam/seam-gen/view/edit.xhtml
Index: edit.xhtml
===================================================================
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition 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"
template="layout/template.xhtml">
<ui:define name="body">
<h1>@pageName@</h1>
<p>Generated edit page</p>
<h:messages globalOnly="true" styleClass="message"/>
<h:form id="@componentName@">
<div class="dialog">
<s:validateAll>
<div class="prop">
<span class="name">Name</span>
<span class="value">
<s:decorate>
<h:inputText id="name" required="true"
value="#{@homeName at .instance.name}"/>
</s:decorate>
</span>
</div>
</s:validateAll>
</div>
<div class="actionButtons">
<h:commandButton id="save" value="Save"
action="#{@homeName at .persist}"
rendered="#{!@homeName at .managed}"/>
<h:commandButton id="update" value="Save"
action="#{@homeName at .update}"
rendered="#{@homeName at .managed}"/>
<h:commandButton id="delete" value="Delete"
action="#{@homeName at .remove}"
rendered="#{@homeName at .managed}"/>
<s:link id="done" value="Done" linkStyle="button"
propagation="end" view="/@masterPageName at .xhtml"/>
</div>
</h:form>
</ui:define>
</ui:composition>
1.1 date: 2006/11/06 20:13:47; author: gavin; state: Exp;jboss-seam/seam-gen/view/form.xhtml
Index: form.xhtml
===================================================================
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition 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"
template="layout/template.xhtml">
<ui:define name="body">
<h1>@pageName@</h1>
<p>Generated form page</p>
<h:messages globalOnly="true" styleClass="message"/>
<h:form id="@componentName@">
<div class="dialog">
<s:validateAll>
<div class="prop">
<span class="name">Value</span>
<span class="value">
<s:decorate>
<h:inputText id="value" required="true"
value="#{@componentName at .value}"/>
</s:decorate>
</span>
</div>
</s:validateAll>
</div>
<div class="actionButtons">
<h:commandButton id="@methodName@" value="@methodName@"
action="#{@componentName at .@methodName@}"/>
</div>
</h:form>
</ui:define>
</ui:composition>
1.1 date: 2006/11/06 20:13:47; author: gavin; state: Exp;jboss-seam/seam-gen/view/list.xhtml
Index: list.xhtml
===================================================================
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition 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"
template="layout/template.xhtml">
<ui:define name="body">
<h1>@masterPageName@</h1>
<p>Generated list page</p>
<h:messages globalOnly="true" styleClass="message"/>
<h:outputText value="No @componentName@ exists"
rendered="#{empty @listName at .resultList}"/>
<h:dataTable id="@listName@" var="@componentName@"
value="#{@listName at .resultList}"
rendered="#{not empty @listName at .resultList}">
<h:column>
<f:facet name="header">Id</f:facet>
#{@componentName at .id}
</h:column>
<h:column>
<f:facet name="header">Name</f:facet>
<s:link id="@componentName@" value="#{@componentName at .name}" view="/@pageName at .xhtml">
<f:param name="@componentName at Id" value="#{@componentName at .id}"/>
</s:link>
</h:column>
</h:dataTable>
<div class="actionButtons">
<s:link id="done" value="Create @componentName@" linkStyle="button"
view="/@pageName at .xhtml"/>
</div>
</ui:define>
</ui:composition>
1.1 date: 2006/11/06 20:13:47; author: gavin; state: Exp;jboss-seam/seam-gen/view/page.xhtml
Index: page.xhtml
===================================================================
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition 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"
template="layout/template.xhtml">
<ui:define name="body">
<h1>${pageName}</h1>
<p>Generated page.</p>
</ui:define>
</ui:composition>
More information about the jboss-cvs-commits
mailing list