Author: konstantin.mishin
Date: 2010-07-21 12:45:44 -0400 (Wed, 21 Jul 2010)
New Revision: 18181
Added:
root/ui-sandbox/inputs/trunk/inputnumberslider/pom.xml
root/ui-sandbox/inputs/trunk/inputnumberslider/src/
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/config/
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/config/faces-config.xml
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/java/
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/resources/
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/resources/META-INF/
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/resources/META-INF/resources/
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/resources/META-INF/resources/bg.gif
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/resources/META-INF/resources/bg_field.gif
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/resources/META-INF/resources/handler.gif
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/resources/META-INF/resources/inputNumberSlider.ecss
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/templates/
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/templates/inputnumberslider.template.xml
Modified:
root/ui-sandbox/inputs/trunk/inputnumberslider/
Log:
add inputnumberslider project
Property changes on: root/ui-sandbox/inputs/trunk/inputnumberslider
___________________________________________________________________
Name: svn:ignore
+ .settings
target
.classpath
.project
Added: root/ui-sandbox/inputs/trunk/inputnumberslider/pom.xml
===================================================================
--- root/ui-sandbox/inputs/trunk/inputnumberslider/pom.xml (rev
0)
+++ root/ui-sandbox/inputs/trunk/inputnumberslider/pom.xml 2010-07-21 16:45:44 UTC (rev
18181)
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+JBoss, Home of Professional Open Source
+Copyright ${year}, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+
+This software 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 software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+-->
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <parent>
+ <groupId>org.richfaces.ui.inputs-sandbox</groupId>
+ <artifactId>richfaces-ui-inputs-parent</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ <relativePath>../parent/pom.xml</relativePath>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.ui.inputs-sandbox</groupId>
+ <artifactId>inputnumberslider</artifactId>
+ <name>Richfaces UI Sandbox Components: InputNumberSlider Component</name>
+ <packaging>jar</packaging>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.richfaces.cdk</groupId>
+ <artifactId>maven-cdk-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces.core</groupId>
+ <artifactId>richfaces-core-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.cdk</groupId>
+ <artifactId>annotations</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>${jsf2.api.groupid}</groupId>
+ <artifactId>${jsf2.api.artifactid}</artifactId>
+ <!--TODO: remove this dependency it should inherited from perent poms-->
+ <scope>provided</scope>
+ </dependency>
+ <!--dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet.jsp</groupId>
+ <artifactId>jsp-api</artifactId>
+ <scope>provided</scope>
+ </dependency-->
+ <dependency>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <!--dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jstl</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>${jsf2.impl.groupid}</groupId>
+ <artifactId>${jsf2.impl.artifactid}</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.test-jsf</groupId>
+ <artifactId>jsf-test-stage</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.test-jsf</groupId>
+ <artifactId>htmlunit-client</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.test-jsf</groupId>
+ <artifactId>jsf-mock</artifactId>
+ <scope>test</scope>
+ </dependency-->
+ </dependencies>
+
+ <scm>
+
<
connection>scm:svn:https://svn.jboss.org/repos/richfaces/root/ui-sandb...
+
<
developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/root...
+ <
url>http://fisheye.jboss.org/browse/richfaces</url>
+ </scm>
+</project>
Added: root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/config/faces-config.xml
===================================================================
--- root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/config/faces-config.xml
(rev 0)
+++
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/config/faces-config.xml 2010-07-21
16:45:44 UTC (rev 18181)
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+JBoss, Home of Professional Open Source
+Copyright ${year}, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+
+This software 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 software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+-->
+<faces-config version="2.0"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
+
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:cdk="http://richfaces.org/cdk/extensions"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <component>
+ <component-type>org.richfaces.InputNumberSlider</component-type>
+ <component-class>org.richfaces.component.HTMLInputNumberSlider</component-class>
+ <component-extension>
+ <cdk:generate>true</cdk:generate>
+ <cdk:base-class>javax.faces.component.UIInput</cdk:base-class>
+ <cdk:component-family>javax.faces.Input</cdk:component-family>
+ <cdk:renderer-id>org.richfaces.InputNumberSliderRenderer</cdk:renderer-id>
+ <cdk:tag>
+ <cdk:name>inputnumberslider</cdk:name>
+ <cdk:type>Facelets</cdk:type>
+ </cdk:tag>
+ </component-extension>
+ </component>
+ <faces-config-extension>
+ <cdk:taglib>
+ <cdk:shortName>ins</cdk:shortName>
+ <
cdk:uri>http://richfaces.org/inputnumberslider</cdk:uri>
+ </cdk:taglib>
+ </faces-config-extension>
+</faces-config>
Added:
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/resources/META-INF/resources/bg.gif
===================================================================
(Binary files differ)
Property changes on:
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/resources/META-INF/resources/bg.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/resources/META-INF/resources/bg_field.gif
===================================================================
(Binary files differ)
Property changes on:
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/resources/META-INF/resources/bg_field.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/resources/META-INF/resources/handler.gif
===================================================================
(Binary files differ)
Property changes on:
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/resources/META-INF/resources/handler.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/resources/META-INF/resources/inputNumberSlider.ecss
===================================================================
---
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/resources/META-INF/resources/inputNumberSlider.ecss
(rev 0)
+++
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/resources/META-INF/resources/inputNumberSlider.ecss 2010-07-21
16:45:44 UTC (rev 18181)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright ${year}, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+.sldr_size {
+ display: inline-block;
+ width: 200px;
+}
+
+.sldr_min {
+ display: block;
+ font-size: 11px;
+ border-left: 1px solid #c0c0c0;
+ padding-left: 3px;
+ font-family: arial;
+ font-size: 11px;
+ color: #000000;
+ float: left;
+ margin-bottom: 3px;
+}
+
+.sldr_max {
+ display: block;
+ font-size: 11px;
+ top: 0px;
+ right: -2px;
+ border-right: 1px solid #c0c0c0;
+ padding-right: 3px;
+ font-family: arial;
+ font-size: 11px;
+ color: #000000;
+ float: right;
+ margin-bottom: 3px;
+}
+
+.sldr_track {
+ background: url("#{resource['bg.gif']}") 1px 1px repeat-x #FFFFFF;
+ border: 1px solid #C0C0C0;
+ display: block;
+ font-size: 1px;
+ height: 6px;
+ clear: both;
+}
+
+.sldr_handler {
+ position: relative;
+ top: -1px;
+ left: 120px;
+}
+
+.sldr_field {
+ background: url("#{resource['bg_field.gif']}") top repeat-x #fff;
+ font-family: arial;
+ font-size: 11px;
+ color: #000000;
+ border: 1px inset #C0C0C0;
+ margin: 0px 10px 0px 10px;
+}
\ No newline at end of file
Property changes on:
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/resources/META-INF/resources/inputNumberSlider.ecss
___________________________________________________________________
Name: svn:executable
+ *
Added:
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/templates/inputnumberslider.template.xml
===================================================================
---
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/templates/inputnumberslider.template.xml
(rev 0)
+++
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/templates/inputnumberslider.template.xml 2010-07-21
16:45:44 UTC (rev 18181)
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+JBoss, Home of Professional Open Source
+Copyright ${year}, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+
+This software 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 software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+-->
+<cdk:root
xmlns="http://richfaces.org/cdk/xhtml-el"
xmlns:cdk="http://richfaces.org/cdk/core"
+
xmlns:cc="http://richfaces.org/cdk/jsf/composite">
+ <cc:interface>
+ <cdk:class>org.richfaces.renderkit.html.InputNumberSliderRenderer</cdk:class>
+ <cdk:superclass>javax.faces.render.Renderer</cdk:superclass>
+ <cdk:component-family>javax.faces.Input</cdk:component-family>
+ <cdk:renderer-type>org.richfaces.InputNumberSliderRenderer</cdk:renderer-type>
+ <cdk:resource-dependency name="inputNumberSlider.ecss" />
+ </cc:interface>
+ <cc:implementation>
+ <span id="#{clientId}" class="rf-ins">
+ <span class="sldr_size">
+ <span class="sldr_min">10</span>
+ <span class="sldr_max">100</span>
+ <span class="sldr_track">
+ <img
src="#{facesContext.application.resourceHandler.createResource('handler.gif').requestPath}"
+ width="7" height="8" alt="" border="0"
class="sldr_handler" />
+ </span>
+ </span>
+ <input class="sldr_field" size="3" value="10"
type="text" />
+ </span>
+ </cc:implementation>
+</cdk:root>