[jboss-cvs] jboss-seam/seam-gen/freemarker-templates ...

Gavin King gavin.king at jboss.com
Thu Nov 2 19:03:30 EST 2006


  User: gavin   
  Date: 06/11/02 19:03:30

  Modified:    seam-gen/freemarker-templates     action-page.ftl
                        conversation-page.ftl form-page.ftl page.ftl
  Log:
  more improvenets
  
  Revision  Changes    Path
  1.8       +3 -1      jboss-seam/seam-gen/freemarker-templates/action-page.ftl
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: action-page.ftl
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/seam-gen/freemarker-templates/action-page.ftl,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- action-page.ftl	2 Nov 2006 23:17:32 -0000	1.7
  +++ action-page.ftl	3 Nov 2006 00:03:30 -0000	1.8
  @@ -9,14 +9,16 @@
                   template="layout/template.xhtml">
                          
   <ui:define name="body">
  +
       <h1>${pageName}</h1>
       <p>Action page created by seam-gen.</p>
       <h:form>
           <div>
  -            <h:commandButton id="go" value="Go!" 
  +            <h:commandButton id="${componentName}" value="${actionName}!" 
                   action="${pound}{${componentName}.${componentName}}"/>     			  
           </div>
       </h:form>
  +    
   </ui:define>
   
   </ui:composition>
  
  
  
  1.3       +9 -2      jboss-seam/seam-gen/freemarker-templates/conversation-page.ftl
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: conversation-page.ftl
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/seam-gen/freemarker-templates/conversation-page.ftl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- conversation-page.ftl	2 Nov 2006 23:17:32 -0000	1.2
  +++ conversation-page.ftl	3 Nov 2006 00:03:30 -0000	1.3
  @@ -9,11 +9,17 @@
                   template="layout/template.xhtml">
                          
   <ui:define name="body">
  +
       <h1>${pageName}</h1>
       <p>Action page created by seam-gen.</p>
  -    <p>${pound}{${componentName}.value}</p>
  +    <div class="dialog">
  +        <div class="prop">
  +            <span class="name">Value</span>
  +            <span class="value">${pound}{${componentName}.value}</span>
  +        </div>
  +    </div>
       <h:form>
  -        <div>
  +        <div class="actionButtons">
               <h:commandButton id="begin" value="Begin" 
                   action="${pound}{${componentName}.begin}"/>     			  
               <h:commandButton id="inc" value="Increment" 
  @@ -22,6 +28,7 @@
                   action="${pound}{${componentName}.end}"/>     			  
           </div>
       </h:form>
  +    
   </ui:define>
   
   </ui:composition>
  
  
  
  1.2       +14 -11    jboss-seam/seam-gen/freemarker-templates/form-page.ftl
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: form-page.ftl
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/seam-gen/freemarker-templates/form-page.ftl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- form-page.ftl	2 Nov 2006 23:17:32 -0000	1.1
  +++ form-page.ftl	3 Nov 2006 00:03:30 -0000	1.2
  @@ -9,25 +9,28 @@
                   template="layout/template.xhtml">
                          
   <ui:define name="body">
  +
       <h1>${pageName}</h1>
       <p>Action page created by seam-gen.</p>
       <h:form>
  -        <f:facet name="aroundInvalidField">
  -            <s:span styleClass="errors"/>
  -        </f:facet>
  -        <f:facet name="afterInvalidField">
  -            <s:message/>
  -        </f:facet>
  +        <div class="dialog">
           <s:validateAll>
  +            <div class="prop">
  +                <span class="name">Value</span>
  +                <span class="value">
               <s:decorate>
  -                <h:inputText value="${pound}{${componentName}.value}"/>
  +                        <h:inputText value="${pound}{${componentName}.value}" required="true"/>
               </s:decorate>
  +                </span>
  +            </div>
           </s:validateAll>
  -        <div>
  -            <h:commandButton id="go" value="Go!" 
  +        </div>
  +        <div class="actionButtons">
  +            <h:commandButton id="${componentName}" value="${actionName}" 
                   action="${pound}{${componentName}.${componentName}}"/>     			  
           </div>
       </h:form>
  +    
   </ui:define>
   
   </ui:composition>
  
  
  
  1.5       +2 -4      jboss-seam/seam-gen/freemarker-templates/page.ftl
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: page.ftl
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/seam-gen/freemarker-templates/page.ftl,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- page.ftl	2 Nov 2006 23:17:32 -0000	1.4
  +++ page.ftl	3 Nov 2006 00:03:30 -0000	1.5
  @@ -8,12 +8,10 @@
                   template="layout/template.xhtml">
   
   <ui:define name="body">
  +
       <h1>${pageName}</h1>
       <p>Page created by seam-gen.</p>
  -    <h:form>
  -        <s:validateAll>
  -        </s:validateAll>
  -    </h:form>
  +
   </ui:define>
   
   </ui:composition>
  
  
  



More information about the jboss-cvs-commits mailing list