[jboss-cvs] jboss-seam/seam-gen/view ...

Gavin King gavin.king at jboss.com
Sat Feb 10 01:23:49 EST 2007


  User: gavin   
  Date: 07/02/10 01:23:49

  Modified:    seam-gen/view    editproperty.xhtml.ftl list.xhtml.ftl
                        login.xhtml
  Log:
  use labels
  
  Revision  Changes    Path
  1.3       +6 -2      jboss-seam/seam-gen/view/editproperty.xhtml.ftl
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: editproperty.xhtml.ftl
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/seam-gen/view/editproperty.xhtml.ftl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- editproperty.xhtml.ftl	10 Feb 2007 04:38:43 -0000	1.2
  +++ editproperty.xhtml.ftl	10 Feb 2007 06:23:49 -0000	1.3
  @@ -7,7 +7,9 @@
   <#assign propertyType = componentProperty.value.typeName>
   
                       <tr class="prop">
  -                        <td class="name">${componentProperty.name}</td>
  +                        <td class="name">
  +                            <h:outputLabel for="${componentProperty.name}">${componentProperty.name}</h:ouputLabel>
  +                        </td>
                           <td class="value">
                               <s:decorate>
   <#if propertyType == "date">
  @@ -123,7 +125,9 @@
   <#assign propertyType = property.value.typeName>
   
                       <tr class="prop">
  -                        <td class="name">${property.name}</td>
  +                        <td class="name">
  +                            <h:outputLabel for="${property.name}">${property.name}</h:outputLabel>
  +                        </td>
                           <td class="value">
                               <s:decorate>
   <#if propertyType == "date">
  
  
  
  1.15      +6 -2      jboss-seam/seam-gen/view/list.xhtml.ftl
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: list.xhtml.ftl
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/seam-gen/view/list.xhtml.ftl,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -b -r1.14 -r1.15
  --- list.xhtml.ftl	10 Feb 2007 04:19:36 -0000	1.14
  +++ list.xhtml.ftl	10 Feb 2007 06:23:49 -0000	1.15
  @@ -31,7 +31,9 @@
   <#foreach componentProperty in property.value.propertyIterator>
   <#if componentProperty.value.typeName == "string">
                   <tr class="prop">
  -                    <td class="name">${componentProperty.name}</td>
  +                    <td class="name">
  +                        <h:outputLabel for="${componentProperty.name}">${componentProperty.name}</h:outputLabel>
  +                    </td>
                       <td class="value">
                           <h:inputText id="${componentProperty.name}" 
                                     value="${'#'}{${listName}.${componentName}.${property.name}.${componentProperty.name}}"/>
  @@ -42,7 +44,9 @@
   <#else>
   <#if property.value.typeName == "string">
                   <tr class="prop">
  -                    <td class="name">${property.name}</td>
  +                    <td class="name">
  +                        <h:outputLabel for="${property.name}">${property.name}</h:outputLabel>
  +                    </td>
                       <td class="value">
                           <h:inputText id="${property.name}" 
                                     value="${'#'}{${listName}.${componentName}.${property.name}}"/>
  
  
  
  1.4       +30 -19    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.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- login.xhtml	7 Feb 2007 21:41:34 -0000	1.3
  +++ login.xhtml	10 Feb 2007 06:23:49 -0000	1.4
  @@ -14,27 +14,38 @@
       
       <h:messages styleClass="message"/>
       
  -    <h:form>
  +    <h:form id="login">
       
           <div class="dialog">
  -            <div class="prop">
  -                <span class="name">Username</span>
  -                <span class="value">
  -                    <h:inputText id="username" value="#{identity.username}"/>
  -                </span>
  -            </div>
  -            <div class="prop">
  -                <span class="name">Password</span>
  -                <span class="value">
  -                    <h:inputSecret id="password" value="#{identity.password}"/>
  -                </span>
  -            </div>
  -            <div class="prop">
  -              <span class="name">Remember me</span>
  -              <span class="value">
  -                  <h:selectBooleanCheckbox id="rememberMe" value="#{identity.rememberMe}"/>
  -              </span>
  -            </div>
  +        <table>
  +            <tr class="prop">
  +                <td class="name">
  +                    <h:outputLabel for="username">Username</h:outputLabel>
  +                </td>
  +                <td class="value">
  +                    <h:inputText for="username" 
  +                              value="#{identity.username}"/>
  +                </td>
  +            </tr>
  +            <tr class="prop">
  +                <td class="name">
  +                    <h:outputLabel for="password">Password</h:outputLabel>
  +                </td>
  +                <td class="value">
  +                    <h:inputSecret id="password" 
  +                                value="#{identity.password}"/>
  +                </td>
  +            </tr>
  +            <tr class="prop">
  +              <td class="name">
  +                  <h:outputLabel id="rememberMe">Remember me</h:outputLabel>
  +              </td>
  +              <td class="value">
  +                  <h:selectBooleanCheckbox id="rememberMe" 
  +                                        value="#{identity.rememberMe}"/>
  +              </td>
  +            </tr>
  +        </table>
           </div>
               
           <div class="actionButtons">
  
  
  



More information about the jboss-cvs-commits mailing list