JBoss Rich Faces SVN: r11963 - trunk/ui/effect/src/test/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2008-12-22 08:10:57 -0500 (Mon, 22 Dec 2008)
New Revision: 11963
Modified:
trunk/ui/effect/src/test/java/org/richfaces/component/EffectComponentTest.java
Log:
Add JUnits for effect
Modified: trunk/ui/effect/src/test/java/org/richfaces/component/EffectComponentTest.java
===================================================================
--- trunk/ui/effect/src/test/java/org/richfaces/component/EffectComponentTest.java 2008-12-22 13:10:24 UTC (rev 11962)
+++ trunk/ui/effect/src/test/java/org/richfaces/component/EffectComponentTest.java 2008-12-22 13:10:57 UTC (rev 11963)
@@ -28,6 +28,7 @@
import javax.faces.component.UIComponent;
import javax.faces.component.UIForm;
+import javax.faces.component.UIPanel;
import javax.faces.component.html.HtmlForm;
import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
@@ -42,7 +43,8 @@
*/
public class EffectComponentTest extends AbstractAjax4JsfTestCase {
private UIForm form = null;
- private UIComponent effect = null;
+ private UIEffect effect = null;
+ private UIComponent panel = null;
private static Set javaScripts = new HashSet();
private static final boolean IS_PAGE_AVAILABILITY_CHECK = true;
@@ -69,12 +71,17 @@
super.setUp();
form = new HtmlForm();
facesContext.getViewRoot().getChildren().add(form);
-
- effect = application.createComponent(UIEffect.COMPONENT_TYPE);
+ panel = application.createComponent(UIPanel.COMPONENT_TYPE);
+ panel.setId("panel");
+ effect = (UIEffect)application.createComponent(UIEffect.COMPONENT_TYPE);
effect.setId("effect");
+ effect.setFor("panel");
+ effect.setEvent("onclick");
+ effect.setType("Appear");
+ effect.setParams("delay:3.0,duration:0.5");
- effect.getAttributes().put("var", "testEffect");
+ panel.getChildren().add(effect);
form.getChildren().add(effect);
}
@@ -85,7 +92,10 @@
}
public void testRenderComponent() throws Exception {
-
+ HtmlPage page = renderView();
+ assertNotNull(page);
+ assertNotNull(effect.getEvent());
+ assertNotNull(effect.getEventString());
}
public void testRenderStyle() throws Exception {
17 years, 4 months
JBoss Rich Faces SVN: r11962 - trunk/ui/editor/src/test/java/org/richfaces/renderkit/html/images.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2008-12-22 08:10:24 -0500 (Mon, 22 Dec 2008)
New Revision: 11962
Modified:
trunk/ui/editor/src/test/java/org/richfaces/renderkit/html/images/EditorIconTest.java
Log:
Add JUnits for editor
Modified: trunk/ui/editor/src/test/java/org/richfaces/renderkit/html/images/EditorIconTest.java
===================================================================
--- trunk/ui/editor/src/test/java/org/richfaces/renderkit/html/images/EditorIconTest.java 2008-12-22 13:09:07 UTC (rev 11961)
+++ trunk/ui/editor/src/test/java/org/richfaces/renderkit/html/images/EditorIconTest.java 2008-12-22 13:10:24 UTC (rev 11962)
@@ -21,6 +21,7 @@
package org.richfaces.renderkit.html.images;
import java.awt.Color;
+import java.awt.image.BufferedImage;
import javax.faces.context.FacesContext;
@@ -92,6 +93,16 @@
assertEquals(color2, results[1]);
assertEquals(color3, results[2]);
assertEquals(color4, results[3]);
+
+ BufferedImage image = advIcon.paintFirstTriangleBlock(results, true);
+ assertNotNull(image);
+ image = advIcon.paintMainBlock(results, true, true);
+ assertNotNull(image);
+ image = advIcon.paintSecondTriangleBlock(results, true);
+ assertNotNull(image);
+ image = advIcon.paintSeparatorBlock(results);
+ assertNotNull(image);
+
}
/**
17 years, 4 months
JBoss Rich Faces SVN: r11961 - in trunk/ui/dataFilterSlider/src: test/java/org/richfaces/component and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2008-12-22 08:09:07 -0500 (Mon, 22 Dec 2008)
New Revision: 11961
Modified:
trunk/ui/dataFilterSlider/src/main/config/component/dataFilterSlider.xml
trunk/ui/dataFilterSlider/src/test/java/org/richfaces/component/DataFilterSliderComponentTest.java
Log:
Add JUnits for dataFilterSlider
Modified: trunk/ui/dataFilterSlider/src/main/config/component/dataFilterSlider.xml
===================================================================
--- trunk/ui/dataFilterSlider/src/main/config/component/dataFilterSlider.xml 2008-12-22 13:08:17 UTC (rev 11960)
+++ trunk/ui/dataFilterSlider/src/main/config/component/dataFilterSlider.xml 2008-12-22 13:09:07 UTC (rev 11961)
@@ -10,7 +10,10 @@
<family>org.richfaces.DataFilterSlider</family>
<classname>org.richfaces.component.html.HtmlDataFilterSlider</classname>
<superclass>org.richfaces.component.UIDataFltrSlider</superclass>
- <!--test/-->
+ <test>
+ <classname>org.richfaces.component.html.HtmlDataFilterSliderComponentTest</classname>
+ <superclassname>org.ajax4jsf.tests.AbstractAjax4JsfTestCase</superclassname>
+ </test>
<description>
<![CDATA[A slider-based action component used for filtering table data.
]]>
Modified: trunk/ui/dataFilterSlider/src/test/java/org/richfaces/component/DataFilterSliderComponentTest.java
===================================================================
--- trunk/ui/dataFilterSlider/src/test/java/org/richfaces/component/DataFilterSliderComponentTest.java 2008-12-22 13:08:17 UTC (rev 11960)
+++ trunk/ui/dataFilterSlider/src/test/java/org/richfaces/component/DataFilterSliderComponentTest.java 2008-12-22 13:09:07 UTC (rev 11961)
@@ -22,6 +22,7 @@
package org.richfaces.component;
import java.awt.Dimension;
+import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
@@ -30,8 +31,10 @@
import javax.faces.application.FacesMessage;
import javax.faces.component.UICommand;
import javax.faces.component.UIComponent;
+import javax.faces.component.UIData;
import javax.faces.component.UIForm;
import javax.faces.component.html.HtmlCommandLink;
+import javax.faces.component.html.HtmlDataTable;
import javax.faces.component.html.HtmlForm;
import javax.faces.context.FacesContext;
import javax.faces.el.EvaluationException;
@@ -66,7 +69,9 @@
public class DataFilterSliderComponentTest extends AbstractAjax4JsfTestCase {
private UIForm form = null;
- private UIComponent dfSlider = null;
+ private UIDataFltrSlider dfSlider = null;
+ private UIDataFltrSlider dfSlider2 = null;
+ private UIData data = null;
private UICommand command = null;
private static Set<String> javaScripts = new HashSet<String>();
private static final boolean IS_PAGE_AVAILABILITY_CHECK = true;
@@ -94,17 +99,35 @@
form = new HtmlForm();
facesContext.getViewRoot().getChildren().add(form);
+
+ ArrayList dat = new ArrayList();
+ for (int i=0;i<20;i++){
+ dat.add(new Integer(i));
+ }
+ data = (UIData) application.createComponent(HtmlDataTable.COMPONENT_TYPE);
+ data.setValue(dat);
+ data.setId("data");
+ data.setRows(5);
+ form.getChildren().add(data);
command = new HtmlCommandLink();
command.setId("command");
form.getChildren().add(command);
- dfSlider = application.createComponent(UIDataFltrSlider.COMPONENT_TYPE);
+ dfSlider = (UIDataFltrSlider) application.createComponent(UIDataFltrSlider.COMPONENT_TYPE);
dfSlider.setId("slider");
- ((UIDataFltrSlider)dfSlider).setStartRange(Integer.valueOf(0));
- ((UIDataFltrSlider)dfSlider).setEndRange(Integer.valueOf(100));
- ((UIDataFltrSlider)dfSlider).setIncrement(Integer.valueOf(1));
+ dfSlider.setStartRange(Integer.valueOf(0));
+ dfSlider.setEndRange(Integer.valueOf(100));
+ dfSlider.setIncrement(Integer.valueOf(1));
form.getChildren().add(dfSlider);
+
+ dfSlider2 = (UIDataFltrSlider) application.createComponent(UIDataFltrSlider.COMPONENT_TYPE);
+ dfSlider2.setId("slider2");
+ dfSlider2.setFor("data");
+ dfSlider2.setStartRange(Integer.valueOf(0));
+ dfSlider2.setEndRange(Integer.valueOf(100));
+ dfSlider2.setIncrement(Integer.valueOf(1));
+ form.getChildren().add(dfSlider2);
}
public void tearDown() throws Exception {
@@ -272,6 +295,12 @@
assertTrue(facesContext.getMessages().hasNext());
}
+
+ public void testGetDataTable() throws Exception{
+ HtmlPage renderedView = renderView();
+ UIData data = dfSlider2.getUIData();
+ assertNotNull(data);
+ }
private final class SliderBean {
17 years, 4 months
JBoss Rich Faces SVN: r11960 - in trunk/ui/calendar/src/test: java/org/richfaces/component and 5 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2008-12-22 08:08:17 -0500 (Mon, 22 Dec 2008)
New Revision: 11960
Added:
trunk/ui/calendar/src/test/resources/
trunk/ui/calendar/src/test/resources/org/
trunk/ui/calendar/src/test/resources/org/richfaces/
trunk/ui/calendar/src/test/resources/org/richfaces/renderkit/
trunk/ui/calendar/src/test/resources/org/richfaces/renderkit/calendar_ru_RU.properties
Modified:
trunk/ui/calendar/src/test/java/org/richfaces/component/CalendarComponentTest.java
trunk/ui/calendar/src/test/java/org/richfaces/renderkit/html/iconimages/CalendarIconTest.java
Log:
Add JUnits for calendar
Modified: trunk/ui/calendar/src/test/java/org/richfaces/component/CalendarComponentTest.java
===================================================================
--- trunk/ui/calendar/src/test/java/org/richfaces/component/CalendarComponentTest.java 2008-12-22 13:06:14 UTC (rev 11959)
+++ trunk/ui/calendar/src/test/java/org/richfaces/component/CalendarComponentTest.java 2008-12-22 13:08:17 UTC (rev 11960)
@@ -35,6 +35,8 @@
import org.ajax4jsf.renderkit.RendererUtils.HTML;
import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
import org.apache.commons.lang.StringUtils;
+import org.richfaces.renderkit.CalendarRendererBase;
+import org.richfaces.renderkit.html.CalendarRenderer;
import com.gargoylesoftware.htmlunit.ElementNotFoundException;
import com.gargoylesoftware.htmlunit.html.HtmlButton;
@@ -43,6 +45,7 @@
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import com.gargoylesoftware.htmlunit.html.HtmlScript;
import com.gargoylesoftware.htmlunit.html.HtmlSpan;
+import com.sun.org.apache.bcel.internal.generic.NEW;
/**
* @author Nick Belaevski - mailto:nbelaevski@exadel.com created 08.06.2007
@@ -58,6 +61,8 @@
private UICalendar calendar2;
+ private UICalendar calendar3;
+
private static Set<String> javaScripts = new HashSet<String>();
static {
@@ -114,6 +119,18 @@
calendar2.setValue(calendarObject.getTime());
calendar2.setId("timecalendar");
form.getChildren().add(calendar2);
+
+ calendar3 = (UICalendar) application
+ .createComponent(UICalendar.COMPONENT_TYPE);
+ calendar3.setDatePattern("dd/M/yy HH:mm");
+ calendarObject.set(2001, Calendar.SEPTEMBER, 11, 13, 36);
+ calendar3.setValue(calendarObject.getTime());
+ calendar3.setId("timecalendar");
+ calendar3.setMode(UICalendar.AJAX_MODE);
+ calendar3.setLocale(new Locale("ru", "RU", ""));
+ calendar3.setCellHeight("50");
+ calendar3.setCellWidth("50");
+ form.getChildren().add(calendar3);
}
/*
@@ -313,6 +330,22 @@
}
+ public void testCalendarGetConvertedValue() throws Exception{
+ UICalendar calendar = (UICalendar) application
+ .createComponent(UICalendar.COMPONENT_TYPE);
+ Calendar calendarObject = Calendar.getInstance();
+ calendarObject.clear();
+ calendarObject.set(2007, Calendar.JUNE, 10);
+ calendar.setCurrentDate(calendarObject.getTime());
+ calendar2.setDatePattern("dd/M/yy");
+ calendar.getConvertedValue(facesContext, "01/01/01");
+ calendar.getAsDate(new Date());
+ calendar.getAsLocale("ru_RU");
+ CalendarRendererBase renderer = new CalendarRenderer();
+
+ renderer.getConvertedValue(facesContext, calendar, new Date());
+ }
+
public void tearDown() throws Exception {
super.tearDown();
form = null;
Modified: trunk/ui/calendar/src/test/java/org/richfaces/renderkit/html/iconimages/CalendarIconTest.java
===================================================================
--- trunk/ui/calendar/src/test/java/org/richfaces/renderkit/html/iconimages/CalendarIconTest.java 2008-12-22 13:06:14 UTC (rev 11959)
+++ trunk/ui/calendar/src/test/java/org/richfaces/renderkit/html/iconimages/CalendarIconTest.java 2008-12-22 13:08:17 UTC (rev 11960)
@@ -21,7 +21,9 @@
package org.richfaces.renderkit.html.iconimages;
import java.awt.Color;
+import java.awt.image.BufferedImage;
+import org.ajax4jsf.resource.ResourceContext;
import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
import org.ajax4jsf.util.HtmlColor;
import org.richfaces.skin.Skin;
@@ -74,5 +76,8 @@
assertEquals(color1, results[0]);
assertEquals(color2, results[1]);
+ BufferedImage img = icon.paintImage(results);
+ assertNotNull(img);
}
+
}
Added: trunk/ui/calendar/src/test/resources/org/richfaces/renderkit/calendar_ru_RU.properties
===================================================================
--- trunk/ui/calendar/src/test/resources/org/richfaces/renderkit/calendar_ru_RU.properties (rev 0)
+++ trunk/ui/calendar/src/test/resources/org/richfaces/renderkit/calendar_ru_RU.properties 2008-12-22 13:08:17 UTC (rev 11960)
@@ -0,0 +1,6 @@
+RICH_CALENDAR_APPLY_LABEL=\u043F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C
+RICH_CALENDAR_TODAY_LABEL=\u0441\u0435\u0433\u043E\u0434\u043D\u044F
+RICH_CALENDAR_CLOSE_LABEL=\u0437\u0430\u043A\u0440\u044B\u0442\u044C
+RICH_CALENDAR_OK_LABEL=\u043E\u043A\u0435\u0439
+RICH_CALENDAR_CLEAN_LABEL=\u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C
+RICH_CALENDAR_CANCEL_LABEL=\u043E\u0442\u043C\u0435\u043D\u0438\u0442\u044C
Property changes on: trunk/ui/calendar/src/test/resources/org/richfaces/renderkit/calendar_ru_RU.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
17 years, 4 months
JBoss Rich Faces SVN: r11959 - in trunk/ui/beanValidator/src: test/java/org/richfaces/component and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2008-12-22 08:06:14 -0500 (Mon, 22 Dec 2008)
New Revision: 11959
Added:
trunk/ui/beanValidator/src/test/java/org/richfaces/component/BeanValidatorComponentTest.java
trunk/ui/beanValidator/src/test/java/org/richfaces/component/GraphValidatorComponentTest.java
Removed:
trunk/ui/beanValidator/src/test/java/org/richfaces/component/JSFComponentTest.java
Modified:
trunk/ui/beanValidator/src/main/config/component/beanValidator.xml
Log:
Add JUnits for BeanValidator and GraphValidator
Modified: trunk/ui/beanValidator/src/main/config/component/beanValidator.xml
===================================================================
--- trunk/ui/beanValidator/src/main/config/component/beanValidator.xml 2008-12-21 16:23:05 UTC (rev 11958)
+++ trunk/ui/beanValidator/src/main/config/component/beanValidator.xml 2008-12-22 13:06:14 UTC (rev 11959)
@@ -103,6 +103,14 @@
org.richfaces.component.html.HtmlGraphValidator
</classname>
<superclass>org.richfaces.component.UIGraphValidator</superclass>
+ <test>
+ <classname>
+ org.richfaces.component.html.GraphValidatorTest
+ </classname>
+ <superclassname>
+ org.ajax4jsf.tests.AbstractAjax4JsfTestCase
+ </superclassname>
+ </test>
<description><![CDATA[The <rich:graphValidator> component allows to register Hibernate Validators for multiple input components.]]></description>
<tag>
<name>graphValidator</name>
@@ -156,6 +164,14 @@
<classname>
org.richfaces.validator.FacesBeanValidator
</classname>
+ <test>
+ <classname>
+ org.richfaces.component.html.BeanValidatorTest
+ </classname>
+ <superclassname>
+ org.ajax4jsf.tests.AbstractAjax4JsfTestCase
+ </superclassname>
+ </test>
<description>
<![CDATA[Validate Input by the Bean/Hibernate validator annotations]]>
</description>
Added: trunk/ui/beanValidator/src/test/java/org/richfaces/component/BeanValidatorComponentTest.java
===================================================================
--- trunk/ui/beanValidator/src/test/java/org/richfaces/component/BeanValidatorComponentTest.java (rev 0)
+++ trunk/ui/beanValidator/src/test/java/org/richfaces/component/BeanValidatorComponentTest.java 2008-12-22 13:06:14 UTC (rev 11959)
@@ -0,0 +1,186 @@
+/**
+ * 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.component;
+
+import java.util.Set;
+
+import javax.el.ELContext;
+import javax.el.ELException;
+import javax.el.MethodExpression;
+import javax.el.MethodInfo;
+import javax.el.PropertyNotFoundException;
+import javax.faces.application.FacesMessage;
+import javax.faces.component.UIForm;
+import javax.faces.component.UIMessages;
+import javax.faces.component.html.HtmlForm;
+import javax.faces.el.MethodNotFoundException;
+import javax.faces.event.ActionEvent;
+
+import org.ajax4jsf.context.AjaxContext;
+import org.ajax4jsf.event.AjaxEvent;
+import org.ajax4jsf.event.AjaxListener;
+import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
+import org.ajax4jsf.webapp.taglib.MethodExpressionAjaxListener;
+import org.richfaces.component.html.HtmlInputText;
+import org.richfaces.event.ValidationEvent;
+
+import com.gargoylesoftware.htmlunit.html.HtmlPage;
+
+public class BeanValidatorComponentTest extends AbstractAjax4JsfTestCase {
+
+ UIForm form = null;
+ UIBeanValidator validator = null;
+ HtmlInputText input = null;
+ UIMessages messages = null;
+
+ public BeanValidatorComponentTest(String name) {
+ super(name);
+ }
+
+ public void setUp() throws Exception {
+ super.setUp();
+ form = new HtmlForm();
+ form.setId("form");
+ facesContext.getViewRoot().getChildren().add(form);
+ input = (HtmlInputText)application.createComponent(HtmlInputText.COMPONENT_TYPE);
+ validator = (UIBeanValidator)application.createComponent(UIBeanValidator.COMPONENT_TYPE);
+ validator.setId("validator");
+
+ input.getChildren().add(validator);
+ input.setId("input");
+ form.getChildren().add(input);
+ messages = (UIMessages)application.createComponent(UIMessages.COMPONENT_TYPE);
+ messages.setId("messages");
+ form.getChildren().add(messages);
+ }
+
+ public void tearDown() throws Exception {
+ super.tearDown();
+ }
+
+ public void testValidator() throws Exception {
+
+ HtmlPage page = renderView();
+ assertNotNull(page);
+ assertNotNull(validator.getMessages(facesContext));
+ }
+
+ public void testAddRemoveListenerValidator() throws Exception {
+
+ AjaxListener listener = new MethodExpressionAjaxListener(listenerExpression);
+ validator.addAjaxListener(listener);
+
+ HtmlPage page = renderView();
+ assertNotNull(page);
+ assertEquals(1, validator.getAjaxListeners().length);
+ assertEquals(listenerExpression, validator.getAjaxListener());
+ validator.setAjaxListener(listenerExpression2);
+ assertEquals(1, validator.getAjaxListeners().length);
+ }
+
+ public void testBroadcast() throws Exception {
+
+ AjaxListener listener = new MethodExpressionAjaxListener(listenerExpression);
+ validator.addAjaxListener(listener);
+
+ HtmlPage page = renderView();
+ assertNotNull(page);
+ validator.broadcast(new AjaxEvent(validator));
+ assertTrue(facesContext.getMessages(validator.getClientId(facesContext)).hasNext());
+
+ }
+
+ public void testQueueEvent() throws Exception {
+
+ AjaxListener listener = new MethodExpressionAjaxListener(listenerExpression);
+ validator.addAjaxListener(listener);
+
+ HtmlPage page = renderView();
+ assertNotNull(page);
+ validator.queueEvent(new ValidationEvent(validator));
+ }
+
+ MethodExpression listenerExpression = new MethodExpression(){
+
+ public Object invoke(ELContext context, Object[] params) throws PropertyNotFoundException, MethodNotFoundException,
+ ELException {
+ facesContext.addMessage(validator.getClientId(facesContext), new FacesMessage("Method invoked!"));
+ return "invoked";
+ }
+
+ public MethodInfo getMethodInfo(ELContext context) {
+
+ return null;
+ }
+
+ public boolean equals(Object obj) {
+ return (obj instanceof MethodExpression && obj.hashCode() == this.hashCode());
+ }
+
+
+ public String getExpressionString() {
+ return null;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
+ public boolean isLiteralText() {
+ return false;
+ }
+
+ };
+
+ MethodExpression listenerExpression2 = new MethodExpression(){
+
+ public Object invoke(ELContext context, Object[] params) throws PropertyNotFoundException, MethodNotFoundException,
+ ELException {
+ facesContext.addMessage(validator.getClientId(facesContext), new FacesMessage("Method invoked!"));
+ return "invoked";
+ }
+
+ public MethodInfo getMethodInfo(ELContext context) {
+
+ return null;
+ }
+
+ public boolean equals(Object obj) {
+ return (obj instanceof MethodExpression && obj.hashCode() == this.hashCode());
+ }
+
+
+ public String getExpressionString() {
+ return null;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
+ public boolean isLiteralText() {
+ return false;
+ }
+
+ };
+
+
+}
Property changes on: trunk/ui/beanValidator/src/test/java/org/richfaces/component/BeanValidatorComponentTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added: trunk/ui/beanValidator/src/test/java/org/richfaces/component/GraphValidatorComponentTest.java
===================================================================
--- trunk/ui/beanValidator/src/test/java/org/richfaces/component/GraphValidatorComponentTest.java (rev 0)
+++ trunk/ui/beanValidator/src/test/java/org/richfaces/component/GraphValidatorComponentTest.java 2008-12-22 13:06:14 UTC (rev 11959)
@@ -0,0 +1,72 @@
+/**
+ * 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.component;
+
+import javax.faces.component.UIForm;
+import javax.faces.component.UIInput;
+import javax.faces.component.UIMessages;
+import javax.faces.component.html.HtmlForm;
+
+import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
+
+import com.gargoylesoftware.htmlunit.html.HtmlPage;
+
+public class GraphValidatorComponentTest extends AbstractAjax4JsfTestCase {
+
+ UIForm form = null;
+ UIGraphValidator validator = null;
+ UIInput input = null;
+ UIMessages messages = null;
+
+ public GraphValidatorComponentTest(String name) {
+ super(name);
+ }
+
+ public void setUp() throws Exception {
+ super.setUp();
+ form = new HtmlForm();
+ form.setId("form");
+ facesContext.getViewRoot().getChildren().add(form);
+
+ validator = (UIGraphValidator) application
+ .createComponent(UIGraphValidator.COMPONENT_TYPE);
+ validator.setId("validator");
+ input = (UIInput) application.createComponent(UIInput.COMPONENT_TYPE);
+ input.setId("input");
+ validator.getChildren().add(input);
+ form.getChildren().add(validator);
+ messages = (UIMessages) application
+ .createComponent(UIMessages.COMPONENT_TYPE);
+ messages.setId("messages");
+ form.getChildren().add(messages);
+ }
+
+ public void tearDown() throws Exception {
+ super.tearDown();
+ }
+
+ public void testValidator() throws Exception {
+
+ HtmlPage page = renderView();
+ assertNotNull(page);
+ }
+
+}
Property changes on: trunk/ui/beanValidator/src/test/java/org/richfaces/component/GraphValidatorComponentTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Deleted: trunk/ui/beanValidator/src/test/java/org/richfaces/component/JSFComponentTest.java
===================================================================
--- trunk/ui/beanValidator/src/test/java/org/richfaces/component/JSFComponentTest.java 2008-12-21 16:23:05 UTC (rev 11958)
+++ trunk/ui/beanValidator/src/test/java/org/richfaces/component/JSFComponentTest.java 2008-12-22 13:06:14 UTC (rev 11959)
@@ -1,53 +0,0 @@
-/**
- * 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.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 );
- }
-}
17 years, 4 months
JBoss Rich Faces SVN: r11958 - in trunk: framework/impl/src/main/java/org/ajax4jsf/webapp and 4 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-12-21 11:23:05 -0500 (Sun, 21 Dec 2008)
New Revision: 11958
Added:
trunk/framework/impl/src/main/java/org/richfaces/component/FileUploadConstants.java
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/request/MultipartRequest.java
trunk/framework/impl/src/main/java/org/ajax4jsf/webapp/BaseFilter.java
trunk/ui/fileUpload/src/main/java/org/richfaces/component/UIFileUpload.java
trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java
trunk/ui/fileUpload/src/main/templates/org/richfaces/fileUpload.jspx
Log:
https://jira.jboss.org/jira/browse/RF-4906
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/request/MultipartRequest.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/request/MultipartRequest.java 2008-12-21 15:42:19 UTC (rev 11957)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/request/MultipartRequest.java 2008-12-21 16:23:05 UTC (rev 11958)
@@ -44,9 +44,9 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
-import org.ajax4jsf.Filter;
import org.ajax4jsf.exception.FileUploadException;
import org.ajax4jsf.webapp.BaseXMLFilter;
+import org.richfaces.component.FileUploadConstants;
import org.richfaces.model.UploadItem;
/**
@@ -524,7 +524,7 @@
@SuppressWarnings("unchecked")
private Map<String, Object> getProgressData() {
percentMap = (Map<String, Object>) getSession().getAttribute(
- Filter.PERCENT_BEAN_NAME);
+ FileUploadConstants.PERCENT_BEAN_NAME);
return percentMap;
}
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/webapp/BaseFilter.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/webapp/BaseFilter.java 2008-12-21 15:42:19 UTC (rev 11957)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/webapp/BaseFilter.java 2008-12-21 16:23:05 UTC (rev 11958)
@@ -52,6 +52,7 @@
import org.ajax4jsf.resource.InternetResourceService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.richfaces.component.FileUploadConstants;
/**
* Base class for request processing filters, with convert Htmp content to XML
@@ -133,25 +134,7 @@
/** Multipart request start */
public static final String MULTIPART = "multipart/";
- /** Session bean name where multipart requests map will be stored */
- public static final String REQUESTS_SESSIONS_BEAN_NAME = "_richfaces_upload_sessions";
-
- /** Session bean name where progress bar's percent map will be stored */
- public static final String PERCENT_BEAN_NAME = "_richfaces_upload_percents";
-
/**
- * Request parameter that indicates if multipart request forced by rich file
- * upload component
- */
- public static final String UPLOAD_FILES_ID = "_richfaces_upload_uid";
-
- /** Session bean name to store max files count allowed to upload */
- public static final String UPLOADED_COUNTER = "_richfaces_uploaded_file_counter";
-
- /** Request parameter name indicated that file was uploaded by RF component */
- public static final String FILE_UPLOAD_INDICATOR = "_richfaces_upload_file_indicator";
-
- /**
* Request parameter that allow to send HTTP error instead of html message
*/
public static final String SEND_HTTP_ERROR = "_richfaces_send_http_error";
@@ -265,7 +248,7 @@
HttpSession session = request.getSession(false);
if (session != null) {
- Map<String, Integer> map = (Map<String, Integer>) session.getAttribute(UPLOADED_COUNTER);
+ Map<String, Integer> map = (Map<String, Integer>) session.getAttribute(FileUploadConstants.UPLOADED_COUNTER);
if (map != null) {
String id = idParameter;
@@ -335,7 +318,7 @@
HttpServletRequest httpRequest = (HttpServletRequest) request;
Map<String, String> queryParamMap = parseQueryString(httpRequest.getQueryString());
- String uid = queryParamMap.get(UPLOAD_FILES_ID);
+ String uid = queryParamMap.get(FileUploadConstants.UPLOAD_FILES_ID);
if (uid != null) {
@@ -362,15 +345,15 @@
HttpSession session = httpRequest.getSession();
synchronized (session) {
- sessionsMap = (Map<String, MultipartRequest>) session.getAttribute(REQUESTS_SESSIONS_BEAN_NAME);
- percentMap = (Map<String, Object>) session.getAttribute(PERCENT_BEAN_NAME);
+ sessionsMap = (Map<String, MultipartRequest>) session.getAttribute(FileUploadConstants.REQUESTS_SESSIONS_BEAN_NAME);
+ percentMap = (Map<String, Object>) session.getAttribute(FileUploadConstants.PERCENT_BEAN_NAME);
if (sessionsMap == null) {
sessionsMap = Collections.synchronizedMap(new HashMap<String, MultipartRequest>());
- session.setAttribute(REQUESTS_SESSIONS_BEAN_NAME, sessionsMap);
+ session.setAttribute(FileUploadConstants.REQUESTS_SESSIONS_BEAN_NAME, sessionsMap);
}
if (percentMap == null) {
percentMap = new HashMap<String, Object>();
- session.setAttribute(PERCENT_BEAN_NAME, percentMap);
+ session.setAttribute(FileUploadConstants.PERCENT_BEAN_NAME, percentMap);
}
}
Added: trunk/framework/impl/src/main/java/org/richfaces/component/FileUploadConstants.java
===================================================================
--- trunk/framework/impl/src/main/java/org/richfaces/component/FileUploadConstants.java (rev 0)
+++ trunk/framework/impl/src/main/java/org/richfaces/component/FileUploadConstants.java 2008-12-21 16:23:05 UTC (rev 11958)
@@ -0,0 +1,53 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * 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.component;
+
+/**
+ * @author Nick Belaevski
+ * @since 3.3.0
+ */
+
+public final class FileUploadConstants {
+
+ /**
+ * Request parameter that indicates if multipart request forced by rich file
+ * upload component
+ */
+ public static final String UPLOAD_FILES_ID = "_richfaces_upload_uid";
+
+ /** Session bean name to store max files count allowed to upload */
+ public static final String UPLOADED_COUNTER = "_richfaces_uploaded_file_counter";
+
+ /** Request parameter name indicated that file was uploaded by RF component */
+ public static final String FILE_UPLOAD_INDICATOR = "_richfaces_upload_file_indicator";
+
+ /** Session bean name where multipart requests map will be stored */
+ public static final String REQUESTS_SESSIONS_BEAN_NAME = "_richfaces_upload_sessions";
+
+ /** Session bean name where progress bar's percent map will be stored */
+ public static final String PERCENT_BEAN_NAME = "_richfaces_upload_percents";
+
+ private FileUploadConstants() {
+ //private constructor
+ }
+
+}
Modified: trunk/ui/fileUpload/src/main/java/org/richfaces/component/UIFileUpload.java
===================================================================
--- trunk/ui/fileUpload/src/main/java/org/richfaces/component/UIFileUpload.java 2008-12-21 15:42:19 UTC (rev 11957)
+++ trunk/ui/fileUpload/src/main/java/org/richfaces/component/UIFileUpload.java 2008-12-21 16:23:05 UTC (rev 11958)
@@ -37,7 +37,6 @@
import javax.faces.el.MethodBinding;
import javax.faces.event.FacesEvent;
-import org.ajax4jsf.Filter;
import org.ajax4jsf.context.AjaxContext;
import org.ajax4jsf.context.AjaxContextImpl;
import org.ajax4jsf.request.MultipartRequest;
@@ -78,7 +77,7 @@
private void setupProgressBarValueExpression(FacesContext context, String uid) {
FileUploadRendererBase renderer = (FileUploadRendererBase)this.getRenderer(context);
UIComponent progressBar = renderer.getProgressBar(context, this);
- String percentExpression = Filter.PERCENT_BEAN_NAME + "['"+uid+"']";
+ String percentExpression = FileUploadConstants.PERCENT_BEAN_NAME + "['"+uid+"']";
ExpressionFactory expressionFactory = context.getApplication().getExpressionFactory();
ELContext elContext = context.getELContext();
@@ -199,12 +198,12 @@
if (actionString != null && requestParameterMap.containsKey(this.getClientId(facesContext))) {
AjaxContext ajaxContext = AjaxContextImpl.getCurrentInstance(facesContext);
- String uid = requestParameterMap.get(Filter.UPLOAD_FILES_ID);
+ String uid = requestParameterMap.get(FileUploadConstants.UPLOAD_FILES_ID);
Map<String, Object> sessionMap = externalContext.getSessionMap();
Map<String, MultipartRequest> sessions = (Map<String, MultipartRequest>) sessionMap
- .get(Filter.REQUESTS_SESSIONS_BEAN_NAME);
+ .get(FileUploadConstants.REQUESTS_SESSIONS_BEAN_NAME);
if (sessions != null) {
MultipartRequest multipartRequest = sessions.get(uid);
if (multipartRequest != null) {
Modified: trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java
===================================================================
--- trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java 2008-12-21 15:42:19 UTC (rev 11957)
+++ trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java 2008-12-21 16:23:05 UTC (rev 11958)
@@ -47,7 +47,6 @@
import javax.faces.render.RenderKitFactory;
import javax.servlet.http.HttpSession;
-import org.ajax4jsf.Filter;
import org.ajax4jsf.context.AjaxContext;
import org.ajax4jsf.event.AjaxEvent;
import org.ajax4jsf.javascript.JSFunction;
@@ -61,6 +60,7 @@
import org.ajax4jsf.renderkit.RendererUtils;
import org.ajax4jsf.request.MultipartRequest;
import org.ajax4jsf.resource.CountingOutputWriter;
+import org.richfaces.component.FileUploadConstants;
import org.richfaces.component.UIFileUpload;
import org.richfaces.component.UIProgressBar;
import org.richfaces.component.util.HtmlUtil;
@@ -120,7 +120,7 @@
ExternalContext externalContext = context.getExternalContext();
Map<String, String> requestParameterMap = externalContext.getRequestParameterMap();
- String fileUploadIndicator = requestParameterMap.get(Filter.FILE_UPLOAD_INDICATOR);
+ String fileUploadIndicator = requestParameterMap.get(FileUploadConstants.FILE_UPLOAD_INDICATOR);
if (fileUploadIndicator != null && Boolean.TRUE.toString().equals(fileUploadIndicator)) {
UIFileUpload fileUpload = (UIFileUpload) component;
@@ -131,10 +131,10 @@
return; // Avoid listener calling for another fileUpload
}
- String uid = requestParameterMap.get(Filter.UPLOAD_FILES_ID);
+ String uid = requestParameterMap.get(FileUploadConstants.UPLOAD_FILES_ID);
decreaseFileCounter(context, id);
Map<String, MultipartRequest> map = (Map<String, MultipartRequest>) externalContext.getSessionMap()
- .get(Filter.REQUESTS_SESSIONS_BEAN_NAME);
+ .get(FileUploadConstants.REQUESTS_SESSIONS_BEAN_NAME);
MultipartRequest multipartRequest = map.get(uid);
@@ -182,7 +182,7 @@
Object session = context.getExternalContext()
.getSession(false);
synchronized (session) {
- Map<String, Integer> map = (Map<String, Integer>) context.getExternalContext().getSessionMap().get(Filter.UPLOADED_COUNTER);
+ Map<String, Integer> map = (Map<String, Integer>) context.getExternalContext().getSessionMap().get(FileUploadConstants.UPLOADED_COUNTER);
if (map == null) {
map = Collections
.synchronizedMap(new HashMap<String, Integer>());
@@ -364,7 +364,7 @@
@SuppressWarnings("unchecked")
private void decreaseFileCounter(FacesContext context, String id) {
Map<String, Integer> map = (Map<String, Integer>) context.getExternalContext().getSessionMap()
- .get(Filter.UPLOADED_COUNTER);
+ .get(FileUploadConstants.UPLOADED_COUNTER);
if (map != null) {
Integer i = map.get(id);
if (i == null) {
@@ -458,7 +458,7 @@
Map options = AjaxRendererUtils.buildEventOptions(context, component);
Map parameters = (Map) options.get("parameters");
parameters.put("action", action);
- parameters.put(Filter.UPLOAD_FILES_ID, new JSReference("uid"));
+ parameters.put(FileUploadConstants.UPLOAD_FILES_ID, new JSReference("uid"));
parameters.put(clientId, clientId);
parameters.put(AjaxRendererUtils.AJAX_SINGLE_ATTR, clientId);
if (oncomplete != null) {
@@ -710,6 +710,13 @@
parameters.put(p.getName(), p.getValue());
}
}
+
+ AjaxContext ajaxContext = AjaxContext.getCurrentInstance(context);
+ Map<String, Object> commonAjaxParameters = ajaxContext.getCommonAjaxParameters();
+ if (commonAjaxParameters != null) {
+ parameters.putAll(commonAjaxParameters);
+ }
+
return ((parameters.size() > 0) ? ScriptUtils.toScript(parameters) : JSReference.NULL);
}
Modified: trunk/ui/fileUpload/src/main/templates/org/richfaces/fileUpload.jspx
===================================================================
--- trunk/ui/fileUpload/src/main/templates/org/richfaces/fileUpload.jspx 2008-12-21 15:42:19 UTC (rev 11957)
+++ trunk/ui/fileUpload/src/main/templates/org/richfaces/fileUpload.jspx 2008-12-21 16:23:05 UTC (rev 11958)
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
+
<f:root
xmlns:f="http://ajax4jsf.org/cdk/template"
xmlns:h=" http://ajax4jsf.org/cdk/headers"
@@ -48,7 +49,10 @@
variables.setVariable("uploadLabel",labels.get("upload"));
variables.setVariable("clearAllLabel",labels.get("clear_all"));
- variables.setVariable("actionUrl",org.ajax4jsf.context.AjaxContextImpl.getCurrentInstance().getAjaxActionURL(context));
+ org.ajax4jsf.context.AjaxContext ajaxContext = org.ajax4jsf.context.AjaxContext.getCurrentInstance(context);
+ String ajaxActionUrl = ajaxContext.getAjaxActionURL(context);
+
+ variables.setVariable("actionUrl", ajaxActionUrl);
variables.setVariable("formId",getFormId(context, component));
variables.setVariable("containerId",getContainerId(context, component));
17 years, 4 months
JBoss Rich Faces SVN: r11956 - trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-12-21 10:42:02 -0500 (Sun, 21 Dec 2008)
New Revision: 11956
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
Log:
RF-5238
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2008-12-20 23:52:37 UTC (rev 11955)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2008-12-21 15:42:02 UTC (rev 11956)
@@ -68,6 +68,8 @@
static final String IMMEDIATE_TEST_URL = "pages/calendar/testImmediate.xhtml";
static final String EVENTS_TEST_URL = "pages/calendar/testEventsAttributes.xhtml";
+
+ static final String STYLES_AND_CLASSES_TEST_URL = "pages/calendar/styleAndClassesTest.xhtml";
static final String JOINTPOINT_DIRECTION_TEST_URL = "pages/calendar/jointPointAndDirectionAttributesTest.xhtml";
@@ -432,6 +434,23 @@
Assert.fail("Calendar displays invalid date. It should contain ["+expected+"]. But was ["+headerDate+"]");
}
}
+
+ @Test
+ public void testStylesAndClasses(Template template) {
+ renderPage(STYLES_AND_CLASSES_TEST_URL, template, RESET_METHOD);
+ initIds(getParentId());
+
+ showPopup();
+
+ AssertTextEquals(popupButtonId, "Click", "Text for popup button has not been applied");
+ assertStyleAttributeContains(inputDateId, "color: green", "Style for input has bot been applied");
+ assertClassNames(inputDateId, new String [] {"inputClass"}, "Css class for input has not been applied", true);
+
+ assertClassNames(calendarId, new String [] {"rich-calendar-exterior","rich-calendar-popup","styleClass"}, "Css classes for component were rendered incorrectly", true);
+ assertStyleAttributeContains(calendarId, "font-weight: bold", "Style was not applied for component");
+
+ assertClassNames(calendarHeaderId, new String [] { "rich-calendar-header" }, "", true);
+ }
@Test
public void testEventsAttributes(Template template) {
@@ -1275,7 +1294,7 @@
AssertTextEquals(firstWeekDayCellId, weekDayShortName, "It looks as if 'firstWeekDay' attribute doesn't work");
}
- @Test
+ @Test
public void testDisabledAttribute(Template template) {
renderPage(SHOW_ATTRIBURES_TEST_URL, template, INIT_SHOW_ATTRIBUTES_TEST);
initIds(getParentId());
17 years, 4 months
JBoss Rich Faces SVN: r11955 - in trunk/sandbox/ui: colorPicker and 16 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-12-20 18:52:37 -0500 (Sat, 20 Dec 2008)
New Revision: 11955
Added:
trunk/sandbox/ui/colorPicker/
trunk/sandbox/ui/colorPicker/pom.xml
trunk/sandbox/ui/colorPicker/src/
trunk/sandbox/ui/colorPicker/src/main/
trunk/sandbox/ui/colorPicker/src/main/config/
trunk/sandbox/ui/colorPicker/src/main/config/component/
trunk/sandbox/ui/colorPicker/src/main/config/component/README
trunk/sandbox/ui/colorPicker/src/main/java/
trunk/sandbox/ui/colorPicker/src/main/java/org/
trunk/sandbox/ui/colorPicker/src/main/java/org/richfaces/
trunk/sandbox/ui/colorPicker/src/main/java/org/richfaces/ui/
trunk/sandbox/ui/colorPicker/src/main/java/org/richfaces/ui/component/
trunk/sandbox/ui/colorPicker/src/main/java/org/richfaces/ui/component/README
trunk/sandbox/ui/colorPicker/src/main/resources/
trunk/sandbox/ui/colorPicker/src/main/templates/
trunk/sandbox/ui/colorPicker/src/main/templates/README
trunk/sandbox/ui/colorPicker/src/test/
trunk/sandbox/ui/colorPicker/src/test/java/
trunk/sandbox/ui/colorPicker/src/test/java/org/
trunk/sandbox/ui/colorPicker/src/test/java/org/richfaces/
trunk/sandbox/ui/colorPicker/src/test/java/org/richfaces/ui/
trunk/sandbox/ui/colorPicker/src/test/java/org/richfaces/ui/component/
trunk/sandbox/ui/colorPicker/src/test/java/org/richfaces/ui/component/JSFComponentTest.java
Modified:
trunk/sandbox/ui/pom.xml
Log:
rich:colorPicker was added
Added: trunk/sandbox/ui/colorPicker/pom.xml
===================================================================
--- trunk/sandbox/ui/colorPicker/pom.xml (rev 0)
+++ trunk/sandbox/ui/colorPicker/pom.xml 2008-12-20 23:52:37 UTC (rev 11955)
@@ -0,0 +1,50 @@
+<?xml version="1.0"?><project>
+ <parent>
+ <artifactId>ui</artifactId>
+ <groupId>org.richfaces.sandbox</groupId>
+ <version>3.3.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>colorPicker</artifactId>
+ <name>colorPicker</name>
+ <version>1.0-SNAPSHOT</version>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.richfaces.cdk</groupId>
+ <artifactId>maven-cdk-plugin</artifactId>
+ <version>3.3.0-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <library>
+ <prefix>org.richfaces.ui</prefix>
+ <taglib>
+ <shortName>colorPicker</shortName>
+ </taglib>
+ </library>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-impl</artifactId>
+ <version>3.3.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Property changes on: trunk/sandbox/ui/colorPicker/pom.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/sandbox/ui/colorPicker/src/main/config/component/README
===================================================================
Property changes on: trunk/sandbox/ui/colorPicker/src/main/config/component/README
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/sandbox/ui/colorPicker/src/main/java/org/richfaces/ui/component/README
===================================================================
Property changes on: trunk/sandbox/ui/colorPicker/src/main/java/org/richfaces/ui/component/README
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/sandbox/ui/colorPicker/src/main/templates/README
===================================================================
Property changes on: trunk/sandbox/ui/colorPicker/src/main/templates/README
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/sandbox/ui/colorPicker/src/test/java/org/richfaces/ui/component/JSFComponentTest.java
===================================================================
--- trunk/sandbox/ui/colorPicker/src/test/java/org/richfaces/ui/component/JSFComponentTest.java (rev 0)
+++ trunk/sandbox/ui/colorPicker/src/test/java/org/richfaces/ui/component/JSFComponentTest.java 2008-12-20 23:52:37 UTC (rev 11955)
@@ -0,0 +1,53 @@
+/**
+ * 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.ui.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 );
+ }
+}
Property changes on: trunk/sandbox/ui/colorPicker/src/test/java/org/richfaces/ui/component/JSFComponentTest.java
___________________________________________________________________
Name: svn:executable
+ *
Modified: trunk/sandbox/ui/pom.xml
===================================================================
--- trunk/sandbox/ui/pom.xml 2008-12-20 18:04:21 UTC (rev 11954)
+++ trunk/sandbox/ui/pom.xml 2008-12-20 23:52:37 UTC (rev 11955)
@@ -18,5 +18,6 @@
<module>rex-messageBox</module>
<!--module>rex-button</module-->
<module>sortableHeader</module>
+ <module>colorPicker</module>
</modules>
</project>
\ No newline at end of file
17 years, 4 months
JBoss Rich Faces SVN: r11954 - trunk/ui/combobox/src/main/templates.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-12-20 13:04:21 -0500 (Sat, 20 Dec 2008)
New Revision: 11954
Modified:
trunk/ui/combobox/src/main/templates/combobox.jspx
Log:
https://jira.jboss.org/jira/browse/RF-4479
Modified: trunk/ui/combobox/src/main/templates/combobox.jspx
===================================================================
--- trunk/ui/combobox/src/main/templates/combobox.jspx 2008-12-20 18:02:34 UTC (rev 11953)
+++ trunk/ui/combobox/src/main/templates/combobox.jspx 2008-12-20 18:04:21 UTC (rev 11954)
@@ -223,12 +223,19 @@
tabindex="#{component.attributes['tabindex']}"
/>
<input id="#{clientId}comboBoxButtonBG"
+ tabindex="-1"
readonly="true"
type="text"
value=""
class="rich-combobox-font-inactive rich-combobox-button-background rich-combobox-button-inactive"/>
- <input id="#{clientId}comboboxButton" readonly="true" disabled="#{disabled}" type="text" value="" style="#{buttonStyle}; background-image: #{buttonIconInactive};"
- class="rich-combobox-font-inactive rich-combobox-button-icon-inactive rich-combobox-button-inactive #{buttonInactiveClass}"/>
+ <input id="#{clientId}comboboxButton"
+ tabindex="-1"
+ readonly="true"
+ disabled="#{disabled}"
+ type="text"
+ value=""
+ style="#{buttonStyle}; background-image: #{buttonIconInactive};"
+ class="rich-combobox-font-inactive rich-combobox-button-icon-inactive rich-combobox-button-inactive #{buttonInactiveClass}"/>
<div class="rich-combobox-strut rich-combobox-font" style="width:#{correction}">Strut</div>
</div>
17 years, 4 months