[jboss-cvs] jboss-seam/examples/booking/view ...

Gavin King gavin.king at jboss.com
Tue Mar 20 17:44:32 EDT 2007


  User: gavin   
  Date: 07/03/20 17:44:32

  Modified:    examples/booking/view  password.xhtml
  Log:
  use s:decorate
  
  Revision  Changes    Path
  1.14      +26 -38    jboss-seam/examples/booking/view/password.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: password.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/booking/view/password.xhtml,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -b -r1.13 -r1.14
  --- password.xhtml	18 Mar 2007 20:18:41 -0000	1.13
  +++ password.xhtml	20 Mar 2007 21:44:32 -0000	1.14
  @@ -8,58 +8,46 @@
   
   <!-- content -->
   <ui:define name="content">
  +
   <div class="section">
   	<h1>Change Your Password</h1>
   </div>
  +
   <div class="section">
  -	<h:form id="setpassword">
   	
  -	    <f:facet name="aroundInvalidField">
  -	        <s:span styleClass="errors"/>
  -	    </f:facet>
  -	    <f:facet name="afterInvalidField">
  -            <s:div styleClass="errors">
  -                <s:message/>
  -            </s:div>
  -	    </f:facet>
  +	<div class="entry errors">
  +		<h:messages globalOnly="true"/>
  +	</div>
  +			
  +	<h:form id="setpassword">
   	    
   		<fieldset>
   		
  -			<div class="entry">
  -				<div class="label"><h:outputLabel for="password">Password:</h:outputLabel></div>
  -				<div class="input">
  -					<s:decorate>
  -						<h:inputSecret id="password" value="#{user.password}" required="true">
  -							<s:validate/>
  -						</h:inputSecret>
  +			<s:decorate template="edit.xhtml">
  +				<ui:define name="label">Password:</ui:define>
  +				<ui:define name="input">
  +					<h:inputSecret id="password" value="#{user.password}" required="true"/>
  +				</ui:define>
   					</s:decorate>
  -				</div>
  -			</div>
   			
  -			<div class="entry">
  -				<div class="label"><h:outputLabel for="verify">Verify:</h:outputLabel></div>
  -				<div class="input">
  -					<s:decorate>
  +			<s:decorate template="edit.xhtml">
  +				<ui:define name="label">Verify:</ui:define>
  +				<ui:define name="input">
   						<h:inputSecret id="verify" value="#{changePassword.verify}" required="true"/>
  +				</ui:define>
   					</s:decorate>
  -				</div>
  -			</div>
   			
  -			<div class="entry errors">
  -				<h:messages globalOnly="true"/>
  -			</div>
  -			
  -			<div class="entry">
  -				<div class="input">
  -					<h:commandButton id="change" value="Change" action="#{changePassword.changePassword}"/>&#160;
  +			<div class="buttonBox">
  +				<h:commandButton id="change" value="Change" action="#{changePassword.changePassword}"/>
  +				&#160;
   					<s:button id="cancel" value="Cancel" view="/main.xhtml"/>
   				</div>
  -			</div>
   			
   		</fieldset>
   		
   	</h:form>
   </div>
  +
   </ui:define>
   
   <!-- sidebar -->
  
  
  



More information about the jboss-cvs-commits mailing list