[jboss-cvs] jboss-seam/examples/blog/view ...
Gavin King
gavin.king at jboss.com
Mon Oct 2 14:16:25 EDT 2006
User: gavin
Date: 06/10/02 14:16:25
Modified: examples/blog/view post.xhtml
Log:
use s:decorate
Revision Changes Path
1.9 +19 -9 jboss-seam/examples/blog/view/post.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: post.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/blog/view/post.xhtml,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- post.xhtml 2 Oct 2006 18:10:27 -0000 1.8
+++ post.xhtml 2 Oct 2006 18:16:25 -0000 1.9
@@ -10,15 +10,23 @@
<ui:define name="content">
<div class="blogEntry">
<h:form>
- <f:facet name="afterInvalidField"><s:message/></f:facet>
- <f:facet name="aroundInvalidField"><s:span styleClass="errors"/></f:facet>
+ <f:facet name="afterInvalidField">
+ <s:span>
+  Error: 
+ <s:message/>
+ </s:span>
+ </f:facet>
+ <f:facet name="aroundInvalidField">
+ <s:span styleClass="errors"/>
+ </f:facet>
+
<s:validateAll>
<div>
<h:outputLabel for="id">Id: </h:outputLabel>
</div>
<div class="hilite">
<s:decorate>
- <h:inputText value="#{blogEntry.id}" size="20" maxlength="20" required="true"/>
+ <h:inputText value="#{blogEntry.id}" size="20" maxlength="20" required="true" id="id"/>
</s:decorate>
</div>
<div>
@@ -26,7 +34,7 @@
</div>
<div class="hilite">
<s:decorate>
- <h:inputText value="#{blogEntry.title}" size="70" maxlength="70" required="true"/>
+ <h:inputText value="#{blogEntry.title}" size="70" maxlength="70" required="true" id="title"/>
</s:decorate>
</div>
<div>
@@ -34,7 +42,7 @@
</div>
<div class="hilite">
<s:decorate>
- <h:inputTextarea value="#{blogEntry.excerpt}" cols="68" rows="3"/>
+ <h:inputTextarea value="#{blogEntry.excerpt}" cols="68" rows="3" id="excerpt"/>
</s:decorate>
</div>
<div>
@@ -42,13 +50,15 @@
</div>
<div class="hilite">
<s:decorate>
- <h:inputTextarea value="#{blogEntry.body}" cols="68" rows="20" required="true"/>
+ <h:inputTextarea value="#{blogEntry.body}" cols="68" rows="20" required="true" id="body"/>
</s:decorate>
</div>
+ </s:validateAll>
+
<div>
<h:commandButton value="Post" action="#{postAction.post}"/>
</div>
- </s:validateAll>
+
</h:form>
</div>
</ui:define>
More information about the jboss-cvs-commits
mailing list