[jboss-cvs] jboss-seam/examples/spring/view ...
Norman Richards
norman.richards at jboss.com
Wed Feb 21 09:37:49 EST 2007
User: nrichards
Date: 07/02/21 09:37:49
Modified: examples/spring/view password.xhtml
Log:
update example
Revision Changes Path
1.2 +66 -79 jboss-seam/examples/spring/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/spring/view/password.xhtml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- password.xhtml 19 Feb 2007 23:29:00 -0000 1.1
+++ password.xhtml 21 Feb 2007 14:37:49 -0000 1.2
@@ -6,12 +6,12 @@
xmlns:s="http://jboss.com/products/seam/taglib"
template="template.xhtml">
-<!-- content -->
-<ui:define name="content">
-<div class="section">
+ <!-- content -->
+ <ui:define name="content">
+ <div class="section">
<h1>Change Your Password</h1>
-</div>
-<div class="section">
+ </div>
+ <div class="section">
<h:form id="password">
<f:facet name="afterInvalidField">
@@ -24,11 +24,11 @@
<fieldset>
<div class="entry">
- <div class="label"><h:outputLabel for="password">Password:</h:outputLabel></div>
+ <div class="label"><h:outputLabel for="password">New Password:</h:outputLabel></div>
<div class="input">
<s:decorate>
<h:inputSecret id="password" value="#{user.password}" required="true">
- <s:validate/>
+ <s:validate />
</h:inputSecret>
<br/>
</s:decorate>
@@ -36,7 +36,7 @@
</div>
<div class="entry">
- <div class="label"><h:outputLabel for="password">Verify:</h:outputLabel></div>
+ <div class="label"><h:outputLabel for="password">Old Password:</h:outputLabel></div>
<div class="input">
<s:decorate>
<h:inputSecret id="verify" value="#{changePassword.verify}" required="true"/>
@@ -52,7 +52,8 @@
<div class="entry">
<div class="label"> </div>
<div class="input">
- <h:commandButton id="change" value="Change" action="#{changePassword.changePassword}"/> 
+ <h:commandButton id="change" value="Change"
+ action="#{changePassword.changePassword}"/> 
<s:button id="cancel" value="Cancel" view="/main.xhtml"/>
</div>
</div>
@@ -60,22 +61,8 @@
</fieldset>
</h:form>
-</div>
-</ui:define>
-
-<!-- sidebar -->
-<ui:define name="sidebar">
-<h1>Simple things should be easy</h1>
-<p>
- (And so should some complex things.) You shouldn't have to write four different classes
- just to change a password. Traditional J2EE architectures require that developers spend
- more time writing code to make the frameworks happy, than they ever get to spend writing
- code to make the user happy. Seam lets you reduce the size of your code dramatically.
- And that reduces bugs. And it makes refactoring easier. And it makes delivering new
- functionality quicker. Productivity matters. But with Seam, JSF, EJB 3.0 and jBPM, you
- don't need to sacrifice the ability to handle complex problems just to achieve great
- productivity.
-</p>
-</ui:define>
+ </div>
+ </ui:define>
+ <ui:define name="sidebar" />
</ui:composition>
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list