Author: nbelaevski
Date: 2007-06-07 18:46:35 -0400 (Thu, 07 Jun 2007)
New Revision: 1090
Added:
trunk/sandbox/calendar/src/main/config/component/calendar.xml
trunk/sandbox/calendar/src/main/java/org/richfaces/component/UICalendar.java
trunk/sandbox/calendar/src/main/templates/org/
trunk/sandbox/calendar/src/main/templates/org/richfaces/
trunk/sandbox/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx
Log:
calendar archetype created
Added: trunk/sandbox/calendar/src/main/config/component/calendar.xml
===================================================================
--- trunk/sandbox/calendar/src/main/config/component/calendar.xml
(rev 0)
+++ trunk/sandbox/calendar/src/main/config/component/calendar.xml 2007-06-07 22:46:35 UTC
(rev 1090)
@@ -0,0 +1,40 @@
+<?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.Calendar</name>
+ <family>org.richfaces.Calendar</family>
+ <classname>org.richfaces.component.html.HtmlCalendar</classname>
+ <superclass>org.richfaces.component.UICalendar</superclass>
+ <description>
+ <![CDATA[
+ ]]>
+ </description>
+ <renderer generate="true" override="true">
+ <name>org.richfaces.CalendarRenderer</name>
+ <template>org/richfaces/htmlCalendar.jspx</template>
+ </renderer>
+ <tag>
+ <name>calendar</name>
+ <classname>org.richfaces.taglib.CalendarTag</classname>
+ <superclass>
+ org.ajax4jsf.framework.taglib.HtmlComponentTagBase
+ </superclass>
+ </tag>
+ <!--
+ <taghandler>
+ <classname>org.ajax4jsf.tag.TestHandler</classname>
+ </taghandler>
+ -->
+ &ui_component_attributes;
+ <!--
+ <property>
+ <name>param</name>
+ <classname>java.lang.String</classname>
+ <description>
+ </description>
+ <defaultvalue>"default"</defaultvalue>
+ </property>
+ -->
+ </component>
+</components>
Added: trunk/sandbox/calendar/src/main/java/org/richfaces/component/UICalendar.java
===================================================================
--- trunk/sandbox/calendar/src/main/java/org/richfaces/component/UICalendar.java
(rev 0)
+++
trunk/sandbox/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-06-07
22:46:35 UTC (rev 1090)
@@ -0,0 +1,19 @@
+/**
+ *
+ */
+
+package org.richfaces.component;
+
+import javax.faces.component.UIComponentBase;
+
+/**
+ * JSF component class
+ *
+ */
+public abstract class UICalendar extends UIComponentBase {
+
+ private static final String COMPONENT_TYPE = "org.richfaces.Calendar";
+
+ private static final String COMPONENT_FAMILY = "org.richfaces.Calendar";
+
+}
Added: trunk/sandbox/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx
===================================================================
--- trunk/sandbox/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx
(rev 0)
+++ trunk/sandbox/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx 2007-06-07
22:46:35 UTC (rev 1090)
@@ -0,0 +1,17 @@
+<?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"
+ class="org.richfaces.renderkit.html.CalendarRenderer"
+ baseclass="org.ajax4jsf.framework.renderer.AjaxComponentRendererBase"
+ component="org.richfaces.component.UICalendar"
+ >
+ <f:clientid var="clientId"/>
+ <div id="#{clientId}"
+ x:passThruWithExclusions="value,name,type,id"
+ >
+ </div>
+</f:root>
\ No newline at end of file