Author: ilya_shaikovsky
Date: 2011-01-31 10:19:05 -0500 (Mon, 31 Jan 2011)
New Revision: 21328
Modified:
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/hashParam/hashOptionsPopup.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/message/samples/message-sample.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/messages/samples/messages-sample.xhtml
Log:
simplified messages according to current features state. syntax errors corrections for
hashParam.
Modified:
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/hashParam/hashOptionsPopup.xhtml
===================================================================
---
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/hashParam/hashOptionsPopup.xhtml 2011-01-31
15:14:49 UTC (rev 21327)
+++
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/hashParam/hashOptionsPopup.xhtml 2011-01-31
15:19:05 UTC (rev 21328)
@@ -8,7 +8,7 @@
<p><b>rich:hashParam</b> allows you to group client side parameters
into hash map in order to pass to client API functions of any
components.</p>
- <p>Press "Show Popup" betton in order to call the pabel. All the
+ <p>Press "Show Popup" button in order to call the panel. All the
parameters for show method passed from component control nested
a4j:param's instead of to be defined with attributes in static way. As
the show() method accepts event and options hash - all the param's
Modified:
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/message/samples/message-sample.xhtml
===================================================================
---
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/message/samples/message-sample.xhtml 2011-01-31
15:14:49 UTC (rev 21327)
+++
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/message/samples/message-sample.xhtml 2011-01-31
15:19:05 UTC (rev 21328)
@@ -6,15 +6,6 @@
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
- <style type="text/css">
-.rich-message-marker img {
- padding-right: 7px;
-}
-
-.rich-message-label {
- color: red;
-}
-</style>
<rich:panel>
<f:facet name="header">
<h:outputText value="Validation Form" />
@@ -26,42 +17,25 @@
value="#{userBean.name}">
<f:validateLength minimum="3" />
</h:inputText>
- <rich:message for="name" showDetails="true"
showSummary="true">
- <f:facet name="errorMarker">
- <h:graphicImage value="/images/ajax/error.gif" />
- </f:facet>
- </rich:message>
-
+ <rich:message for="name"/>
<h:outputText value="Job:" />
<h:inputText label="Job" id="job" required="true"
value="#{userBean.job}">
<f:validateLength minimum="3" maximum="50" />
</h:inputText>
- <rich:message for="job">
- <f:facet name="errorMarker">
- <h:graphicImage value="/images/ajax/error.gif" />
- </f:facet>
- </rich:message>
+ <rich:message for="job"/>
<h:outputText value="Address:" />
<h:inputText label="Address" id="address"
required="true"
value="#{userBean.address}">
<f:validateLength minimum="10" />
</h:inputText>
- <rich:message for="address">
- <f:facet name="errorMarker">
- <h:graphicImage value="/images/ajax/error.gif" />
- </f:facet>
- </rich:message>
+ <rich:message for="address"/>
<h:outputText value="Zip:" />
<h:inputText label="Zip" id="zip" required="true"
value="#{userBean.zip}">
<f:validateLength minimum="4" maximum="9" />
</h:inputText>
- <rich:message for="zip">
- <f:facet name="errorMarker">
- <h:graphicImage value="/images/ajax/error.gif" />
- </f:facet>
- </rich:message>
+ <rich:message for="zip"/>
<f:facet name="footer">
<a4j:commandButton value="Ajax Validate" />
<h:commandButton value="Common Validate" />
Modified:
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/messages/samples/messages-sample.xhtml
===================================================================
---
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/messages/samples/messages-sample.xhtml 2011-01-31
15:14:49 UTC (rev 21327)
+++
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/messages/samples/messages-sample.xhtml 2011-01-31
15:19:05 UTC (rev 21328)
@@ -5,39 +5,14 @@
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
- <style type="text/css">
-.rich-messages-marker img {
- padding-right: 7px;
-}
-
-.rich-message-label {
- color: red;
-}
-
-.top {
- vertical-align: top;
-}
-</style>
-<a4j:region>
<rich:panel style="width:400px">
<f:facet name="header">
<h:outputText value="Validation Form" />
</f:facet>
-
<h:form>
- <rich:messages passedLabel="Data is allowed to be stored."
- layout="list" showSummary="true"
showDetails="true">
- <f:facet name="header">
- <h:outputText value="Entered Data Status:"></h:outputText>
- </f:facet>
- <f:facet name="passedMarker">
- <h:graphicImage value="/images/ajax/passed.gif" />
- </f:facet>
- <f:facet name="errorMarker">
- <h:graphicImage value="/images/ajax/error.gif" />
- </f:facet>
- </rich:messages>
-
+
+ <rich:messages
+ showSummary="true" showDetail="true"/>
<h:panelGrid columns="2">
<h:outputText value="Name:" />
<h:inputText label="Name" id="name" required="true"
@@ -66,5 +41,4 @@
</h:panelGrid>
</h:form>
</rich:panel>
-</a4j:region>
</ui:composition>
\ No newline at end of file