JBoss Rich Faces SVN: r8887 - trunk/ui/orderingList/src/test/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-06-03 09:47:19 -0400 (Tue, 03 Jun 2008)
New Revision: 8887
Modified:
trunk/ui/orderingList/src/test/java/org/richfaces/renderkit/OrderingListRenderingTest.java
Log:
fix png/gif assertions
Modified: trunk/ui/orderingList/src/test/java/org/richfaces/renderkit/OrderingListRenderingTest.java
===================================================================
--- trunk/ui/orderingList/src/test/java/org/richfaces/renderkit/OrderingListRenderingTest.java 2008-06-03 13:45:16 UTC (rev 8886)
+++ trunk/ui/orderingList/src/test/java/org/richfaces/renderkit/OrderingListRenderingTest.java 2008-06-03 13:47:19 UTC (rev 8887)
@@ -72,11 +72,12 @@
imageClasses.add("org.richfaces.renderkit.html.images.OrderingListIconDownDisabled");
imageClasses.add("org.richfaces.renderkit.html.images.OrderingListIconTopDisabled");
imageClasses.add("org.richfaces.renderkit.html.images.OrderingListIconBottomDisabled");
- imageClasses.add("org.richfaces.renderkit.html.gradientimages.OrderingListClickedGradient");
- imageClasses.add("org.richfaces.renderkit.html.gradientimages.OrderingListButtonGradient");
+ imageClasses.add("org.richfaces.renderkit.html.images.TriangleIconDown");
- imagePNGClasses.add("org.richfaces.renderkit.html.images.TriangleIconDown");
imagePNGClasses.add("org.richfaces.renderkit.html.gradientimages.OrderingListHeaderGradient");
+ imagePNGClasses.add("org.richfaces.renderkit.html.gradientimages.OrderingListClickedGradient");
+ imagePNGClasses.add("org.richfaces.renderkit.html.gradientimages.OrderingListButtonGradient");
+
}
/**
@@ -206,7 +207,7 @@
String clazz = it.next();
ImageInfo info = getImageResource(clazz);
assertNotNull(info);
- assertEquals(ImageInfo.FORMAT_GIF, info.getFormat());
+ assertEquals(ImageInfo.FORMAT_PNG, info.getFormat());
assertTrue(info.getHeight() > 0);
assertTrue(info.getWidth() > 0);
}
16 years, 7 months
JBoss Rich Faces SVN: r8886 - trunk/ui/listShuttle/src/test/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-06-03 09:45:16 -0400 (Tue, 03 Jun 2008)
New Revision: 8886
Modified:
trunk/ui/listShuttle/src/test/java/org/richfaces/renderkit/ListShuttleRenderingTest.java
Log:
fix png gif assertions
Modified: trunk/ui/listShuttle/src/test/java/org/richfaces/renderkit/ListShuttleRenderingTest.java
===================================================================
--- trunk/ui/listShuttle/src/test/java/org/richfaces/renderkit/ListShuttleRenderingTest.java 2008-06-03 13:30:28 UTC (rev 8885)
+++ trunk/ui/listShuttle/src/test/java/org/richfaces/renderkit/ListShuttleRenderingTest.java 2008-06-03 13:45:16 UTC (rev 8886)
@@ -78,9 +78,6 @@
imageClasses.add("org.richfaces.renderkit.html.images.OrderingListIconUpDisabled");
imageClasses.add("org.richfaces.renderkit.html.images.OrderingListIconDownDisabled");
imageClasses.add("org.richfaces.renderkit.html.images.OrderingListIconTopDisabled");
- imageClasses.add("org.richfaces.renderkit.html.gradientimages.OrderingListClickedGradient");
- imageClasses.add("org.richfaces.renderkit.html.gradientimages.OrderingListHeaderGradient");
- imageClasses.add("org.richfaces.renderkit.html.gradientimages.OrderingListButtonGradient");
imageClasses.add("org.richfaces.renderkit.html.images.ListShuttleIconCopy");
imageClasses.add("org.richfaces.renderkit.html.images.ListShuttleIconCopyDisabled");
@@ -90,9 +87,14 @@
imageClasses.add("org.richfaces.renderkit.html.images.ListShuttleIconRemoveAll");
imageClasses.add("org.richfaces.renderkit.html.images.ListShuttleIconRemoveDisabled");
imageClasses.add("org.richfaces.renderkit.html.images.ListShuttleIconRemoveAllDisabled");
+ imageClasses.add("org.richfaces.renderkit.html.images.TriangleIconDown");
+ imageClasses.add("org.richfaces.renderkit.html.images.OrderingListIconBottomDisabled");
- imagePNGClasses.add("org.richfaces.renderkit.html.images.TriangleIconDown");
- imagePNGClasses.add("org.richfaces.renderkit.html.images.OrderingListIconBottomDisabled");
+ imagePNGClasses.add("org.richfaces.renderkit.html.gradientimages.OrderingListButtonGradient");
+ imagePNGClasses.add("org.richfaces.renderkit.html.gradientimages.OrderingListClickedGradient");
+ imagePNGClasses.add("org.richfaces.renderkit.html.gradientimages.OrderingListHeaderGradient");
+
+
}
/**
@@ -339,7 +341,7 @@
String clazz = it.next();
ImageInfo info = getImageResource(clazz);
assertNotNull(info);
- assertEquals(ImageInfo.FORMAT_GIF, info.getFormat());
+ assertEquals(ImageInfo.FORMAT_PNG, info.getFormat());
assertTrue(info.getHeight() > 0);
assertTrue(info.getWidth() > 0);
}
16 years, 7 months
JBoss Rich Faces SVN: r8885 - trunk/ui/listShuttle/src/test/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2008-06-03 09:30:28 -0400 (Tue, 03 Jun 2008)
New Revision: 8885
Modified:
trunk/ui/listShuttle/src/test/java/org/richfaces/renderkit/ListShuttleRenderingTest.java
Log:
Modified: trunk/ui/listShuttle/src/test/java/org/richfaces/renderkit/ListShuttleRenderingTest.java
===================================================================
--- trunk/ui/listShuttle/src/test/java/org/richfaces/renderkit/ListShuttleRenderingTest.java 2008-06-03 13:29:45 UTC (rev 8884)
+++ trunk/ui/listShuttle/src/test/java/org/richfaces/renderkit/ListShuttleRenderingTest.java 2008-06-03 13:30:28 UTC (rev 8885)
@@ -60,6 +60,7 @@
private static final Set<String> javaScripts = new HashSet<String>();
private static final Set<String> imageClasses = new HashSet<String>();
+ private static final Set<String> imagePNGClasses = new HashSet<String>();
static {
javaScripts.add("org.ajax4jsf.javascript.PrototypeScript");
@@ -72,13 +73,11 @@
javaScripts.add("scripts/ListBase.js");
imageClasses.add("org.richfaces.renderkit.html.images.TriangleIconUp");
- imageClasses.add("org.richfaces.renderkit.html.images.TriangleIconDown");
imageClasses.add("org.richfaces.renderkit.html.images.OrderingListIconTop");
imageClasses.add("org.richfaces.renderkit.html.images.OrderingListIconBottom");
imageClasses.add("org.richfaces.renderkit.html.images.OrderingListIconUpDisabled");
imageClasses.add("org.richfaces.renderkit.html.images.OrderingListIconDownDisabled");
imageClasses.add("org.richfaces.renderkit.html.images.OrderingListIconTopDisabled");
- imageClasses.add("org.richfaces.renderkit.html.images.OrderingListIconBottomDisabled");
imageClasses.add("org.richfaces.renderkit.html.gradientimages.OrderingListClickedGradient");
imageClasses.add("org.richfaces.renderkit.html.gradientimages.OrderingListHeaderGradient");
imageClasses.add("org.richfaces.renderkit.html.gradientimages.OrderingListButtonGradient");
@@ -91,6 +90,9 @@
imageClasses.add("org.richfaces.renderkit.html.images.ListShuttleIconRemoveAll");
imageClasses.add("org.richfaces.renderkit.html.images.ListShuttleIconRemoveDisabled");
imageClasses.add("org.richfaces.renderkit.html.images.ListShuttleIconRemoveAllDisabled");
+
+ imagePNGClasses.add("org.richfaces.renderkit.html.images.TriangleIconDown");
+ imagePNGClasses.add("org.richfaces.renderkit.html.images.OrderingListIconBottomDisabled");
}
/**
@@ -332,6 +334,15 @@
assertTrue(info.getHeight() > 0);
assertTrue(info.getWidth() > 0);
}
+
+ for (Iterator<String> it = imagePNGClasses.iterator(); it.hasNext(); ) {
+ String clazz = it.next();
+ ImageInfo info = getImageResource(clazz);
+ assertNotNull(info);
+ assertEquals(ImageInfo.FORMAT_GIF, info.getFormat());
+ assertTrue(info.getHeight() > 0);
+ assertTrue(info.getWidth() > 0);
+ }
}
/**
16 years, 7 months
JBoss Rich Faces SVN: r8884 - trunk/ui/orderingList/src/test/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2008-06-03 09:29:45 -0400 (Tue, 03 Jun 2008)
New Revision: 8884
Modified:
trunk/ui/orderingList/src/test/java/org/richfaces/renderkit/OrderingListRenderingTest.java
Log:
Modified: trunk/ui/orderingList/src/test/java/org/richfaces/renderkit/OrderingListRenderingTest.java
===================================================================
--- trunk/ui/orderingList/src/test/java/org/richfaces/renderkit/OrderingListRenderingTest.java 2008-06-03 12:44:32 UTC (rev 8883)
+++ trunk/ui/orderingList/src/test/java/org/richfaces/renderkit/OrderingListRenderingTest.java 2008-06-03 13:29:45 UTC (rev 8884)
@@ -54,6 +54,7 @@
public class OrderingListRenderingTest extends AbstractAjax4JsfTestCase {
private static Set<String> javaScripts = new HashSet<String>();
private static Set<String> imageClasses = new HashSet<String>();
+ private static Set<String> imagePNGClasses = new HashSet<String>();
static {
javaScripts.add("org.ajax4jsf.javascript.PrototypeScript");
@@ -65,7 +66,6 @@
javaScripts.add("scripts/ListBase.js");
imageClasses.add("org.richfaces.renderkit.html.images.TriangleIconUp");
- imageClasses.add("org.richfaces.renderkit.html.images.TriangleIconDown");
imageClasses.add("org.richfaces.renderkit.html.images.OrderingListIconTop");
imageClasses.add("org.richfaces.renderkit.html.images.OrderingListIconBottom");
imageClasses.add("org.richfaces.renderkit.html.images.OrderingListIconUpDisabled");
@@ -73,8 +73,10 @@
imageClasses.add("org.richfaces.renderkit.html.images.OrderingListIconTopDisabled");
imageClasses.add("org.richfaces.renderkit.html.images.OrderingListIconBottomDisabled");
imageClasses.add("org.richfaces.renderkit.html.gradientimages.OrderingListClickedGradient");
- imageClasses.add("org.richfaces.renderkit.html.gradientimages.OrderingListHeaderGradient");
imageClasses.add("org.richfaces.renderkit.html.gradientimages.OrderingListButtonGradient");
+
+ imagePNGClasses.add("org.richfaces.renderkit.html.images.TriangleIconDown");
+ imagePNGClasses.add("org.richfaces.renderkit.html.gradientimages.OrderingListHeaderGradient");
}
/**
@@ -199,6 +201,15 @@
assertTrue(info.getHeight() > 0);
assertTrue(info.getWidth() > 0);
}
+
+ for (Iterator<String> it = imagePNGClasses.iterator(); it.hasNext(); ) {
+ String clazz = it.next();
+ ImageInfo info = getImageResource(clazz);
+ assertNotNull(info);
+ assertEquals(ImageInfo.FORMAT_GIF, info.getFormat());
+ assertTrue(info.getHeight() > 0);
+ assertTrue(info.getWidth() > 0);
+ }
}
/**
16 years, 7 months
JBoss Rich Faces SVN: r8883 - trunk/ui/inputnumber-spinner/src/test/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-06-03 08:44:32 -0400 (Tue, 03 Jun 2008)
New Revision: 8883
Modified:
trunk/ui/inputnumber-spinner/src/test/java/org/richfaces/component/InputNumberSpinnerComponentTest.java
Log:
fix png gif assertions
Modified: trunk/ui/inputnumber-spinner/src/test/java/org/richfaces/component/InputNumberSpinnerComponentTest.java
===================================================================
--- trunk/ui/inputnumber-spinner/src/test/java/org/richfaces/component/InputNumberSpinnerComponentTest.java 2008-06-03 12:29:44 UTC (rev 8882)
+++ trunk/ui/inputnumber-spinner/src/test/java/org/richfaces/component/InputNumberSpinnerComponentTest.java 2008-06-03 12:44:32 UTC (rev 8883)
@@ -190,17 +190,26 @@
renderView();
assertNotNull(getResourceIfPresent("css/spinner.xcss"));
String[] resources = new String[]{
- SpinnerButtonGradient.class.getName(),
- SpinnerFieldGradient.class.getName(),
SpinnerButtonDown.class.getName(),
SpinnerButtonUp.class.getName()
};
for (int i = 0; i < resources.length; i++) {
- ImageInfo info = getImageResource(resources[i]);
- assertNotNull(info);
+ ImageInfo info = getImageResource(resources[i]);
+ assertNotNull(info);
assertEquals(ImageInfo.FORMAT_GIF, info.getFormat());
}
+
+ String[] pngResources = new String[]{
+ SpinnerButtonGradient.class.getName(),
+ SpinnerFieldGradient.class.getName(),
+ };
+
+ for (int i = 0; i < pngResources.length; i++) {
+ ImageInfo info = getImageResource(pngResources[i]);
+ assertNotNull(info);
+ assertEquals(ImageInfo.FORMAT_PNG, info.getFormat());
+ }
}
public void testRenderStyle() throws Exception {
16 years, 7 months
JBoss Rich Faces SVN: r8882 - in trunk/test-applications/jsp/src/main: webapp/pages/RichMenu and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2008-06-03 08:29:44 -0400 (Tue, 03 Jun 2008)
New Revision: 8882
Modified:
trunk/test-applications/jsp/src/main/java/rich/RichBean.java
trunk/test-applications/jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp
Log:
+add button "invalidates this session"
Modified: trunk/test-applications/jsp/src/main/java/rich/RichBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/rich/RichBean.java 2008-06-03 12:24:52 UTC (rev 8881)
+++ trunk/test-applications/jsp/src/main/java/rich/RichBean.java 2008-06-03 12:29:44 UTC (rev 8882)
@@ -3,16 +3,16 @@
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
-import java.util.Map;
import javax.faces.context.FacesContext;
import javax.faces.model.SelectItem;
+import javax.servlet.http.HttpSession;
-import org.richfaces.VersionBean;
+//import org.richfaces.VersionBean;
public class RichBean {
private static final String EXT = ".jsp";
- private String version = VersionBean.SCM_REVISION;
+ private String version = "3.2.2"; //VersionBean.SCM_REVISION;
private String src;
private String srcContainer;
private MapComponent map;
@@ -144,4 +144,12 @@
}
return l;
}
+
+ public String invalidateSession(){
+ FacesContext context = FacesContext.getCurrentInstance();
+ HttpSession session = (HttpSession) context.getExternalContext().getSession(false);
+ session.invalidate();
+ System.out.println("RichBean.invalidateSession()");
+ return "RichFaces";
+ }
}
Modified: trunk/test-applications/jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp 2008-06-03 12:24:52 UTC (rev 8881)
+++ trunk/test-applications/jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp 2008-06-03 12:29:44 UTC (rev 8882)
@@ -48,6 +48,7 @@
</h:panelGrid>
<h:panelGrid columns="1">
+ <h:commandButton action="#{richBean.invalidateSession}" immediate="true" value="Invalidates this session"></h:commandButton>
<h:outputText value="Select component:" />
<h:selectOneMenu value="#{richBean.src}" immediate="true" onchange="submit();">
<f:selectItems value="#{richBean.list}" />
16 years, 7 months
JBoss Rich Faces SVN: r8881 - trunk/ui/inputnumber-slider/src/test/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-06-03 08:24:52 -0400 (Tue, 03 Jun 2008)
New Revision: 8881
Modified:
trunk/ui/inputnumber-slider/src/test/java/org/richfaces/component/InputNumberSliderComponentTest.java
Log:
fix png gif assertions
Modified: trunk/ui/inputnumber-slider/src/test/java/org/richfaces/component/InputNumberSliderComponentTest.java
===================================================================
--- trunk/ui/inputnumber-slider/src/test/java/org/richfaces/component/InputNumberSliderComponentTest.java 2008-06-03 11:54:36 UTC (rev 8880)
+++ trunk/ui/inputnumber-slider/src/test/java/org/richfaces/component/InputNumberSliderComponentTest.java 2008-06-03 12:24:52 UTC (rev 8881)
@@ -225,17 +225,26 @@
String[] resources = new String[]{
SliderArrowImage.class.getName(),
SliderArrowSelectedImage.class.getName(),
- SliderFieldGradient.class.getName(),
- SliderTrackGradient.class.getName()
};
for (int i = 0; i < resources.length; i++) {
- ImageInfo info = getImageResource(resources[i]);
- assertNotNull(info);
+ ImageInfo info = getImageResource(resources[i]);
+ assertNotNull(info);
assertEquals(ImageInfo.FORMAT_GIF, info.getFormat());
}
+
+ String[] pngResources = new String[]{
+ SliderFieldGradient.class.getName(),
+ SliderTrackGradient.class.getName()
+ };
+
+ for (int i = 0; i < pngResources.length; i++) {
+ ImageInfo info = getImageResource(pngResources[i]);
+ assertNotNull(info);
+ assertEquals(ImageInfo.FORMAT_PNG, info.getFormat());
+ }
}
-
+
public void testUpdate() throws Exception {
//tests if component handles value bindings correctly
HtmlPage renderedView = renderView();
16 years, 7 months
JBoss Rich Faces SVN: r8880 - trunk/ui/tabPanel/src/test/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-06-03 07:54:36 -0400 (Tue, 03 Jun 2008)
New Revision: 8880
Modified:
trunk/ui/tabPanel/src/test/java/org/richfaces/component/TabPanelComponentTest.java
Log:
fix png and gif assertion
Modified: trunk/ui/tabPanel/src/test/java/org/richfaces/component/TabPanelComponentTest.java
===================================================================
--- trunk/ui/tabPanel/src/test/java/org/richfaces/component/TabPanelComponentTest.java 2008-06-03 11:14:17 UTC (rev 8879)
+++ trunk/ui/tabPanel/src/test/java/org/richfaces/component/TabPanelComponentTest.java 2008-06-03 11:54:36 UTC (rev 8880)
@@ -219,15 +219,24 @@
assertNotNull(view);
assertNotNull(getResourceIfPresent("css/tabPanel.xcss"));
String[] resources = new String[]{
- "org.richfaces.renderkit.images.TabGradientA",
- "org.richfaces.renderkit.images.TabGradientB",
"org.richfaces.renderkit.images.TabStripeImage"
};
for (int i = 0; i < resources.length; i++) {
- ImageInfo info = getImageResource(resources[i]);
- assertNotNull(info);
+ ImageInfo info = getImageResource(resources[i]);
+ assertNotNull(info);
assertEquals(ImageInfo.FORMAT_GIF, info.getFormat());
}
- }
+
+ String[] pngResources = new String[]{
+ "org.richfaces.renderkit.images.TabGradientA",
+ "org.richfaces.renderkit.images.TabGradientB",
+ };
+
+ for (int i = 0; i < pngResources.length; i++) {
+ ImageInfo info = getImageResource(pngResources[i]);
+ assertNotNull(info);
+ assertEquals(ImageInfo.FORMAT_PNG, info.getFormat());
+ }
+ }
}
16 years, 7 months
JBoss Rich Faces SVN: r8879 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2008-06-03 07:14:17 -0400 (Tue, 03 Jun 2008)
New Revision: 8879
Modified:
trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml
Log:
http://jira.jboss.com/jira/browse/RF-2305
contextMenu - show()- fixed
Modified: trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml 2008-06-03 10:55:56 UTC (rev 8878)
+++ trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml 2008-06-03 11:14:17 UTC (rev 8879)
@@ -453,7 +453,7 @@
<entry>Component, group</entry>
</row>
<row>
- <entry>show(event)</entry>
+ <entry>show(event, context)</entry>
<entry>Shows component or group</entry>
<entry>Component, group</entry>
</row>
16 years, 7 months
JBoss Rich Faces SVN: r8878 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2008-06-03 06:55:56 -0400 (Tue, 03 Jun 2008)
New Revision: 8878
Modified:
trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml
Log:
http://jira.jboss.com/jira/browse/RF-2305
contextMenu - show()- fixed
Modified: trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml 2008-06-03 10:39:29 UTC (rev 8877)
+++ trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml 2008-06-03 10:55:56 UTC (rev 8878)
@@ -449,12 +449,12 @@
<!--Sorting API -->
<row>
<entry>hide()</entry>
- <entry>Hide component or group</entry>
+ <entry>Hides component or group</entry>
<entry>Component, group</entry>
</row>
<row>
- <entry>show()</entry>
- <entry>Show component or group</entry>
+ <entry>show(event)</entry>
+ <entry>Shows component or group</entry>
<entry>Component, group</entry>
</row>
<!--row>
16 years, 7 months