JBoss Rich Faces SVN: r11973 - trunk/ui/drag-drop/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-12-22 08:54:39 -0500 (Mon, 22 Dec 2008)
New Revision: 11973
Modified:
trunk/ui/drag-drop/src/main/config/component/dragSupport.xml
Log:
https://jira.jboss.org/jira/browse/RF-5392
Modified: trunk/ui/drag-drop/src/main/config/component/dragSupport.xml
===================================================================
--- trunk/ui/drag-drop/src/main/config/component/dragSupport.xml 2008-12-22 13:53:56 UTC (rev 11972)
+++ trunk/ui/drag-drop/src/main/config/component/dragSupport.xml 2008-12-22 13:54:39 UTC (rev 11973)
@@ -80,7 +80,17 @@
<property hidden="true" >
<name>actionExpression</name>
</property>
+
+ <property hidden="true">
+ <name>ajaxSingle</name>
+ <classname>boolean</classname>
+ </property>
+ <property hidden="true">
+ <name>process</name>
+ <classname>java.lang.Object</classname>
+ </property>
+
</component>
16 years
JBoss Rich Faces SVN: r11972 - in trunk/test-applications/seleniumTest/richfaces/src: test/java/org/richfaces and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-12-22 08:53:56 -0500 (Mon, 22 Dec 2008)
New Revision: 11972
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxCommandLink/ajaxCommandLinkAutoTest.xhtml
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/AutoTester.java
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumEvent.java
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxCommandLinkTest.java
Log:
Fix commandLink test
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxCommandLink/ajaxCommandLinkAutoTest.xhtml
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxCommandLink/ajaxCommandLinkAutoTest.xhtml 2008-12-22 13:49:03 UTC (rev 11971)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxCommandLink/ajaxCommandLinkAutoTest.xhtml 2008-12-22 13:53:56 UTC (rev 11972)
@@ -29,6 +29,8 @@
onmouseout="EventQueue.fire('onmouseout')"
onmouseover="EventQueue.fire('onmouseover')"
onmouseup="EventQueue.fire('onmouseup')"
+ onfocus="EventQueue.fire('onfocus')"
+ onchange="EventQueue.fire('onchange')"
>
<f:param name="parameter1" value="value1" />
<f:param name="parameter2" value="value2" />
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/AutoTester.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/AutoTester.java 2008-12-22 13:49:03 UTC (rev 11971)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/AutoTester.java 2008-12-22 13:53:56 UTC (rev 11972)
@@ -342,6 +342,7 @@
private void checkComponentReRendered() {
if (base.getReRendersId() == null) {
+ base.sendAjax();
return;
}
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumEvent.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumEvent.java 2008-12-22 13:49:03 UTC (rev 11971)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumEvent.java 2008-12-22 13:53:56 UTC (rev 11972)
@@ -52,7 +52,7 @@
};
static {
STANDARD_HTML_EVENTS.add(ONCLICK);
- STANDARD_HTML_EVENTS.add(ONDBLCLICK);
+ //STANDARD_HTML_EVENTS.add(ONDBLCLICK);
STANDARD_HTML_EVENTS.add(ONMOUSEOVER);
STANDARD_HTML_EVENTS.add(ONMOUSEMOVE);
STANDARD_HTML_EVENTS.add(ONMOUSEOUT);
@@ -61,7 +61,7 @@
STANDARD_HTML_EVENTS.add(ONKEYDOWN);
STANDARD_HTML_EVENTS.add(ONKEYUP);
STANDARD_HTML_EVENTS.add(ONKEYPRESS);
- STANDARD_HTML_EVENTS.add(ONBLUR);
+ //STANDARD_HTML_EVENTS.add(ONBLUR);
STANDARD_HTML_EVENTS.add(ONFOCUS);
STANDARD_HTML_EVENTS.add(ONCHANGE);
}
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java 2008-12-22 13:49:03 UTC (rev 11971)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java 2008-12-22 13:53:56 UTC (rev 11972)
@@ -1264,6 +1264,8 @@
selenium.keyUp(id, "a");
}else if (ev == SeleniumEvent.ONKEYPRESS) {
selenium.keyPress(id, "a");
+ }else if (ev == SeleniumEvent.ONFOCUS) {
+ selenium.focus(id);
}
}
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxCommandLinkTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxCommandLinkTest.java 2008-12-22 13:49:03 UTC (rev 11971)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxCommandLinkTest.java 2008-12-22 13:53:56 UTC (rev 11972)
@@ -20,7 +20,9 @@
*/
package org.richfaces.testng;
+import java.util.ArrayList;
import java.util.HashMap;
+import java.util.List;
import java.util.Map;
import org.ajax4jsf.template.Template;
@@ -44,13 +46,45 @@
}
+ private void testEvents (AutoTester tester, Template template) {
+ String id = tester.getClientId(AutoTester.COMPONENT_ID, template);
+ List<String> events = new ArrayList<String>();
+
+ events.add("onfocus");
+ events.add("onclick");
+ clickById(id);
+ assertEvents(events);
+
+ selenium.mouseOver(id);
+ selenium.mouseDown(id);
+ selenium.mouseMove(id);
+ selenium.mouseUp(id);
+ selenium.mouseOut(id);
+ assertEvent("onmouseover");
+ assertEvent("onmousedown");
+ assertEvent("onmousemove");
+ assertEvent("onmouseup");
+ assertEvent("onmouseout");
+
+ selenium.keyDown(id, "a");
+ selenium.keyPress(id, "a");
+ selenium.keyUp(id, "a");
+ assertEvent("onkeydown");
+ assertEvent("onkeypress");
+ assertEvent("onkeyup");
+
+
+ }
+
@Test
public void testHTMLAttributes(Template template) {
AutoTester tester = getAutoTester(this);
tester.renderPage(template, null);
tester.testStyleAndClasses(new String [] {"noname"}, styleAttributes);
- tester.testHTMLEvents();
+ //tester.testHTMLEvents();
+ testEvents(tester, template);
+
}
16 years
JBoss Rich Faces SVN: r11971 - in trunk/test-applications/facelets/src/main: resources and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: adubovsky
Date: 2008-12-22 08:49:03 -0500 (Mon, 22 Dec 2008)
New Revision: 11971
Added:
trunk/test-applications/facelets/src/main/resources/tTree/
trunk/test-applications/facelets/src/main/resources/tTree/pom_sample.xml
trunk/test-applications/facelets/src/main/resources/tTree/test.xml
Removed:
trunk/test-applications/facelets/src/main/java/tTree/pom_sample.xml
trunk/test-applications/facelets/src/main/java/tTree/test.xml
Log:
Move pom-sample.xml to resources
Deleted: trunk/test-applications/facelets/src/main/java/tTree/pom_sample.xml
===================================================================
--- trunk/test-applications/facelets/src/main/java/tTree/pom_sample.xml 2008-12-22 13:46:40 UTC (rev 11970)
+++ trunk/test-applications/facelets/src/main/java/tTree/pom_sample.xml 2008-12-22 13:49:03 UTC (rev 11971)
@@ -1,102 +0,0 @@
-<?xml version="1.0"?>
-
-<project>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.richfaces</groupId>
- <artifactId>tree</artifactId>
- <version>1.0-SNAPSHOT</version>
- <build>
- <plugins>
- <plugin>
- <groupId>org.ajax4jsf.cdk</groupId>
- <artifactId>maven-cdk-plugin</artifactId>
- <version>1.1.0-SNAPSHOT</version>
- <executions>
- <execution>
- <phase>generate-sources</phase>
- <goals>
- <goal>generate</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <library>
- <prefix>org.richfaces</prefix>
- <taglib>
- <shortName>tree</shortName>
- </taglib>
- </library>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <repositories>
- <repository>
- <releases />
- <snapshots>
- <enabled>false</enabled>
- <updatePolicy>never</updatePolicy>
- </snapshots>
- <id>maven2-repository.dev.java.net</id>
- <name>Java.net Repository for Maven</name>
- <url>https://maven2-repository.dev.java.net/nonav/repository</url>
- </repository>
- <repository>
- <releases>
- <enabled>false</enabled>
- </releases>
- <snapshots>
- <updatePolicy>always</updatePolicy>
- </snapshots>
- <id>maven2-snapshots.ajax4jsf.org</id>
- <name>Ajax4jsf Repository for Maven Snapshots</name>
- <url>https://ajax4jsf.dev.java.net/nonav/snapshots</url>
- </repository>
- </repositories>
- <pluginRepositories>
- <pluginRepository>
- <releases>
- <enabled>false</enabled>
- </releases>
- <snapshots>
- <updatePolicy>always</updatePolicy>
- </snapshots>
- <id>maven2-snapshots.ajax4jsf.org</id>
- <name>Ajax4jsf Repository for Maven Snapshots</name>
- <url>https://ajax4jsf.dev.java.net/nonav/snapshots</url>
- </pluginRepository>
- </pluginRepositories>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>com.sun.facelets</groupId>
- <artifactId>jsf-facelets</artifactId>
- <version>1.1.6</version>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <version>2.4</version>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>jsp-api</artifactId>
- <version>2.0</version>
- </dependency>
- <dependency>
- <groupId>javax.faces</groupId>
- <artifactId>jsf-api</artifactId>
- <version>1.1_02</version>
- </dependency>
- <dependency>
- <groupId>org.ajax4jsf</groupId>
- <artifactId>framework</artifactId>
- <version>1.1.0-SNAPSHOT</version>
- </dependency>
- </dependencies>
-</project>
\ No newline at end of file
Deleted: trunk/test-applications/facelets/src/main/java/tTree/test.xml
===================================================================
--- trunk/test-applications/facelets/src/main/java/tTree/test.xml 2008-12-22 13:46:40 UTC (rev 11970)
+++ trunk/test-applications/facelets/src/main/java/tTree/test.xml 2008-12-22 13:49:03 UTC (rev 11971)
@@ -1,74 +0,0 @@
-<?xml version="1.0"?>
-<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
- <description>RF Test-Application</description>
- <display-name>test-application</display-name>
- <context-param>
- <param-name>org.ajax4jsf.SKIN</param-name>
- <param-value>#{skinBean.skin}</param-value>
- </context-param>
- <context-param>
- <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
- <param-value>.xhtml</param-value>
- </context-param>
- <context-param>
- <param-name>facelets.REFRESH_PERIOD</param-name>
- <param-value>2</param-value>
- </context-param>
- <context-param>
- <param-name>facelets.DEVELOPMENT</param-name>
- <param-value>true</param-value>
- </context-param>
- <context-param>
- <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
- <param-value>client</param-value>
- </context-param>
- <context-param>
- <param-name>com.sun.faces.validateXml</param-name>
- <param-value>true</param-value>
- </context-param>
- <context-param>
- <param-name>com.sun.faces.verifyObjects</param-name>
- <param-value>true</param-value>
- </context-param>
- <context-param>
- <param-name>javax.faces.CONFIG_FILES</param-name>
- <param-value>/WEB-INF/faces-config-RichPanelsBean.xml,/WEB-INF/faces-config-DataTable.xml,/WEB-INF/faces-config-SimpleTogglePanel.xml,
- /WEB-INF/faces-config-Panel.xml,/WEB-INF/faces-config-PanelBar.xml,/WEB-INF/faces-config-TabPanel.xml,
- /WEB-INF/faces-config-TogglePanel.xml,/WEB-INF/faces-config-Paint2D.xml,/WEB-INF/faces-config-InputNumberSlider.xml,
- /WEB-INF/faces-config-InputNumberSpinner.xml,/WEB-INF/faces-config-DDMenu.xml,/WEB-INF/faces-config-Tree.xml,
- /WEB-INF/faces-config-PanelMenu.xml,/WEB-INF/faces-config-Icon.xml,/WEB-INF/faces-config-ModalPanel.xml,
- /WEB-INF/faces-config-tooltip.xml,/WEB-INF/faces-config-Skin.xml,/WEB-INF/faces-config-Calendar.xml,
- /WEB-INF/faces-config-Gmap.xml,/WEB-INF/faces-config-DataFilterSlider.xml,/WEB-INF/faces-config-Separator.xml,
- /WEB-INF/faces-config-Spacer.xml,/WEB-INF/faces-config-ToolBar.xml,/WEB-INF/faces-config-DataScroller.xml,
- /WEB-INF/faces-config-SuggestionBox.xml,/WEB-INF/faces-config-Message.xml,
- /WEB-INF/faces-config-VirtualEarth.xml,/WEB-INF/faces-config-Effect.xml,/WEB-INF/faces-config-Insert.xml,
- /WEB-INF/faces-config-RichBean.xml,/WEB-INF/faces-config-ScrollableDataTable.xml,
- /WEB-INF/faces-config-RichTest.xml,/WEB-INF/faces-config-jQuery.xml,/WEB-INF/faces-config-DragAndDrop.xml,
- /WEB-INF/faces-config-OrderingList.xml,/WEB-INF/faces-config-DataOrderedList.xml,/WEB-INF/faces-config-DataDefinitionList.xml</param-value>
- </context-param>
- <filter>
- <display-name>Ajax4jsf Filter</display-name>
- <filter-name>ajax4jsf</filter-name>
- <filter-class>org.ajax4jsf.Filter</filter-class>
- </filter>
- <filter-mapping>
- <filter-name>ajax4jsf</filter-name>
- <servlet-name>Faces Servlet</servlet-name>
- <dispatcher>FORWARD</dispatcher>
- <dispatcher>REQUEST</dispatcher>
- <dispatcher>INCLUDE</dispatcher>
- </filter-mapping>
- <servlet>
- <servlet-name>Faces Servlet</servlet-name>
- <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <servlet-mapping>
- <servlet-name>Faces Servlet</servlet-name>
- <url-pattern>*.jsf</url-pattern>
- </servlet-mapping>
- <login-config>
- <auth-method>BASIC</auth-method>
- </login-config>
-</web-app>
Added: trunk/test-applications/facelets/src/main/resources/tTree/pom_sample.xml
===================================================================
--- trunk/test-applications/facelets/src/main/resources/tTree/pom_sample.xml (rev 0)
+++ trunk/test-applications/facelets/src/main/resources/tTree/pom_sample.xml 2008-12-22 13:49:03 UTC (rev 11971)
@@ -0,0 +1,102 @@
+<?xml version="1.0"?>
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces</groupId>
+ <artifactId>tree</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.ajax4jsf.cdk</groupId>
+ <artifactId>maven-cdk-plugin</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <library>
+ <prefix>org.richfaces</prefix>
+ <taglib>
+ <shortName>tree</shortName>
+ </taglib>
+ </library>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <repositories>
+ <repository>
+ <releases />
+ <snapshots>
+ <enabled>false</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ <id>maven2-repository.dev.java.net</id>
+ <name>Java.net Repository for Maven</name>
+ <url>https://maven2-repository.dev.java.net/nonav/repository</url>
+ </repository>
+ <repository>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <updatePolicy>always</updatePolicy>
+ </snapshots>
+ <id>maven2-snapshots.ajax4jsf.org</id>
+ <name>Ajax4jsf Repository for Maven Snapshots</name>
+ <url>https://ajax4jsf.dev.java.net/nonav/snapshots</url>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <updatePolicy>always</updatePolicy>
+ </snapshots>
+ <id>maven2-snapshots.ajax4jsf.org</id>
+ <name>Ajax4jsf Repository for Maven Snapshots</name>
+ <url>https://ajax4jsf.dev.java.net/nonav/snapshots</url>
+ </pluginRepository>
+ </pluginRepositories>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.facelets</groupId>
+ <artifactId>jsf-facelets</artifactId>
+ <version>1.1.6</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.4</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jsp-api</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <version>1.1_02</version>
+ </dependency>
+ <dependency>
+ <groupId>org.ajax4jsf</groupId>
+ <artifactId>framework</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/resources/tTree/test.xml
===================================================================
--- trunk/test-applications/facelets/src/main/resources/tTree/test.xml (rev 0)
+++ trunk/test-applications/facelets/src/main/resources/tTree/test.xml 2008-12-22 13:49:03 UTC (rev 11971)
@@ -0,0 +1,74 @@
+<?xml version="1.0"?>
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <description>RF Test-Application</description>
+ <display-name>test-application</display-name>
+ <context-param>
+ <param-name>org.ajax4jsf.SKIN</param-name>
+ <param-value>#{skinBean.skin}</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.REFRESH_PERIOD</param-name>
+ <param-value>2</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.DEVELOPMENT</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>client</param-value>
+ </context-param>
+ <context-param>
+ <param-name>com.sun.faces.validateXml</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>com.sun.faces.verifyObjects</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.CONFIG_FILES</param-name>
+ <param-value>/WEB-INF/faces-config-RichPanelsBean.xml,/WEB-INF/faces-config-DataTable.xml,/WEB-INF/faces-config-SimpleTogglePanel.xml,
+ /WEB-INF/faces-config-Panel.xml,/WEB-INF/faces-config-PanelBar.xml,/WEB-INF/faces-config-TabPanel.xml,
+ /WEB-INF/faces-config-TogglePanel.xml,/WEB-INF/faces-config-Paint2D.xml,/WEB-INF/faces-config-InputNumberSlider.xml,
+ /WEB-INF/faces-config-InputNumberSpinner.xml,/WEB-INF/faces-config-DDMenu.xml,/WEB-INF/faces-config-Tree.xml,
+ /WEB-INF/faces-config-PanelMenu.xml,/WEB-INF/faces-config-Icon.xml,/WEB-INF/faces-config-ModalPanel.xml,
+ /WEB-INF/faces-config-tooltip.xml,/WEB-INF/faces-config-Skin.xml,/WEB-INF/faces-config-Calendar.xml,
+ /WEB-INF/faces-config-Gmap.xml,/WEB-INF/faces-config-DataFilterSlider.xml,/WEB-INF/faces-config-Separator.xml,
+ /WEB-INF/faces-config-Spacer.xml,/WEB-INF/faces-config-ToolBar.xml,/WEB-INF/faces-config-DataScroller.xml,
+ /WEB-INF/faces-config-SuggestionBox.xml,/WEB-INF/faces-config-Message.xml,
+ /WEB-INF/faces-config-VirtualEarth.xml,/WEB-INF/faces-config-Effect.xml,/WEB-INF/faces-config-Insert.xml,
+ /WEB-INF/faces-config-RichBean.xml,/WEB-INF/faces-config-ScrollableDataTable.xml,
+ /WEB-INF/faces-config-RichTest.xml,/WEB-INF/faces-config-jQuery.xml,/WEB-INF/faces-config-DragAndDrop.xml,
+ /WEB-INF/faces-config-OrderingList.xml,/WEB-INF/faces-config-DataOrderedList.xml,/WEB-INF/faces-config-DataDefinitionList.xml</param-value>
+ </context-param>
+ <filter>
+ <display-name>Ajax4jsf Filter</display-name>
+ <filter-name>ajax4jsf</filter-name>
+ <filter-class>org.ajax4jsf.Filter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>ajax4jsf</filter-name>
+ <servlet-name>Faces Servlet</servlet-name>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ </filter-mapping>
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
+</web-app>
16 years
JBoss Rich Faces SVN: r11970 - in trunk/test-applications/jsp/src/main: resources and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: adubovsky
Date: 2008-12-22 08:46:40 -0500 (Mon, 22 Dec 2008)
New Revision: 11970
Added:
trunk/test-applications/jsp/src/main/resources/tTree/
trunk/test-applications/jsp/src/main/resources/tTree/pom_sample.xml
trunk/test-applications/jsp/src/main/resources/tTree/test.xml
Removed:
trunk/test-applications/jsp/src/main/java/tTree/pom_sample.xml
trunk/test-applications/jsp/src/main/java/tTree/test.xml
Log:
Move pom-sample.xml to resources
Deleted: trunk/test-applications/jsp/src/main/java/tTree/pom_sample.xml
===================================================================
--- trunk/test-applications/jsp/src/main/java/tTree/pom_sample.xml 2008-12-22 13:26:44 UTC (rev 11969)
+++ trunk/test-applications/jsp/src/main/java/tTree/pom_sample.xml 2008-12-22 13:46:40 UTC (rev 11970)
@@ -1,102 +0,0 @@
-<?xml version="1.0"?>
-
-<project>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.richfaces</groupId>
- <artifactId>tree</artifactId>
- <version>1.0-SNAPSHOT</version>
- <build>
- <plugins>
- <plugin>
- <groupId>org.ajax4jsf.cdk</groupId>
- <artifactId>maven-cdk-plugin</artifactId>
- <version>1.1.0-SNAPSHOT</version>
- <executions>
- <execution>
- <phase>generate-sources</phase>
- <goals>
- <goal>generate</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <library>
- <prefix>org.richfaces</prefix>
- <taglib>
- <shortName>tree</shortName>
- </taglib>
- </library>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <repositories>
- <repository>
- <releases />
- <snapshots>
- <enabled>false</enabled>
- <updatePolicy>never</updatePolicy>
- </snapshots>
- <id>maven2-repository.dev.java.net</id>
- <name>Java.net Repository for Maven</name>
- <url>https://maven2-repository.dev.java.net/nonav/repository</url>
- </repository>
- <repository>
- <releases>
- <enabled>false</enabled>
- </releases>
- <snapshots>
- <updatePolicy>always</updatePolicy>
- </snapshots>
- <id>maven2-snapshots.ajax4jsf.org</id>
- <name>Ajax4jsf Repository for Maven Snapshots</name>
- <url>https://ajax4jsf.dev.java.net/nonav/snapshots</url>
- </repository>
- </repositories>
- <pluginRepositories>
- <pluginRepository>
- <releases>
- <enabled>false</enabled>
- </releases>
- <snapshots>
- <updatePolicy>always</updatePolicy>
- </snapshots>
- <id>maven2-snapshots.ajax4jsf.org</id>
- <name>Ajax4jsf Repository for Maven Snapshots</name>
- <url>https://ajax4jsf.dev.java.net/nonav/snapshots</url>
- </pluginRepository>
- </pluginRepositories>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>com.sun.facelets</groupId>
- <artifactId>jsf-facelets</artifactId>
- <version>1.1.6</version>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <version>2.4</version>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>jsp-api</artifactId>
- <version>2.0</version>
- </dependency>
- <dependency>
- <groupId>javax.faces</groupId>
- <artifactId>jsf-api</artifactId>
- <version>1.1_02</version>
- </dependency>
- <dependency>
- <groupId>org.ajax4jsf</groupId>
- <artifactId>framework</artifactId>
- <version>1.1.0-SNAPSHOT</version>
- </dependency>
- </dependencies>
-</project>
\ No newline at end of file
Deleted: trunk/test-applications/jsp/src/main/java/tTree/test.xml
===================================================================
--- trunk/test-applications/jsp/src/main/java/tTree/test.xml 2008-12-22 13:26:44 UTC (rev 11969)
+++ trunk/test-applications/jsp/src/main/java/tTree/test.xml 2008-12-22 13:46:40 UTC (rev 11970)
@@ -1,74 +0,0 @@
-<?xml version="1.0"?>
-<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
- <description>RF Test-Application</description>
- <display-name>test-application</display-name>
- <context-param>
- <param-name>org.ajax4jsf.SKIN</param-name>
- <param-value>#{skinBean.skin}</param-value>
- </context-param>
- <context-param>
- <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
- <param-value>.xhtml</param-value>
- </context-param>
- <context-param>
- <param-name>facelets.REFRESH_PERIOD</param-name>
- <param-value>2</param-value>
- </context-param>
- <context-param>
- <param-name>facelets.DEVELOPMENT</param-name>
- <param-value>true</param-value>
- </context-param>
- <context-param>
- <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
- <param-value>client</param-value>
- </context-param>
- <context-param>
- <param-name>com.sun.faces.validateXml</param-name>
- <param-value>true</param-value>
- </context-param>
- <context-param>
- <param-name>com.sun.faces.verifyObjects</param-name>
- <param-value>true</param-value>
- </context-param>
- <context-param>
- <param-name>javax.faces.CONFIG_FILES</param-name>
- <param-value>/WEB-INF/faces-config-RichPanelsBean.xml,/WEB-INF/faces-config-DataTable.xml,/WEB-INF/faces-config-SimpleTogglePanel.xml,
- /WEB-INF/faces-config-Panel.xml,/WEB-INF/faces-config-PanelBar.xml,/WEB-INF/faces-config-TabPanel.xml,
- /WEB-INF/faces-config-TogglePanel.xml,/WEB-INF/faces-config-Paint2D.xml,/WEB-INF/faces-config-InputNumberSlider.xml,
- /WEB-INF/faces-config-InputNumberSpinner.xml,/WEB-INF/faces-config-DDMenu.xml,/WEB-INF/faces-config-Tree.xml,
- /WEB-INF/faces-config-PanelMenu.xml,/WEB-INF/faces-config-Icon.xml,/WEB-INF/faces-config-ModalPanel.xml,
- /WEB-INF/faces-config-tooltip.xml,/WEB-INF/faces-config-Skin.xml,/WEB-INF/faces-config-Calendar.xml,
- /WEB-INF/faces-config-Gmap.xml,/WEB-INF/faces-config-DataFilterSlider.xml,/WEB-INF/faces-config-Separator.xml,
- /WEB-INF/faces-config-Spacer.xml,/WEB-INF/faces-config-ToolBar.xml,/WEB-INF/faces-config-DataScroller.xml,
- /WEB-INF/faces-config-SuggestionBox.xml,/WEB-INF/faces-config-Message.xml,
- /WEB-INF/faces-config-VirtualEarth.xml,/WEB-INF/faces-config-Effect.xml,/WEB-INF/faces-config-Insert.xml,
- /WEB-INF/faces-config-RichBean.xml,/WEB-INF/faces-config-ScrollableDataTable.xml,
- /WEB-INF/faces-config-RichTest.xml,/WEB-INF/faces-config-jQuery.xml,/WEB-INF/faces-config-DragAndDrop.xml,
- /WEB-INF/faces-config-OrderingList.xml,/WEB-INF/faces-config-DataOrderedList.xml,/WEB-INF/faces-config-DataDefinitionList.xml</param-value>
- </context-param>
- <filter>
- <display-name>Ajax4jsf Filter</display-name>
- <filter-name>ajax4jsf</filter-name>
- <filter-class>org.ajax4jsf.Filter</filter-class>
- </filter>
- <filter-mapping>
- <filter-name>ajax4jsf</filter-name>
- <servlet-name>Faces Servlet</servlet-name>
- <dispatcher>FORWARD</dispatcher>
- <dispatcher>REQUEST</dispatcher>
- <dispatcher>INCLUDE</dispatcher>
- </filter-mapping>
- <servlet>
- <servlet-name>Faces Servlet</servlet-name>
- <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <servlet-mapping>
- <servlet-name>Faces Servlet</servlet-name>
- <url-pattern>*.jsf</url-pattern>
- </servlet-mapping>
- <login-config>
- <auth-method>BASIC</auth-method>
- </login-config>
-</web-app>
Added: trunk/test-applications/jsp/src/main/resources/tTree/pom_sample.xml
===================================================================
--- trunk/test-applications/jsp/src/main/resources/tTree/pom_sample.xml (rev 0)
+++ trunk/test-applications/jsp/src/main/resources/tTree/pom_sample.xml 2008-12-22 13:46:40 UTC (rev 11970)
@@ -0,0 +1,102 @@
+<?xml version="1.0"?>
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces</groupId>
+ <artifactId>tree</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.ajax4jsf.cdk</groupId>
+ <artifactId>maven-cdk-plugin</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <library>
+ <prefix>org.richfaces</prefix>
+ <taglib>
+ <shortName>tree</shortName>
+ </taglib>
+ </library>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <repositories>
+ <repository>
+ <releases />
+ <snapshots>
+ <enabled>false</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ <id>maven2-repository.dev.java.net</id>
+ <name>Java.net Repository for Maven</name>
+ <url>https://maven2-repository.dev.java.net/nonav/repository</url>
+ </repository>
+ <repository>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <updatePolicy>always</updatePolicy>
+ </snapshots>
+ <id>maven2-snapshots.ajax4jsf.org</id>
+ <name>Ajax4jsf Repository for Maven Snapshots</name>
+ <url>https://ajax4jsf.dev.java.net/nonav/snapshots</url>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <updatePolicy>always</updatePolicy>
+ </snapshots>
+ <id>maven2-snapshots.ajax4jsf.org</id>
+ <name>Ajax4jsf Repository for Maven Snapshots</name>
+ <url>https://ajax4jsf.dev.java.net/nonav/snapshots</url>
+ </pluginRepository>
+ </pluginRepositories>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.facelets</groupId>
+ <artifactId>jsf-facelets</artifactId>
+ <version>1.1.6</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.4</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jsp-api</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <version>1.1_02</version>
+ </dependency>
+ <dependency>
+ <groupId>org.ajax4jsf</groupId>
+ <artifactId>framework</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/resources/tTree/test.xml
===================================================================
--- trunk/test-applications/jsp/src/main/resources/tTree/test.xml (rev 0)
+++ trunk/test-applications/jsp/src/main/resources/tTree/test.xml 2008-12-22 13:46:40 UTC (rev 11970)
@@ -0,0 +1,74 @@
+<?xml version="1.0"?>
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <description>RF Test-Application</description>
+ <display-name>test-application</display-name>
+ <context-param>
+ <param-name>org.ajax4jsf.SKIN</param-name>
+ <param-value>#{skinBean.skin}</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.REFRESH_PERIOD</param-name>
+ <param-value>2</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.DEVELOPMENT</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>client</param-value>
+ </context-param>
+ <context-param>
+ <param-name>com.sun.faces.validateXml</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>com.sun.faces.verifyObjects</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.CONFIG_FILES</param-name>
+ <param-value>/WEB-INF/faces-config-RichPanelsBean.xml,/WEB-INF/faces-config-DataTable.xml,/WEB-INF/faces-config-SimpleTogglePanel.xml,
+ /WEB-INF/faces-config-Panel.xml,/WEB-INF/faces-config-PanelBar.xml,/WEB-INF/faces-config-TabPanel.xml,
+ /WEB-INF/faces-config-TogglePanel.xml,/WEB-INF/faces-config-Paint2D.xml,/WEB-INF/faces-config-InputNumberSlider.xml,
+ /WEB-INF/faces-config-InputNumberSpinner.xml,/WEB-INF/faces-config-DDMenu.xml,/WEB-INF/faces-config-Tree.xml,
+ /WEB-INF/faces-config-PanelMenu.xml,/WEB-INF/faces-config-Icon.xml,/WEB-INF/faces-config-ModalPanel.xml,
+ /WEB-INF/faces-config-tooltip.xml,/WEB-INF/faces-config-Skin.xml,/WEB-INF/faces-config-Calendar.xml,
+ /WEB-INF/faces-config-Gmap.xml,/WEB-INF/faces-config-DataFilterSlider.xml,/WEB-INF/faces-config-Separator.xml,
+ /WEB-INF/faces-config-Spacer.xml,/WEB-INF/faces-config-ToolBar.xml,/WEB-INF/faces-config-DataScroller.xml,
+ /WEB-INF/faces-config-SuggestionBox.xml,/WEB-INF/faces-config-Message.xml,
+ /WEB-INF/faces-config-VirtualEarth.xml,/WEB-INF/faces-config-Effect.xml,/WEB-INF/faces-config-Insert.xml,
+ /WEB-INF/faces-config-RichBean.xml,/WEB-INF/faces-config-ScrollableDataTable.xml,
+ /WEB-INF/faces-config-RichTest.xml,/WEB-INF/faces-config-jQuery.xml,/WEB-INF/faces-config-DragAndDrop.xml,
+ /WEB-INF/faces-config-OrderingList.xml,/WEB-INF/faces-config-DataOrderedList.xml,/WEB-INF/faces-config-DataDefinitionList.xml</param-value>
+ </context-param>
+ <filter>
+ <display-name>Ajax4jsf Filter</display-name>
+ <filter-name>ajax4jsf</filter-name>
+ <filter-class>org.ajax4jsf.Filter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>ajax4jsf</filter-name>
+ <servlet-name>Faces Servlet</servlet-name>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ </filter-mapping>
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
+</web-app>
16 years
JBoss Rich Faces SVN: r11969 - in trunk: test-applications/seamApp/ear and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-12-22 08:26:44 -0500 (Mon, 22 Dec 2008)
New Revision: 11969
Modified:
trunk/docs/common-resources/en/
trunk/test-applications/seamApp/ear/
trunk/test-applications/seamApp/ejb/
trunk/test-applications/seamApp/web/
Log:
target folders svn:ignored
Property changes on: trunk/docs/common-resources/en
___________________________________________________________________
Name: svn:ignore
+ target
Property changes on: trunk/test-applications/seamApp/ear
___________________________________________________________________
Name: svn:ignore
+ target
Property changes on: trunk/test-applications/seamApp/ejb
___________________________________________________________________
Name: svn:ignore
+ target
Property changes on: trunk/test-applications/seamApp/web
___________________________________________________________________
Name: svn:ignore
+ target
16 years
JBoss Rich Faces SVN: r11968 - trunk/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2008-12-22 08:14:50 -0500 (Mon, 22 Dec 2008)
New Revision: 11968
Modified:
trunk/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/editor.js
Log:
https://jira.jboss.org/jira/browse/RF-5374
Modified: trunk/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/editor.js
===================================================================
--- trunk/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/editor.js 2008-12-22 13:13:30 UTC (rev 11967)
+++ trunk/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/editor.js 2008-12-22 13:14:50 UTC (rev 11968)
@@ -22,23 +22,14 @@
this.synchronizeConfiguration();
this.setDialogType();
+ this.redefineCallbacks();
this.tinyMCE_editor = null;
- this.onInitInstanceCallbackFunction = this.tinyparams.init_instance_callback;
- this.onChangeCallbackFunction = this.tinyparams.onchange_callback;
- this.onInitCallbackFunction = this.tinyparams.oninit;
- this.onSaveCallbackFunction = this.tinyparams.save_callback;
- this.onSetupCallbackFunction = this.tinyparams.setup;
this.tinyparams.mode = 'exact';
this.tinyparams.elements = this.editorTextAreaId;
this.tinyparams.editor_selector = null;
this.tinyparams.editor_deselector = null;
- this.tinyparams.init_instance_callback = this.onInitInstanceCallback.bind(this);
- this.tinyparams.onchange_callback = this.onChangeCallback.bind(this);
- this.tinyparams.oninit = this.onInitCallback.bind(this);
- this.tinyparams.save_callback = this.onSaveCallback.bind(this);
- this.tinyparams.setup = this.onSetupCallback.bind(this);
tinyMCE.init(this.tinyparams);
@@ -60,6 +51,31 @@
this.tinyMCE_editor = null;
},
+ redefineCallbacks: function() {
+ this.onInitInstanceCallbackFunction = this.tinyparams.init_instance_callback;
+ this.tinyparams.init_instance_callback = this.onInitInstanceCallback.bind(this);
+
+ if(this.tinyparams.onchange_callback && typeof this.tinyparams.onchange_callback != 'string'){
+ this.onChangeCallbackFunction = this.tinyparams.onchange_callback;
+ this.tinyparams.onchange_callback = this.onChangeCallback.bind(this);
+ }
+
+ if(this.tinyparams.onchange_callback && typeof this.tinyparams.oninit != 'string'){
+ this.onInitCallbackFunction = this.tinyparams.oninit;
+ this.tinyparams.oninit = this.onInitCallback.bind(this);
+ }
+
+ if(this.tinyparams.onchange_callback && typeof this.tinyparams.save_callback != 'string'){
+ this.onSaveCallbackFunction = this.tinyparams.save_callback;
+ this.tinyparams.save_callback = this.onSaveCallback.bind(this);
+ }
+
+ if(this.tinyparams.onchange_callback && typeof this.tinyparams.setup != 'string'){
+ this.onSetupCallbackFunction = this.tinyparams.setup;
+ this.tinyparams.setup = this.onSetupCallback.bind(this);
+ }
+ },
+
onBeforeAjax: function() {
this.tinyMCE_editor.save();
},
16 years
JBoss Rich Faces SVN: r11967 - in trunk/ui/progressBAR/src/test/java/org/richfaces: renderkit and 3 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2008-12-22 08:13:30 -0500 (Mon, 22 Dec 2008)
New Revision: 11967
Added:
trunk/ui/progressBAR/src/test/java/org/richfaces/renderkit/
trunk/ui/progressBAR/src/test/java/org/richfaces/renderkit/html/
trunk/ui/progressBAR/src/test/java/org/richfaces/renderkit/html/images/
trunk/ui/progressBAR/src/test/java/org/richfaces/renderkit/html/images/ProgressBarImagesTest.java
Modified:
trunk/ui/progressBAR/src/test/java/org/richfaces/sandbox/ProgressBarComponentTest.java
Log:
Add JUnits for progressBar
Added: trunk/ui/progressBAR/src/test/java/org/richfaces/renderkit/html/images/ProgressBarImagesTest.java
===================================================================
--- trunk/ui/progressBAR/src/test/java/org/richfaces/renderkit/html/images/ProgressBarImagesTest.java (rev 0)
+++ trunk/ui/progressBAR/src/test/java/org/richfaces/renderkit/html/images/ProgressBarImagesTest.java 2008-12-22 13:13:30 UTC (rev 11967)
@@ -0,0 +1,102 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - 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.renderkit.html.images;
+
+import java.awt.Color;
+
+import javax.faces.context.FacesContext;
+
+import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
+import org.ajax4jsf.util.HtmlColor;
+import org.richfaces.skin.Skin;
+import org.richfaces.skin.SkinFactory;
+
+/**
+ * Unit test for Progress bar component.
+ */
+public class ProgressBarImagesTest extends AbstractAjax4JsfTestCase {
+
+
+ public ProgressBarImagesTest(String name) {
+ super(name);
+ }
+
+
+ public void testColorUtils() throws Exception {
+ float[] hsl = ColorUtils.RGBtoHSL(100, 160, 120);
+ assertEquals(ColorUtils.HSLtoRGB(hsl[0], hsl[1], hsl[2]), new Color(101, 159, 120));
+ hsl = ColorUtils.RGBtoHSL(0, 0, 0);
+ assertEquals(ColorUtils.HSLtoRGB(hsl[0], hsl[1], hsl[2]), new Color(0, 0, 0));
+ hsl = ColorUtils.RGBtoHSL(201, 203, 1);
+ assertEquals(ColorUtils.HSLtoRGB(hsl[0], hsl[1], hsl[2]), new Color(168, 169, 35));
+ assertNotNull(ColorUtils.adjustBrightness(Color.BLACK, 1));
+ assertNotNull(ColorUtils.adjustLightness(Color.BLACK, 1));
+ assertNotNull(ColorUtils.overwriteAlpha(Color.BLACK, 1));
+ }
+
+ public void testProgressBarBg() throws Exception {
+ ProgressBarBg bg = new ProgressBarBg();
+
+ Skin skin = SkinFactory.getInstance().getSkin(facesContext);
+ Skin defaultSkin = SkinFactory.getInstance().getDefaultSkin(facesContext);
+
+ String backgroundColor = getSkinParameter(skin, defaultSkin, facesContext, "selectControlColor");
+ assertNotNull(backgroundColor);
+
+ byte [] data = (byte []) bg.getDataToStore(facesContext, null);
+
+ assertNotNull(data);
+ byte[] results = (byte[])bg.deserializeData(data);
+ assertNotNull(results);
+
+ assertEquals(data, results);
+ }
+
+ public void testProgressBarAnimatedBg() throws Exception {
+ ProgressBarAnimatedBg bg = new ProgressBarAnimatedBg();
+
+ Skin skin = SkinFactory.getInstance().getSkin(facesContext);
+ Skin defaultSkin = SkinFactory.getInstance().getDefaultSkin(facesContext);
+
+ String backgroundColor = getSkinParameter(skin, defaultSkin, facesContext, "selectControlColor");
+ assertNotNull(backgroundColor);
+
+ byte [] data = (byte []) bg.getDataToStore(facesContext, null);
+
+ assertNotNull(data);
+ byte[] results = (byte[])bg.deserializeData(data);
+ assertNotNull(results);
+
+ assertEquals(data, results);
+ assertEquals(0, bg.getRepeat());
+ assertEquals(12, bg.getNumberOfFrames());
+ }
+
+ private String getSkinParameter(Skin skin, Skin defaultSkin, FacesContext context, String parameterName) {
+ String value = (String) skin.getParameter(context, parameterName);
+ if (null == value || "".equals(value)) {
+ value = (String) defaultSkin.getParameter(context, parameterName);
+ }
+ return value;
+
+ }
+
+}
Property changes on: trunk/ui/progressBAR/src/test/java/org/richfaces/renderkit/html/images/ProgressBarImagesTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Modified: trunk/ui/progressBAR/src/test/java/org/richfaces/sandbox/ProgressBarComponentTest.java
===================================================================
--- trunk/ui/progressBAR/src/test/java/org/richfaces/sandbox/ProgressBarComponentTest.java 2008-12-22 13:13:01 UTC (rev 11966)
+++ trunk/ui/progressBAR/src/test/java/org/richfaces/sandbox/ProgressBarComponentTest.java 2008-12-22 13:13:30 UTC (rev 11967)
@@ -24,12 +24,14 @@
import javax.faces.component.UIOutput;
import javax.faces.component.html.HtmlForm;
+import org.ajax4jsf.event.AjaxEvent;
import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
import org.richfaces.component.UIProgressBar;
import com.gargoylesoftware.htmlunit.html.DomText;
import com.gargoylesoftware.htmlunit.html.HtmlElement;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
+import com.sun.org.apache.bcel.internal.generic.NEW;
/**
* Unit test for Progress bar component.
@@ -128,7 +130,15 @@
assertTrue(text.getData().contains("$('" + clientId + "').component"));
assertTrue(text.getData().contains("renderLabel"));
-
+ assertEquals(1L, progressBar.getNumber(1));
+ assertEquals(new Double(1), progressBar.getNumber("1"));
+ assertEquals(0, progressBar.getNumber(null));
+
+ facesContext.getExternalContext().getRequestParameterMap().put("percent", "100");
+ facesContext.getExternalContext().getRequestParameterMap().put(progressBar.getClientId(facesContext), progressBar.getClientId(facesContext));
+
+ progressBar.broadcast(new AjaxEvent(progressBar));
+
}
}
16 years
JBoss Rich Faces SVN: r11966 - trunk/ui/panelmenu/src/test/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2008-12-22 08:13:01 -0500 (Mon, 22 Dec 2008)
New Revision: 11966
Modified:
trunk/ui/panelmenu/src/test/java/org/richfaces/component/PanelMenuComponentTest.java
Log:
Add JUnits for panelMenu
Modified: trunk/ui/panelmenu/src/test/java/org/richfaces/component/PanelMenuComponentTest.java
===================================================================
--- trunk/ui/panelmenu/src/test/java/org/richfaces/component/PanelMenuComponentTest.java 2008-12-22 13:12:04 UTC (rev 11965)
+++ trunk/ui/panelmenu/src/test/java/org/richfaces/component/PanelMenuComponentTest.java 2008-12-22 13:13:01 UTC (rev 11966)
@@ -22,28 +22,22 @@
package org.richfaces.component;
import java.util.HashSet;
-import java.util.Iterator;
import java.util.List;
import java.util.Set;
+import javax.faces.application.FacesMessage;
import javax.faces.component.UIForm;
import javax.faces.component.html.HtmlForm;
-import javax.servlet.http.HttpServletResponse;
+import javax.faces.event.AbortProcessingException;
+import javax.faces.event.ActionEvent;
+import javax.faces.event.ActionListener;
-import org.ajax4jsf.resource.InternetResource;
-import org.ajax4jsf.resource.InternetResourceBuilder;
-import org.ajax4jsf.resource.ResourceBuilderImpl;
import org.ajax4jsf.resource.image.ImageInfo;
import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
-import org.apache.commons.lang.StringUtils;
-import org.richfaces.component.UIPanelMenu;
-import org.richfaces.component.UIPanelMenuGroup;
-import org.richfaces.component.UIPanelMenuItem;
-import com.gargoylesoftware.htmlunit.Page;
import com.gargoylesoftware.htmlunit.html.HtmlElement;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
-import com.gargoylesoftware.htmlunit.html.HtmlScript;
+import com.sun.faces.application.ActionListenerImpl;
/**
* Unit test for simple Component.
@@ -297,4 +291,40 @@
assertEquals(ImageInfo.FORMAT_GIF, info.getFormat());
}
}
+
+ public void testAddRemoveListener() throws Exception {
+ ActionListener listener = new ActionListenerImpl();
+ group2.addActionListener(listener);
+ HtmlPage view = renderView();
+ assertNotNull(view);
+
+ assertNotNull(group2.getActionListeners());
+ assertTrue(group2.getActionListeners().length > 0);
+ assertEquals(listener, group2.getActionListeners()[0]);
+ group2.removeActionListener(listener);
+ assertTrue(group2.getActionListeners().length == 0);
+ }
+
+ public void testBroadcast() throws Exception {
+ group3.addActionListener(testListener);
+ HtmlPage view = renderView();
+ assertNotNull(view);
+ group3.broadcast(new ActionEvent(group3));
+ assertTrue(facesContext.getMessages(group3.getClientId(facesContext)).hasNext());
+ }
+
+ public void testQueueEvent() throws Exception {
+ HtmlPage view = renderView();
+ assertNotNull(view);
+ group3.queueEvent(new ActionEvent(group3));
+ }
+
+ ActionListener testListener = new ActionListener(){
+
+ public void processAction(ActionEvent event)
+ throws AbortProcessingException {
+ facesContext.addMessage(group3.getClientId(facesContext), new FacesMessage("Method invoked!"));
+ }
+
+ };
}
16 years
JBoss Rich Faces SVN: r11965 - trunk/ui/modal-panel/src/test/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2008-12-22 08:12:04 -0500 (Mon, 22 Dec 2008)
New Revision: 11965
Modified:
trunk/ui/modal-panel/src/test/java/org/richfaces/component/ModalPanelComponentTest.java
Log:
Add JUnits for modalPanel
Modified: trunk/ui/modal-panel/src/test/java/org/richfaces/component/ModalPanelComponentTest.java
===================================================================
--- trunk/ui/modal-panel/src/test/java/org/richfaces/component/ModalPanelComponentTest.java 2008-12-22 13:11:31 UTC (rev 11964)
+++ trunk/ui/modal-panel/src/test/java/org/richfaces/component/ModalPanelComponentTest.java 2008-12-22 13:12:04 UTC (rev 11965)
@@ -56,7 +56,7 @@
javaScripts.add("scripts/browser_info.js");
}
- private UIComponent modalPanel;
+ private UIModalPanel modalPanel;
private UIComponent form;
/**
@@ -78,13 +78,14 @@
form = new HtmlForm();
facesContext.getViewRoot().getChildren().add(form);
- modalPanel = application.createComponent(UIModalPanel.COMPONENT_TYPE);
+ modalPanel = (UIModalPanel) application.createComponent(UIModalPanel.COMPONENT_TYPE);
modalPanel.setId("modalPanel");
HtmlOutputText outputText = new HtmlOutputText();
outputText.setValue("test");
modalPanel.getFacets().put("header", outputText);
-
+ modalPanel.setKeepVisualState(true);
+ modalPanel.setVisualOptions("border: 1px");
form.getChildren().add(modalPanel);
}
@@ -156,9 +157,18 @@
* @throws Exception
*/
public void testRenderScript() throws Exception {
+ modalPanel.setShowWhenRendered(true);
HtmlPage page = renderView();
assertNotNull(page);
assertEquals(getCountValidScripts(page, javaScripts, IS_PAGE_AVAILABILITY_CHECK).intValue(), javaScripts.size());
}
+ public void testDecode() throws Exception {
+ HtmlPage renderedView = renderView();
+
+ assertNotNull(renderedView);
+ modalPanel.decode(facesContext);
+
+ }
+
}
16 years
JBoss Rich Faces SVN: r11964 - in trunk/ui/extendedDataTable/src: test/java/org/richfaces/renderkit and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2008-12-22 08:11:31 -0500 (Mon, 22 Dec 2008)
New Revision: 11964
Modified:
trunk/ui/extendedDataTable/src/main/config/component/ExtendedDataTable.xml
trunk/ui/extendedDataTable/src/test/java/org/richfaces/renderkit/AbstractExtendedTableRendererTest.java
Log:
Add JUnits for extendedDataTable
Modified: trunk/ui/extendedDataTable/src/main/config/component/ExtendedDataTable.xml
===================================================================
--- trunk/ui/extendedDataTable/src/main/config/component/ExtendedDataTable.xml 2008-12-22 13:10:57 UTC (rev 11963)
+++ trunk/ui/extendedDataTable/src/main/config/component/ExtendedDataTable.xml 2008-12-22 13:11:31 UTC (rev 11964)
@@ -8,6 +8,10 @@
<superclass>org.richfaces.component.UIExtendedDataTable</superclass>
<description> The <rich:extendedDataTable> component is used for
tables extending standard component <rich:dataTable> . </description>
+ <test>
+ <classname>org.richfaces.component.html.HtmlExtendedDataTableComponentTest</classname>
+ <superclassname>org.ajax4jsf.tests.AbstractAjax4JsfTestCase</superclassname>
+ </test>
<renderer generate="true" override="true">
<name>org.richfaces.ExtendedDataTableRenderer</name>
<template>org/richfaces/htmlExtendedDataTable.jspx</template>
Modified: trunk/ui/extendedDataTable/src/test/java/org/richfaces/renderkit/AbstractExtendedTableRendererTest.java
===================================================================
--- trunk/ui/extendedDataTable/src/test/java/org/richfaces/renderkit/AbstractExtendedTableRendererTest.java 2008-12-22 13:10:57 UTC (rev 11963)
+++ trunk/ui/extendedDataTable/src/test/java/org/richfaces/renderkit/AbstractExtendedTableRendererTest.java 2008-12-22 13:11:31 UTC (rev 11964)
@@ -71,6 +71,11 @@
column.setId("columnId" + i);
column.setRendered(true);
column.setSortable(true);
+ UIOutput text = (UIOutput) createComponent(
+ HtmlOutputText.COMPONENT_TYPE, HtmlOutputText.class
+ .getName(), null, null, null);
+ column.getFacets().put("header", text);
+ column.getFacets().put("footer", text);
if (i == 0) {
column.setSortOrder(Ordering.ASCENDING);
}
@@ -434,11 +439,11 @@
// }
public void testDoDecodeFacesContextUIComponent() {
- // facesContext.getExternalContext().getRequestParameterMap().put(
- // table.getClientId(facesContext), "fsp");
- // facesContext.getExternalContext().getRequestParameterMap().put(
- // "fsp", "extDT:columnId0");
- // renderer.doDecode(facesContext, table);
+ facesContext.getExternalContext().getRequestParameterMap().put(
+ table.getClientId(facesContext), "fsp");
+ facesContext.getExternalContext().getRequestParameterMap().put(
+ "fsp", "extDT:columnId0");
+ renderer.doDecode(facesContext, table);
}
// public void testEncodeEndFacesContextUIComponent() {
16 years