[jboss-cvs] jboss-seam/examples/ui/view ...
Peter Muir
peter at bleepbleep.org.uk
Fri Mar 23 16:25:34 EDT 2007
User: pmuir
Date: 07/03/23 16:25:34
Modified: examples/ui/view template.xhtml
Added: examples/ui/view fileUpload.xhtml
Log:
More ui example and move CDK renderers to templates
Revision Changes Path
1.2 +9 -1 jboss-seam/examples/ui/view/template.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: template.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/ui/view/template.xhtml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- template.xhtml 22 Mar 2007 13:07:18 -0000 1.1
+++ template.xhtml 23 Mar 2007 20:25:34 -0000 1.2
@@ -61,19 +61,27 @@
<li><s:link view="/selectItems.xhtml" propagation="join">
<code>s:selectItems</code>
<f:param name="personId" value="1" />
+ <s:conversationPropagation type="join" />
</s:link></li>
<li><s:link view="/fragment.xhtml" propagation="none">
<code>s:fragment</code>
</s:link></li>
- <li><s:link view="/formattedText.xhtml" propagation="none">
+ <li><s:link view="/formattedText.xhtml" propagation="join">
<code>s:formattedText</code>
<f:param name="personId" value="1" />
+ <s:conversationPropagation type="join" />
+ </s:link></li>
+ <li><s:link view="/fileUpload.xhtml" propagation="join">
+ <code>s:fileUpload</code>
+ <f:param name="personId" value="1" />
+ <s:conversationPropagation type="join" />
</s:link></li>
</ul>
</s:div>
<s:div>
<h1><code><h:outputText value="#{tagName}" /></code></h1>
<ui:insert name="body" />
+ <h:messages />
</s:div>
</body>
1.1 date: 2007/03/23 20:25:34; author: pmuir; state: Exp;jboss-seam/examples/ui/view/fileUpload.xhtml
Index: fileUpload.xhtml
===================================================================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:s="http://jboss.com/products/seam/taglib"
template="template.xhtml"
>
<ui:param name="tagName" value="s:fileUpload" />
<ui:define name="body">
<p>Renders a file upload control.</p>
<h:form enctype="multipart/form-data">
<h:panelGrid columns="2">
<h:outputText value="#{person.name}'s Picture" />
<s:fileUpload data="#{person.picture.data}" contentType="#{person.picture.contentType}" fileName="#{person.picture.fileName}" accept="images/png,images/jpg" />
<h:commandButton action="#{personHome.update}" value="Update" />
<h:outputText/>
</h:panelGrid>
</h:form>
</ui:define>
</ui:composition>
More information about the jboss-cvs-commits
mailing list