Author: abelevich
Date: 2007-07-17 13:27:07 -0400 (Tue, 17 Jul 2007)
New Revision: 1663
Added:
trunk/sandbox/ui/message/
trunk/sandbox/ui/message/pom.xml
trunk/sandbox/ui/message/src/
trunk/sandbox/ui/message/src/main/
trunk/sandbox/ui/message/src/main/config/
trunk/sandbox/ui/message/src/main/config/component/
trunk/sandbox/ui/message/src/main/config/component/message.xml
trunk/sandbox/ui/message/src/main/java/
trunk/sandbox/ui/message/src/main/java/org/
trunk/sandbox/ui/message/src/main/java/org/richfaces/
trunk/sandbox/ui/message/src/main/java/org/richfaces/component/
trunk/sandbox/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java
trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/
trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/
trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java
trunk/sandbox/ui/message/src/main/templates/
trunk/sandbox/ui/message/src/main/templates/org/
trunk/sandbox/ui/message/src/main/templates/org/richfaces/
trunk/sandbox/ui/message/src/main/templates/org/richfaces/message.jspx
trunk/sandbox/ui/message/src/test/
trunk/sandbox/ui/message/src/test/java/
trunk/sandbox/ui/message/src/test/java/org/
trunk/sandbox/ui/message/src/test/java/org/richfaces/
trunk/sandbox/ui/message/src/test/java/org/richfaces/sandbox/
trunk/sandbox/ui/message/src/test/java/org/richfaces/sandbox/component/
trunk/sandbox/ui/message/src/test/java/org/richfaces/sandbox/component/JSFComponentTest.java
Log:
richfaces message component skeleton without markup
Added: trunk/sandbox/ui/message/pom.xml
===================================================================
--- trunk/sandbox/ui/message/pom.xml (rev 0)
+++ trunk/sandbox/ui/message/pom.xml 2007-07-17 17:27:07 UTC (rev 1663)
@@ -0,0 +1,50 @@
+<?xml version="1.0"?><project>
+ <parent>
+ <artifactId>ui</artifactId>
+ <groupId>org.richfaces.sandbox</groupId>
+ <version>3.1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.sandbox.ui</groupId>
+ <artifactId>message</artifactId>
+ <name>Message</name>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.richfaces.cdk</groupId>
+ <artifactId>maven-cdk-plugin</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>generate-test-sources</id>
+ <phase>generate-test-sources</phase>
+ <goals>
+ <goal>generate-tests</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <library>
+ <prefix>org.richfaces</prefix>
+ <taglib>
+ <shortName>message</shortName>
+ </taglib>
+ </library>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>impl</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Added: trunk/sandbox/ui/message/src/main/config/component/message.xml
===================================================================
--- trunk/sandbox/ui/message/src/main/config/component/message.xml
(rev 0)
+++ trunk/sandbox/ui/message/src/main/config/component/message.xml 2007-07-17 17:27:07 UTC
(rev 1663)
@@ -0,0 +1,173 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE components PUBLIC "-//AJAX4JSF//CDK Generator config/EN"
"https://ajax4jsf.dev.java.net/nonav/dtds/component-config.dtd" >
+<components>
+ <component>
+ <name>org.richfaces.component.RichMessage</name>
+ <family>org.richfaces.component.RichMessage</family>
+ <classname>
+ org.richfaces.component.html.HtmlRichMessage
+ </classname>
+ <superclass>org.richfaces.component.UIRichMessage</superclass>
+
+ <test>
+ <classname>org.richfaces.component.html.HtmlRichMessageTest</classname>
+ <superclassname>org.ajax4jsf.tests.AbstractAjax4JsfTestCase</superclassname>
+ </test>
+
+ <description>
+ <![CDATA[ richfaces Message Component ]]>
+ </description>
+
+ <renderer generate="true" override="true">
+ <name>org.richfaces.renderkit.html.RichMessageRenderer</name>
+ <template>org/richfaces/message.jspx</template>
+ </renderer>
+ <tag>
+ <name>message</name>
+ <classname>org.richfaces.taglib.RichMessageTag</classname>
+ <superclass>
+ org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
+ </superclass>
+
+ <test>
+ <classname>org.richfaces.taglib.RichMessageTagTest</classname>
+ <superclassname>org.ajax4jsf.tests.AbstractAjax4JsfTestCase</superclassname>
+ </test>
+
+ </tag>
+
+ <property>
+ <name>passedLabel</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Attribute should define the label to be displayed when no message appears
+ </description>
+ </property>
+
+ <property>
+ <name>markerLocation</name>
+ <classname>java.lang.String</classname>
+ <description>
+ marker location relatively to informational part. Possible values are left(default)
and right
+ </description>
+ <defaultvalue>"left"</defaultvalue>
+ </property>
+
+ <property>
+ <name>for</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Client identifier of the component for which to display messages
+ </description>
+ </property>
+
+ <property>
+ <name>showDetail</name>
+ <classname>boolean</classname>
+ <defaultvalue>true</defaultvalue>
+ </property>
+
+ <property>
+ <name>showSummary</name>
+ <classname>boolean</classname>
+ <defaultvalue>false</defaultvalue>
+ </property>
+
+ <property>
+ <name>title</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>tooltip</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>errorClass</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>fatalClass</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>infoClass</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>styleClass</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>warnClass</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>errorMarkerClass</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>warnClass</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>errorMarkerClass</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>fatalMarkerClass</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>infoMarkerClass</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>warnMarkerClass</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>MarkerClass</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>errorLabelClass</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>fatalLabelClass</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>infoLabelClass</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>warnLabelClass</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>LabelClass</name>
+ <classname>java.lang.String</classname>
+ </property>
+ &ui_component_attributes;
+ </component>
+
+</components>
\ No newline at end of file
Added: trunk/sandbox/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java
===================================================================
--- trunk/sandbox/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java
(rev 0)
+++
trunk/sandbox/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java 2007-07-17
17:27:07 UTC (rev 1663)
@@ -0,0 +1,11 @@
+package org.richfaces.component;
+
+import javax.faces.component.UIMessage;
+
+
+/**
+ * @author Anton Belevich
+ *
+ */
+public abstract class UIRichMessage extends UIMessage{
+}
\ No newline at end of file
Added:
trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java
===================================================================
---
trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java
(rev 0)
+++
trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java 2007-07-17
17:27:07 UTC (rev 1663)
@@ -0,0 +1,12 @@
+package org.richfaces.renderkit.html;
+
+import org.ajax4jsf.renderkit.RendererBase;
+
+
+/**
+ * @author Anton Belevich
+ *
+ */
+public abstract class RichMessageBaseRenderer extends RendererBase{
+}
+
\ No newline at end of file
Added: trunk/sandbox/ui/message/src/main/templates/org/richfaces/message.jspx
===================================================================
--- trunk/sandbox/ui/message/src/main/templates/org/richfaces/message.jspx
(rev 0)
+++ trunk/sandbox/ui/message/src/main/templates/org/richfaces/message.jspx 2007-07-17
17:27:07 UTC (rev 1663)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:root
+
xmlns:f="http://ajax4jsf.org/cdk/template"
+ xmlns:c="
http://java.sun.com/jsf/core"
+ xmlns:ui="
http://ajax4jsf.org/cdk/ui"
+ xmlns:u="
http://ajax4jsf.org/cdk/u"
+ xmlns:x="
http://ajax4jsf.org/cdk/x"
+ xmlns:h="
http://ajax4jsf.org/cdk/headers"
+
xmlns:vcp="http://ajax4jsf.org/cdk/vcp"
+ class="org.richfaces.renderkit.html.RichMessageRenderer"
+ baseclass="org.richfaces.renderkit.html.RichMessageBaseRenderer"
+ component="org.richfaces.component.UIRichMessage"
+ >
+
+</f:root>
\ No newline at end of file
Added:
trunk/sandbox/ui/message/src/test/java/org/richfaces/sandbox/component/JSFComponentTest.java
===================================================================
---
trunk/sandbox/ui/message/src/test/java/org/richfaces/sandbox/component/JSFComponentTest.java
(rev 0)
+++
trunk/sandbox/ui/message/src/test/java/org/richfaces/sandbox/component/JSFComponentTest.java 2007-07-17
17:27:07 UTC (rev 1663)
@@ -0,0 +1,53 @@
+/**
+ * License Agreement.
+ *
+ * Ajax4jsf 1.1 - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.sandbox.component;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+import javax.faces.component.UIComponent;
+
+/**
+ * Unit test for simple Component.
+ */
+public class JSFComponentTest
+ extends TestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public JSFComponentTest( String testName )
+ {
+ super( testName );
+ }
+
+
+ /**
+ * Rigourous Test :-)
+ */
+ public void testComponent()
+ {
+ assertTrue( true );
+ }
+}