Author: abelevich
Date: 2007-09-04 07:32:12 -0400 (Tue, 04 Sep 2007)
New Revision: 2730
Added:
trunk/samples/rich-message-demo/src/main/java/org/richfaces/demo/UserBean.java
trunk/samples/rich-message-demo/src/main/webapp/image/error-q.gif
trunk/samples/rich-message-demo/src/main/webapp/pages/message-demo-test.xhtml
Log:
additional files related with RF-764
Added: trunk/samples/rich-message-demo/src/main/java/org/richfaces/demo/UserBean.java
===================================================================
--- trunk/samples/rich-message-demo/src/main/java/org/richfaces/demo/UserBean.java
(rev 0)
+++
trunk/samples/rich-message-demo/src/main/java/org/richfaces/demo/UserBean.java 2007-09-04
11:32:12 UTC (rev 2730)
@@ -0,0 +1,43 @@
+/**
+ *
+ */
+package org.richfaces.demo;
+
+/**
+ * @author Anton Belevich
+ *
+ */
+public class UserBean {
+
+ private String address;
+
+ private String name;
+
+ private String job;
+
+
+ public String getAddress() {
+ return address;
+ }
+
+ public void setAddress(String address) {
+ this.address = address;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getJob() {
+ return job;
+ }
+
+ public void setJob(String job) {
+ this.job = job;
+ }
+
+}
Added: trunk/samples/rich-message-demo/src/main/webapp/image/error-q.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/rich-message-demo/src/main/webapp/image/error-q.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/rich-message-demo/src/main/webapp/pages/message-demo-test.xhtml
===================================================================
--- trunk/samples/rich-message-demo/src/main/webapp/pages/message-demo-test.xhtml
(rev 0)
+++
trunk/samples/rich-message-demo/src/main/webapp/pages/message-demo-test.xhtml 2007-09-04
11:32:12 UTC (rev 2730)
@@ -0,0 +1,61 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
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:rich="http://labs.jboss.com/jbossrichfaces/ui/message"
+
xmlns:a4j="http://richfaces.org/a4j">
+ <head>
+ <link rel="stylesheet" type="text/css"
href="/rich-message-demo/css/app.css" />
+ </head>
+
+ <h:form>
+ <h:panelGrid columns="3">
+
+ <h:outputText value="Name:" />
+
+ <h:inputText label="Name" id="name" required="true"
value="#{userBean.name}">
+ <a4j:support event="onblur" ajaxSingle="true" />
+ </h:inputText>
+
+ <rich:message for="name">
+ <f:facet name="passedMarker">
+ <h:outputText value="V" />
+ </f:facet>
+ <f:facet name="errorMarker">
+ <h:outputText value="X" />
+ </f:facet>
+ </rich:message>
+
+ <h:outputText value="Job:" />
+
+ <h:inputText label="Job" id="job" required="true"
value="#{userBean.job}">
+ <a4j:support event="onblur" ajaxSingle="true"/>
+ </h:inputText>
+
+ <rich:message for="job">
+ <f:facet name="passedMarker">
+ <h:outputText value="V" />
+ </f:facet>
+ <f:facet name="errorMarker">
+ <h:outputText value="X" />
+ </f:facet>
+ </rich:message>
+
+ <h:outputText value="Address:" />
+
+ <h:inputText label="Address" id="address"
required="true" value="#{userBean.address}">
+ <a4j:support event="onblur" ajaxSingle="true"/>
+ </h:inputText>
+
+ <rich:message for="address">
+ <f:facet name="passedMarker">
+ <h:outputText value="V" />
+ </f:facet>
+ <f:facet name="errorMarker">
+ <h:outputText value="X" />
+ </f:facet>
+ </rich:message>
+ </h:panelGrid>
+ </h:form>
+ </html>
\ No newline at end of file