[corejsf~subversion:170] Added sections
- From: davidgeary@kenai.com
- To: commits@corejsf.kenai.com
- Subject: [corejsf~subversion:170] Added sections
- Date: Thu, 4 Feb 2010 18:18:46 +0000
Project: corejsf
Repository: subversion
Revision: 170
Author: davidgeary
Date: 2010-02-04 18:18:44 UTC
Link:
Log Message:
------------
Added sections
Revisions:
----------
170
Added Paths:
------------
ch10/ajax/web/sections/login/content.xhtml
ch10/ajax/web/sections/login
ch10/ajax/web/sections
ch10/ajax/web/sections/login/menuLeft.xhtml
ch10/ajax/web/sections/register/menuLeft.xhtml
ch10/ajax/web/sections/register/content.xhtml
ch10/ajax/web/sections/register
Diffs:
------
Index: ch10/ajax/web/sections/register/content.xhtml
===================================================================
--- ch10/ajax/web/sections/register/content.xhtml (revision 0)
+++ ch10/ajax/web/sections/register/content.xhtml (revision 170)
@@ -0,0 +1,35 @@
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:cc="http://java.sun.com/jsf/composite"
+ xmlns:util="http://java.sun.com/jsf/composite/components/util">
+
+ <h:form>
+ <f:event type="postValidate"
listener="#{registeringUser.validate}"/>
+
+ <p><h:outputText value="#{msgs.registerHeading}"
styleClass="prompt"/></p>
+
+ <h:panelGrid columns="2">
+ #{msgs.namePrompt}
+ <h:inputText id="name" value="#{registeringUser.name}"/>
+
+ #{msgs.passwordPrompt}
+ <h:inputSecret id="password"
value="#{registeringUser.password}"
+ size="8"/>
+
+ #{msgs.passwordVerifyPrompt}
+ <h:inputSecret id="verifyPwd"
value="#{registeringUser.verifiedPassword}"
+ size="8"/>
+ </h:panelGrid>
+
+ <p><h:commandButton value="#{msgs.registerButtonText}"
+ action="#{registrar.registerUser}"/></p>
+
+
+ <h:messages styleClass="error" layout="table"/>
+
+ <p><h:link outcome="login" value="#{msgs.cancelButtonText}"/></p>
+ </h:form>
+
+</ui:composition>
\ No newline at end of file
Index: ch10/ajax/web/sections/register/menuLeft.xhtml
===================================================================
--- ch10/ajax/web/sections/register/menuLeft.xhtml (revision 0)
+++ ch10/ajax/web/sections/register/menuLeft.xhtml (revision 170)
@@ -0,0 +1,13 @@
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+
+ <div class="menuLeftText">
+ #{msgs.registerGreeting}
+
+ <div class="welcomeImage">
+ <h:graphicImage library="images" name="cloudy.gif"/>
+ </div>
+ </div>
+
+</ui:composition>
\ No newline at end of file
Index: ch10/ajax/web/sections/login/content.xhtml
===================================================================
--- ch10/ajax/web/sections/login/content.xhtml (revision 0)
+++ ch10/ajax/web/sections/login/content.xhtml (revision 170)
@@ -0,0 +1,32 @@
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:cc="http://java.sun.com/jsf/composite"
+ xmlns:util="http://java.sun.com/jsf/composite/util">
+
+ <util:login namePrompt="#{msgs.namePrompt}"
+ passwordPrompt="#{msgs.passwordPrompt}"
+ name="#{user.name}"
+ password="#{user.password}"
+ loginAction="#{user.login}"
+ loginButtonText="#{msgs.loginButtonText}">
+
+ <f:validator binding="#{passwordValidator}" for="passwordInput"/>
+
+ <f:facet name="heading" styleClass="header">
+ <div class="prompt">
+ #{msgs.loginPrompt}
+ </div>
+ </f:facet>
+
+ <f:facet name="error" styleClass="error">
+ <h:messages layout="table" styleClass="error"/>
+ </f:facet>
+
+ <h:link outcome="register">
+ Register ...
+ </h:link>
+ </util:login>
+
+</ui:composition>
\ No newline at end of file
Index: ch10/ajax/web/sections/login/menuLeft.xhtml
===================================================================
--- ch10/ajax/web/sections/login/menuLeft.xhtml (revision 0)
+++ ch10/ajax/web/sections/login/menuLeft.xhtml (revision 170)
@@ -0,0 +1,13 @@
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+
+ <div class="menuLeftText">
+ #{msgs.welcomeGreeting}
+
+ <div class="welcomeImage">
+ <h:graphicImage library="images" name="cloudy.gif"/>
+ </div>
+ </div>
+
+</ui:composition>
\ No newline at end of file
|
[corejsf~subversion:170] Added sections |
davidgeary | 02/04/2010 |





