JBoss Rich Faces SVN: r13406 - Reports/3.3.1 and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: tkuprevich
Date: 2009-04-07 09:37:57 -0400 (Tue, 07 Apr 2009)
New Revision: 13406
Modified:
trunk/test-applications/qa/Test Reports/3.3.1/RFTestReport3.3.1.BETA3.xls
Log:
Modified: trunk/test-applications/qa/Test Reports/3.3.1/RFTestReport3.3.1.BETA3.xls
===================================================================
(Binary files differ)
15 years, 8 months
JBoss Rich Faces SVN: r13405 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2009-04-07 08:49:21 -0400 (Tue, 07 Apr 2009)
New Revision: 13405
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
Log:
test commit
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml 2009-04-07 12:28:02 UTC (rev 13404)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml 2009-04-07 12:49:21 UTC (rev 13405)
@@ -987,6 +987,7 @@
<section id="JSCallPropblemsInInclude">
<?dbhtml filename="JSCallPropblemsInInclude.html"?>
<title>Why does JavaScript call don't work in <a4j:include>?</title>
+
<para>More information about this problem could be found on the <ulink
url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104317"
>Ajax4Jsf Users Forum. </ulink>
15 years, 8 months
JBoss Rich Faces SVN: r13404 - trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/util.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-04-07 08:28:02 -0400 (Tue, 07 Apr 2009)
New Revision: 13404
Modified:
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/util/ImageLoader.java
Log:
change images rendering. without buffered image creation
Modified: trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/util/ImageLoader.java
===================================================================
--- trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/util/ImageLoader.java 2009-04-06 23:43:26 UTC (rev 13403)
+++ trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/util/ImageLoader.java 2009-04-07 12:28:02 UTC (rev 13404)
@@ -24,13 +24,20 @@
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
+import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Serializable;
+import java.util.Iterator;
import javax.imageio.ImageIO;
+import javax.imageio.ImageReader;
+import javax.imageio.ImageWriter;
+import javax.imageio.stream.ImageInputStream;
+import javax.imageio.stream.ImageOutputStream;
+import org.apache.commons.collections.BufferUtils;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.AutoCreate;
import org.jboss.seam.annotations.In;
@@ -65,20 +72,22 @@
imageResource = fileManager.getFileByPath(data.toString());
}
if (imageResource != null && imageResource.exists()) {
- FileInputStream fileInputStream = new FileInputStream(imageResource);
-
- BufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);
- InputStream paintData = bufferedInputStream;
- try {
- //TODO nick - pass-through writing will save us large amount of CPU time and images quality
- BufferedImage images = ImageIO.read(paintData);
- ImageIO.write(images, Constants.JPEG, out);
- } catch (Exception e) {
- //TODO nick - any particular reason to catch not to take the whole method body into try/catch?
- Events.instance().raiseEvent(Constants.ADD_ERROR_EVENT, FILE_PROCESSING_ERROR);
- } finally {
- bufferedInputStream.close();
- }
+
+ byte [] toWrite = new byte[8192];
+
+ ImageInputStream inputStream = ImageIO.createImageInputStream(imageResource);
+ ImageOutputStream outputStream = ImageIO.createImageOutputStream(out);
+
+ try {
+ while(inputStream.read(toWrite) != -1) {
+ outputStream.write(toWrite);
+ }
+
+ } finally {
+ outputStream.close();
+ inputStream.close();
+ }
+
}else{
Events.instance().raiseEvent("stopSlideshow");
Events.instance().raiseEvent(Constants.ADD_ERROR_EVENT, "Images was deleted. Sorry");
15 years, 8 months
JBoss Rich Faces SVN: r13403 - trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-04-06 19:43:26 -0400 (Mon, 06 Apr 2009)
New Revision: 13403
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/KeepAliveTest.java
Log:
KeepAliveTest: missed waitForAjaxCompletion() added
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/KeepAliveTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/KeepAliveTest.java 2009-04-06 21:54:52 UTC (rev 13402)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/KeepAliveTest.java 2009-04-06 23:43:26 UTC (rev 13403)
@@ -46,6 +46,7 @@
writeStatus("The sum has to be increased by 5 twice again");
clickById(addAjaxButtonId);
+ waitForAjaxCompletion();
clickById(addAjaxButtonId);
waitForAjaxCompletion();
AssertValueEquals(sumElemId, "20");
15 years, 8 months
JBoss Rich Faces SVN: r13402 - trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-04-06 17:54:52 -0400 (Mon, 06 Apr 2009)
New Revision: 13402
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java
Log:
type* methods deprecated due to FF problems (reproducible on e-mail addresses)
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 2009-04-06 21:53:33 UTC (rev 13401)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java 2009-04-06 21:54:52 UTC (rev 13402)
@@ -993,6 +993,7 @@
* @param locator
* @param string
*/
+ @Deprecated
public void type(String locator, String string) {
selenium.type(locator, "");
StringBuffer value = new StringBuffer(selenium.getValue(locator));
@@ -1019,6 +1020,7 @@
* @param locator an element locator
* @param string the value to type
*/
+ @Deprecated
public void typeOn(String locator, String string) {
StringBuffer value = new StringBuffer(selenium.getValue(locator));
char[] chars = string.toCharArray();
15 years, 8 months
JBoss Rich Faces SVN: r13401 - trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-04-06 17:53:33 -0400 (Mon, 06 Apr 2009)
New Revision: 13401
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/GraphValidatorTest.java
Log:
GraphValidatorTest updated
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/GraphValidatorTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/GraphValidatorTest.java 2009-04-06 21:46:54 UTC (rev 13400)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/GraphValidatorTest.java 2009-04-06 21:53:33 UTC (rev 13401)
@@ -64,13 +64,13 @@
assertNotPresent(tfAgeErrMsg);
writeStatus("Name must be between 3 and 12 at length. Type shorter one");
- type(tfNameId, "Mi");
+ selenium.type(tfNameId, "Mi");
writeStatus("Email must be an email. Type not a well-formed email");
- type(tfEmailId, "notemail");
+ selenium.type(tfEmailId, "notemail");
writeStatus("Age must be between 18 and 100. Type less than that");
- type(tfAgeId, "3");
+ selenium.type(tfAgeId, "3");
writeStatus("Try to save an input");
clickAjaxCommandAndWait(saveBtn);
@@ -81,9 +81,9 @@
writeStatus("Correct the input and resubmit form. Error messages have to disappear");
- type(tfNameId, "Mick");
- type(tfAgeId, "33");
- type(tfEmailId, "email(a)ya.com");
+ selenium.type(tfNameId, "Mick");
+ selenium.type(tfAgeId, "33");
+ selenium.type(tfEmailId, "email(a)ya.com");
writeStatus("Try to save an input once more");
clickAjaxCommandAndWait(saveBtn);
@@ -159,7 +159,7 @@
}
private void spinnerManualInput(String value, int n) {
- type("xpath=//table[@id='" + getParentId() + "_form1:table:"+n+":time']/tbody/tr/td/input", value);
+ selenium.type("xpath=//table[@id='" + getParentId() + "_form1:table:"+n+":time']/tbody/tr/td/input", value);
}
@Override
15 years, 8 months
JBoss Rich Faces SVN: r13400 - trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-04-06 17:46:54 -0400 (Mon, 06 Apr 2009)
New Revision: 13400
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarTestBean.java
Log:
Removed logger information from CalendarTestBean
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarTestBean.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarTestBean.java 2009-04-06 21:46:28 UTC (rev 13399)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarTestBean.java 2009-04-06 21:46:54 UTC (rev 13400)
@@ -27,7 +27,6 @@
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
-import java.util.logging.Logger;
import javax.faces.convert.DateTimeConverter;
import javax.faces.event.ValueChangeEvent;
@@ -37,9 +36,6 @@
public class CalendarTestBean {
- //TODO remove
- private static final Logger logger = Logger.getAnonymousLogger();
-
public static final String valueChangeListener = "valueChangeListener";
public static final String currentDateChangeListener = "currentDateChangeListener";
@@ -107,7 +103,7 @@
}
public void setSelectedDate(Date selectedDate) {
- this.selectedDate = selectedDate;
+ this.selectedDate = selectedDate;
resetSelectedDateString();
}
@@ -136,7 +132,6 @@
}
public TimeZone getTimeZone() {
- logger.info("Timezone is: " + timeZone);
return timeZone;
}
15 years, 8 months
JBoss Rich Faces SVN: r13399 - trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-04-06 17:46:28 -0400 (Mon, 06 Apr 2009)
New Revision: 13399
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DropDownMenuTest.java
Log:
DropdownMenu Selenium tests updated to comply with https://jira.jboss.org/jira/browse/RF-5226
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DropDownMenuTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DropDownMenuTest.java 2009-04-06 19:53:16 UTC (rev 13398)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DropDownMenuTest.java 2009-04-06 21:46:28 UTC (rev 13399)
@@ -69,9 +69,9 @@
assertClassNames(ddMenuId, new String [] {"dr-menu-label", "rich-ddmenu-label", "dr-menu-label-unselect", "rich-ddmenu-label-unselect"}, "Drop down menu has unexpected css classes", true);
assertClassNames(ddMenuId, new String[] {"dropDownMenuClass"}, "Class attribute does not work for DropDown menu component", true);
- assertClassNames(ddMenuGroup, new String [] {"dr-menu-item", "dr-menu-item-enabled", "rich-menu-group"}, "Menu group has unexpected css classes", true);
+ assertClassNames(ddMenuGroup, new String [] {"rich-menu-group-enabled", "rich-menu-group"}, "Menu group has unexpected css classes", true);
assertClassNames(ddMenuGroup, new String[] {"menuGroupClass"}, "Class attribute does not work for Menu group component", true);
- assertClassNames(ddMenuItem, new String [] {"dr-menu-item", "dr-menu-item-enabled", "rich-menu-item"}, "Menu item has unexpected css classes", true);
+ assertClassNames(ddMenuItem, new String [] {"rich-menu-item-enabled", "rich-menu-item"}, "Menu item has unexpected css classes", true);
assertClassNames(ddMenuItem, new String[] {"menuItemClass"}, "Class attribute does not work for Menu item component", true);
assertStyleAttribute(ddMenuId, "color: red", "Style attribute for Drop down menu does not work");
@@ -207,7 +207,7 @@
AssertTextEquals(saveAll, "Save All", "Save All menu Item was not rendered");
AssertVisible(parentId + "saveAs:folder", "Save as group was not rendered");
- assertClassNames(separator, new String [] {"dr-menu-separator", "rich-menu-separator"}, "Separator has invalid css class names", true);
+ assertClassNames(separator, new String [] {"rich-menu-separator"}, "Separator has invalid css class names", true);
AssertVisible(separator, "Separator was not output");
}
15 years, 8 months
JBoss Rich Faces SVN: r13398 - trunk/ui/calendar/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-04-06 15:53:16 -0400 (Mon, 06 Apr 2009)
New Revision: 13398
Modified:
trunk/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
Log:
https://jira.jboss.org/jira/browse/RF-6723
Modified: trunk/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
===================================================================
--- trunk/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2009-04-06 18:44:32 UTC (rev 13397)
+++ trunk/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2009-04-06 19:53:16 UTC (rev 13398)
@@ -34,6 +34,7 @@
import java.util.MissingResourceException;
import java.util.ResourceBundle;
import java.util.Set;
+import java.util.TimeZone;
import javax.el.ValueExpression;
import javax.faces.application.Application;
@@ -626,7 +627,7 @@
Object value = calendar.getValue();
date = calendar.getAsDate(value);
if(date != null) {
- returnValue = formatSelectedDate(date);
+ returnValue = formatSelectedDate(calendar.getTimeZone(), date);
}
}
return ScriptUtils.toScript(returnValue);
@@ -643,8 +644,9 @@
return result;
}
- public static Object formatSelectedDate(Date date) {
+ public static Object formatSelectedDate(TimeZone timeZone, Date date) {
Calendar calendar = Calendar.getInstance();
+ calendar.setTimeZone(timeZone);
calendar.setTime(date);
JSFunction result = new JSFunction("new Date");
result.addParameter(Integer.valueOf(calendar.get(Calendar.YEAR)));
15 years, 8 months
JBoss Rich Faces SVN: r13397 - trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-04-06 14:44:32 -0400 (Mon, 06 Apr 2009)
New Revision: 13397
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarTestBean.java
Log:
Added logger information to CalendarTestBean
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarTestBean.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarTestBean.java 2009-04-06 17:45:45 UTC (rev 13396)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarTestBean.java 2009-04-06 18:44:32 UTC (rev 13397)
@@ -27,6 +27,7 @@
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
+import java.util.logging.Logger;
import javax.faces.convert.DateTimeConverter;
import javax.faces.event.ValueChangeEvent;
@@ -36,6 +37,9 @@
public class CalendarTestBean {
+ //TODO remove
+ private static final Logger logger = Logger.getAnonymousLogger();
+
public static final String valueChangeListener = "valueChangeListener";
public static final String currentDateChangeListener = "currentDateChangeListener";
@@ -132,7 +136,8 @@
}
public TimeZone getTimeZone() {
- return timeZone;
+ logger.info("Timezone is: " + timeZone);
+ return timeZone;
}
public void setDatePattern(String datePattern) {
15 years, 8 months