Author: abelevich
Date: 2007-07-19 15:36:44 -0400 (Thu, 19 Jul 2007)
New Revision: 1709
Added:
trunk/sandbox/samples/rich-message-demo/src/main/resources/
trunk/sandbox/samples/rich-message-demo/src/main/resources/com/
trunk/sandbox/samples/rich-message-demo/src/main/resources/com/sun/
trunk/sandbox/samples/rich-message-demo/src/main/resources/com/sun/el/
trunk/sandbox/samples/rich-message-demo/src/main/resources/com/sun/el/Messages.properties
trunk/sandbox/samples/rich-message-demo/src/main/webapp/css/
trunk/sandbox/samples/rich-message-demo/src/main/webapp/css/app.css
trunk/sandbox/samples/rich-message-demo/src/main/webapp/image/
trunk/sandbox/samples/rich-message-demo/src/main/webapp/image/error.gif
trunk/sandbox/samples/rich-message-demo/src/main/webapp/image/fatal.gif
trunk/sandbox/samples/rich-message-demo/src/main/webapp/image/info.gif
trunk/sandbox/samples/rich-message-demo/src/main/webapp/image/warn.gif
Modified:
trunk/sandbox/samples/rich-message-demo/src/main/webapp/WEB-INF/faces-config.xml
trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml
Log:
Added:
trunk/sandbox/samples/rich-message-demo/src/main/resources/com/sun/el/Messages.properties
===================================================================
---
trunk/sandbox/samples/rich-message-demo/src/main/resources/com/sun/el/Messages.properties
(rev 0)
+++
trunk/sandbox/samples/rich-message-demo/src/main/resources/com/sun/el/Messages.properties 2007-07-19
19:36:44 UTC (rev 1709)
@@ -0,0 +1,84 @@
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
+#
+# Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
+#
+# The contents of this file are subject to the terms of either the GNU
+# General Public License Version 2 only ("GPL") or the Common Development
+# and Distribution License("CDDL") (collectively, the "License").
You
+# may not use this file except in compliance with the License. You can obtain
+# a copy of the License at
https://glassfish.dev.java.net/public/CDDL+GPL.html
+# or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
+# language governing permissions and limitations under the License.
+#
+# When distributing the software, include this License Header Notice in each
+# file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
+# Sun designates this particular file as subject to the "Classpath" exception
+# as provided by Sun in the GPL Version 2 section of the License file that
+# accompanied this code. If applicable, add the following below the License
+# Header, with the fields enclosed by brackets [] replaced by your own
+# identifying information: "Portions Copyrighted [year]
+# [name of copyright owner]"
+#
+# Contributor(s):
+#
+# If you wish your version of this file to be governed by only the CDDL or
+# only the GPL Version 2, indicate your decision by adding "[Contributor]
+# elects to include this software in this distribution under the [CDDL or GPL
+# Version 2] license." If you don't indicate a single choice of license, a
+# recipient has the option to distribute your version of this file under
+# either the CDDL, the GPL Version 2 or to extend the choice of license to
+# its licensees as provided above. However, if you add GPL Version 2 code
+# and therefore, elected the GPL Version 2 license, then the option applies
+# only if the new code is made subject to such option by the copyright
+# holder.
+#
+
+# General Errors
+error.convert=Cannot convert {0} of type {1} to {2}
+error.compare=Cannot compare {0} to {1}
+error.function=Problems calling function ''{0}''
+error.unreachable.base=Target Unreachable, identifier ''{0}'' resolved to
null
+error.unreachable.property=Target Unreachable, ''{0}'' returned null
+error.resolver.unhandled=ELResolver did not handle type: {0} with property of
''{1}''
+error.resolver.unhandled.null=ELResolver cannot handle a null base Object with identifier
''{0}''
+
+# ValueExpressionLiteral
+error.value.literal.write=ValueExpression is a literal and not writable: {0}
+
+# ExpressionFactoryImpl
+error.null=Expression cannot be null
+error.mixed=Expression cannot contain both '#{..}' and '${..}' : {0}
+error.method=Not a valid MethodExpression : {0}
+error.method.nullParms=Parameter types cannot be null
+error.value.expectedType=Expected type cannot be null
+
+# ExpressionMediator
+error.eval=Error Evaluating {0} : {1}
+
+# ValueSetVisitor
+error.syntax.set=Illegal Syntax for Set Operation
+
+# ReflectionUtil
+error.method.notfound=Method not found: {0}.{1}({2})
+error.property.notfound=Property ''{1}'' not found on {0}
+
+# ValidatingVisitor
+error.fnMapper.null=Expression uses functions, but no FunctionMapper was provided
+error.fnMapper.method=Function ''{0}'' not found
+error.fnMapper.paramcount=Function ''{0}'' specifies {1} params, but {2}
were declared
+
+# **ExpressionImpl
+error.context.null=ELContext was null
+
+# ArrayELResolver
+error.array.outofbounds=Index {0} is out of bounds for array of size {1}
+
+# ListELResolver
+error.list.outofbounds=Index {0} is out of bounds for list of size {1}
+
+# BeanELResolver
+error.property.notfound=Property ''{1}'' not found on type: {0}
+error.property.invocation=Property ''{1}'' threw an exception from type:
{0}
+error.property.notreadable=Property ''{1}'' doesn't have a
'get' specified on type: {0}
+error.property.notwritable=Property ''{1}'' doesn't have a
'set' specified on type: {0}
\ No newline at end of file
Modified:
trunk/sandbox/samples/rich-message-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
---
trunk/sandbox/samples/rich-message-demo/src/main/webapp/WEB-INF/faces-config.xml 2007-07-19
19:35:43 UTC (rev 1708)
+++
trunk/sandbox/samples/rich-message-demo/src/main/webapp/WEB-INF/faces-config.xml 2007-07-19
19:36:44 UTC (rev 1709)
@@ -2,14 +2,10 @@
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces
Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
- <managed-bean>
- <managed-bean-name>jiraUserConverter</managed-bean-name>
-
<managed-bean-class>org.richfaces.demo.converters.JiraUserConverter</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- <managed-property>
- <property-name>channel</property-name>
- <value>#{jiraService.channel}</value>
- </managed-property>
- </managed-bean>
+ <validator>
+ <validator-id>SelectValidator</validator-id>
+ <validator-class>org.richfaces.demo.SelectValidator </validator-class>
+ </validator>
+
</faces-config>
Added: trunk/sandbox/samples/rich-message-demo/src/main/webapp/css/app.css
===================================================================
--- trunk/sandbox/samples/rich-message-demo/src/main/webapp/css/app.css
(rev 0)
+++ trunk/sandbox/samples/rich-message-demo/src/main/webapp/css/app.css 2007-07-19
19:36:44 UTC (rev 1709)
@@ -0,0 +1,7 @@
+.rich-message-label{
+ padding: 0px 10px;
+}
+
+.rich-message-marker{
+ vertical-align: text-bottom;
+}
\ No newline at end of file
Added: trunk/sandbox/samples/rich-message-demo/src/main/webapp/image/error.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/sandbox/samples/rich-message-demo/src/main/webapp/image/error.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/sandbox/samples/rich-message-demo/src/main/webapp/image/fatal.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/sandbox/samples/rich-message-demo/src/main/webapp/image/fatal.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/sandbox/samples/rich-message-demo/src/main/webapp/image/info.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/sandbox/samples/rich-message-demo/src/main/webapp/image/info.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/sandbox/samples/rich-message-demo/src/main/webapp/image/warn.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/sandbox/samples/rich-message-demo/src/main/webapp/image/warn.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified:
trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml
===================================================================
---
trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml 2007-07-19
19:35:43 UTC (rev 1708)
+++
trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml 2007-07-19
19:36:44 UTC (rev 1709)
@@ -5,14 +5,38 @@
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:r="http://labs.jboss.com/jbossrichfaces/ui/ui/message"
xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
-
+ <head>
+ <link rel="stylesheet" type="text/css"
href="/rich-message-demo/css/app.css" />
+ </head>
+
+
<h:form>
- <h:inputText id="input" value="hello!!">
- <f:validateLongRange minimum="1" maximum="500"/>
- </h:inputText>
+
+ <h:selectOneMenu id="select" value="">
+ <f:selectItem itemValue="error" itemLabel="error"/>
+ <f:selectItem itemValue="fatal" itemLabel="fatal"/>
+ <f:selectItem itemValue="warn" itemLabel="warning"/>
+ <f:selectItem itemValue="info" itemLabel="info"/>
+ <f:selectItem itemValue="passed" itemLabel="passed"/>
+ <f:validator validatorId="SelectValidator"/>
+ </h:selectOneMenu>
<h:commandButton value="submit"></h:commandButton>
- <r:message for="input"></r:message>
+ <r:message for="select" tooltip="true"
showDetail="false" showSummary="true"
markerLocation="left">
+ <f:facet name="errorMarker">
+ <h:graphicImage url="/image/error.gif"/>
+ </f:facet>
+ <f:facet name="fatalMarker">
+ <h:graphicImage url="/image/fatal.gif"/>
+ </f:facet>
+ <f:facet name="infoMarker">
+ <h:graphicImage url="/image/info.gif"/>
+ </f:facet>
+ <f:facet name="warnMarker">
+ <h:graphicImage url="/image/warn.gif"/>
+ </f:facet>
+ </r:message>
+
</h:form>
</html>
\ No newline at end of file