[jboss-cvs] jboss-seam/examples/seamspace/view ...
Shane Bryzak
Shane_Bryzak at symantec.com
Mon Jan 22 11:20:18 EST 2007
User: sbryzak2
Date: 07/01/22 11:20:18
Modified: examples/seamspace/view register.xhtml register2.xhtml
Log:
added file upload tag
Revision Changes Path
1.3 +3 -3 jboss-seam/examples/seamspace/view/register.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: register.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/seamspace/view/register.xhtml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- register.xhtml 18 Jan 2007 12:28:56 -0000 1.2
+++ register.xhtml 22 Jan 2007 16:20:18 -0000 1.3
@@ -58,9 +58,9 @@
<div class="formRow">
<h:outputLabel for="dob">Date of birth<em>*</em></h:outputLabel>
- <h:inputText id="dob" value="#{newMember.dob}" required="true"/>
- <s:selectDate for="dob"><img src="images/ellipsis.png" class="ellipsis"/></s:selectDate>
- <div class="validationError"><h:message for="dob"/></div>
+ <!--h:inputText id="dob" value="#{newMember.dob}" required="true"/-->
+ <!--s:selectDate for="dob"><img src="images/ellipsis.png" class="ellipsis"/></s:selectDate-->
+ <!--div class="validationError"><h:message for="dob"/></div-->
</div>
</s:validateAll>
1.2 +8 -3 jboss-seam/examples/seamspace/view/register2.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: register2.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/seamspace/view/register2.xhtml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- register2.xhtml 18 Jan 2007 12:28:56 -0000 1.1
+++ register2.xhtml 22 Jan 2007 16:20:18 -0000 1.2
@@ -14,14 +14,19 @@
JOIN SEAMSPACE HERE!
</div>
- <h:form styleClass="register">
+ <h:form styleClass="register" enctype="multipart/form-data">
<s:validateAll>
+ <div class="formRow">
+ <h:outputLabel for="picture">Member photo</h:outputLabel>
+ <s:fileUpload id="picture" value="#{register.picture}"/>
+ <div class="validationError"><h:message for="picture"/></div>
+ </div>
</s:validateAll>
<div class="buttons">
- <h:commandButton value="Upload" action="#{register.next}" styleClass="registerButton"/>
+ <h:commandButton value="Upload" action="#{register.uploadPicture}" styleClass="registerButton"/>
</div>
</h:form>
More information about the jboss-cvs-commits
mailing list