[jboss-cvs] jboss-seam/seam-gen/view ...
Gavin King
gavin.king at jboss.com
Wed Mar 14 00:22:37 EDT 2007
User: gavin
Date: 07/03/14 00:22:37
Modified: seam-gen/view action.xhtml edit.xhtml.ftl form.xhtml
login.xhtml
Log:
misc improvs
Revision Changes Path
1.2 +13 -9 jboss-seam/seam-gen/view/action.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: action.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/seam-gen/view/action.xhtml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- action.xhtml 6 Nov 2006 20:13:47 -0000 1.1
+++ action.xhtml 14 Mar 2007 04:22:37 -0000 1.2
@@ -5,22 +5,26 @@
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.ajax4jsf.org/rich"
+ xmlns:a="https://ajax4jsf.dev.java.net/ajax"
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>
+ <rich:panel>
+ <f:facet name="header">@pageName@</f:facet>
+
+ <h:form id="@componentName at Form">
+
<h:commandButton id="@methodName@" value="@methodName@!"
action="#{@componentName at .@methodName@}"/>
- </div>
+
</h:form>
+ </rich:panel>
+
</ui:define>
</ui:composition>
1.43 +8 -9 jboss-seam/seam-gen/view/edit.xhtml.ftl
(In the diff below, changes in quantity of whitespace are not shown.)
Index: edit.xhtml.ftl
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/seam-gen/view/edit.xhtml.ftl,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -b -r1.42 -r1.43
--- edit.xhtml.ftl 9 Mar 2007 23:55:07 -0000 1.42
+++ edit.xhtml.ftl 14 Mar 2007 04:22:37 -0000 1.43
@@ -18,13 +18,12 @@
<ui:define name="body">
<h:messages globalOnly="true" styleClass="message" id="globalMessages"/>
- <rich:panel rendered="false"/>
+
<h:form id="${componentName}" styleClass="edit">
- <div class="dr-pnl rich-panel">
- <div class="dr-pnl-h rich-panel-header">Edit ${entityName}</div>
- <div class="dr-pnl-b rich-panel-body">
- <div class="dialog">
+ <rich:panel>
+ <f:facet name="header">Edit ${entityName}</f:facet>
+
<s:validateAll>
<h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value">
<#foreach property in pojo.allPropertiesIterator>
@@ -33,10 +32,10 @@
</h:panelGrid>
</s:validateAll>
- </div>
+
<div><span class="required">*</span> required fields</div>
- </div>
- </div>
+
+ </rich:panel>
<div class="actionButtons">
1.2 +28 -22 jboss-seam/seam-gen/view/form.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: form.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/seam-gen/view/form.xhtml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- form.xhtml 6 Nov 2006 20:13:47 -0000 1.1
+++ form.xhtml 14 Mar 2007 04:22:37 -0000 1.2
@@ -5,16 +5,19 @@
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.ajax4jsf.org/rich"
+ xmlns:a="https://ajax4jsf.dev.java.net/ajax"
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@">
+ <rich:panel>
+ <f:facet name="header">@pageName@</f:facet>
+
+ <h:form id="@componentName at Form">
+
<div class="dialog">
<s:validateAll>
<div class="prop">
@@ -28,13 +31,16 @@
</div>
</s:validateAll>
</div>
+
<div class="actionButtons">
<h:commandButton id="@methodName@" value="@methodName@"
action="#{@componentName at .@methodName@}"/>
</div>
+
</h:form>
+ </rich:panel>
+
</ui:define>
</ui:composition>
-
1.9 +19 -21 jboss-seam/seam-gen/view/login.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: login.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/seam-gen/view/login.xhtml,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- login.xhtml 10 Mar 2007 20:30:01 -0000 1.8
+++ login.xhtml 14 Mar 2007 04:22:37 -0000 1.9
@@ -14,10 +14,9 @@
<h:form id="login">
- <rich:panel rendered="false"/>
- <div class="dr-pnl rich-panel">
- <div class="dr-pnl-h rich-panel-header">Login</div>
- <div class="dr-pnl-b rich-panel-body">
+ <rich:panel>
+ <f:facet name="header">Login</f:facet>
+
<p>Please login using any username and password</p>
<div class="dialog">
@@ -34,8 +33,7 @@
</h:panelGrid>
</div>
- </div>
- </div>
+ </rich:panel>
<div class="actionButtons">
<h:commandButton value="Login" action="#{identity.login}"/>
More information about the jboss-cvs-commits
mailing list