JBoss Rich Faces SVN: r13222 - trunk/ui/assembly.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-03-26 11:51:43 -0400 (Thu, 26 Mar 2009)
New Revision: 13222
Modified:
trunk/ui/assembly/pom.xml
Log:
Layout *.xcss excluded from assembly
Modified: trunk/ui/assembly/pom.xml
===================================================================
--- trunk/ui/assembly/pom.xml 2009-03-26 15:20:33 UTC (rev 13221)
+++ trunk/ui/assembly/pom.xml 2009-03-26 15:51:43 UTC (rev 13222)
@@ -62,7 +62,7 @@
<!--
<templateXpath>/*[local-name()='template']/*</templateXpath>
-->
- <excludeXcss>**/basic.xcss, **/basic_classes.xcss, **/basic_both.xcss, **/extended.xcss, **/extended_classes.xcss, **/extended_both.xcss, **/skin*.xcss, **/tiny_mce/**</excludeXcss>
+ <excludeXcss>**/basic.xcss, **/basic_classes.xcss, **/basic_both.xcss, **/extended.xcss, **/extended_classes.xcss, **/extended_both.xcss, **/skin*.xcss, **/tiny_mce/**, **/org/richfaces/renderkit/html/css/simple.xcss, **/org/richfaces/renderkit/html/css/violetRays.xcss </excludeXcss>
<commonStyle>org/richfaces/skin.xcss</commonStyle>
</configuration>
<executions>
15 years, 9 months
JBoss Rich Faces SVN: r13221 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2009-03-26 11:20:33 -0400 (Thu, 26 Mar 2009)
New Revision: 13221
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCtechreqs.xml
Log:
RF-6532 - All guides had been checked and some versions had been corrected
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCtechreqs.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCtechreqs.xml 2009-03-26 14:56:59 UTC (rev 13220)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCtechreqs.xml 2009-03-26 15:20:33 UTC (rev 13221)
@@ -34,15 +34,15 @@
<keyword>JBoss 3.2 - 4.0.x</keyword>
- <keyword>Internet Explorer 6.0 - 7.0</keyword>
+ <keyword>Internet Explorer 6.0 - 6.0</keyword>
- <keyword>Firefox 1.0 - 2.0</keyword>
+ <keyword>Firefox 2.0 - 3.0</keyword>
<keyword>Opera 8.0 - 9.0</keyword>
<keyword>Netscape 7.0</keyword>
- <keyword>Safari 2.0</keyword>
+ <keyword>Safari 3.0</keyword>
</keywordset>
</chapterinfo>
@@ -125,24 +125,19 @@
<title>Supported Browsers</title>
<itemizedlist>
- <listitem><para>Internet Explorer 6.0 - 7.0</para></listitem>
+ <listitem><para>Internet Explorer 6.0 - 8.0</para></listitem>
- <listitem><para>Firefox 1.5 - 3.0</para></listitem>
+ <listitem><para>Firefox 2.0 - 3.0</para></listitem>
<listitem><para>Opera 8.5 - 9.5</para></listitem>
- <listitem><para>Safari 2.0-3.1</para></listitem>
+ <listitem><para>Safari 3.0</para></listitem>
- <listitem><para>Chrome</para></listitem>
+ <listitem><para>Google Chrome</para></listitem>
</itemizedlist>
- <note>
- <title>Note:</title>
- <para>Safari 3.0 Beta is not supported.</para>
- </note>
-
<para>This list is composed basing on reports received from our users. We assume the list can be
incomplete and absence of your environment in the list doesn't mean incompatibility.</para>
<para>We appreciate your feedback on platforms and browsers that aren't in the list but
15 years, 9 months
JBoss Rich Faces SVN: r13220 - in trunk/docs/faq: en and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2009-03-26 10:56:59 -0400 (Thu, 26 Mar 2009)
New Revision: 13220
Modified:
trunk/docs/faq/en/pom.xml
trunk/docs/faq/pom.xml
Log:
spell-checker is disabled due to errors in build
Modified: trunk/docs/faq/en/pom.xml
===================================================================
--- trunk/docs/faq/en/pom.xml 2009-03-26 14:42:52 UTC (rev 13219)
+++ trunk/docs/faq/en/pom.xml 2009-03-26 14:56:59 UTC (rev 13220)
@@ -37,10 +37,10 @@
<artifactId>maven-jdocbook-plugin</artifactId>
<extensions>true</extensions>
</plugin>
- <plugin>
+ <!--plugin>
<groupId>org.jboss.maven.plugins</groupId>
<artifactId>maven-spellChecker-plugin</artifactId>
- </plugin>
+ </plugin-->
<!--
<plugin>
@@ -52,4 +52,4 @@
-->
</plugins>
</build>
-</project>
\ No newline at end of file
+</project>
Modified: trunk/docs/faq/pom.xml
===================================================================
--- trunk/docs/faq/pom.xml 2009-03-26 14:42:52 UTC (rev 13219)
+++ trunk/docs/faq/pom.xml 2009-03-26 14:56:59 UTC (rev 13220)
@@ -61,7 +61,7 @@
<build>
<pluginManagement>
<plugins>
- <plugin>
+ <!--plugin>
<groupId>org.jboss.maven.plugins</groupId>
<artifactId>maven-spellChecker-plugin</artifactId>
<version>2.0-SNAPSHOT</version>
@@ -87,13 +87,13 @@
<dirForScan>${basedir}</dirForScan>
<fileForValidation>${basedir}/src/main/docbook/master.xml</fileForValidation>
<wellformdnessOnly>false</wellformdnessOnly>
- <xmlSchema>http://www.docbook.org/xsd/4.3/docbook.xsd</xmlSchema>
+ <xmlSchema>http://www.docbook.org/xsd/4.3/docbook.xsd</xmlSchema-->
<!--dictionaries>
<dictionary>
/media/WIndows_C/workspace_test/english.dic
</dictionary>
</dictionaries-->
- <excludes>
+ <!--excludes>
<exclude>**/*.svn</exclude>
</excludes>
<includes>
@@ -101,7 +101,7 @@
<include>**/*.html</include>
</includes>
</configuration>
- </plugin>
+ </plugin-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
15 years, 9 months
JBoss Rich Faces SVN: r13219 - in trunk/test-applications/seleniumTest/richfaces/src: test/java/org/richfaces/testng and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2009-03-26 10:42:52 -0400 (Thu, 26 Mar 2009)
New Revision: 13219
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxSupport/ajaxSupportAutoTest.xhtml
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxSupport/navigationTest.xhtml
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxSupportTest.java
Log:
https://jira.jboss.org/jira/browse/RF-6403 reviewed
Added: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxSupport/ajaxSupportAutoTest.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxSupport/ajaxSupportAutoTest.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxSupport/navigationTest.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxSupport/navigationTest.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxSupportTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxSupportTest.java 2009-03-26 14:21:11 UTC (rev 13218)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxSupportTest.java 2009-03-26 14:42:52 UTC (rev 13219)
@@ -17,15 +17,18 @@
* 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.testng;
import java.util.ArrayList;
+import java.util.HashMap;
import java.util.List;
+import java.util.Map;
import org.ajax4jsf.bean.A4JSupport;
import org.ajax4jsf.bean.A4JSupport.Messages;
import org.ajax4jsf.template.Template;
+import org.richfaces.AutoTester;
import org.richfaces.SeleniumTestBase;
import org.richfaces.testng.util.CommonUtils;
import org.testng.Assert;
@@ -36,386 +39,506 @@
*
*/
public class AjaxSupportTest extends SeleniumTestBase {
-
+
private static final String COMMON_ALISTENER_PREFIX = "AL";
private static final String DEFAULT_BEHAVIOUR_PAGE = "testDefaultBehaviour.xhtml";
-
+
private static final String VALIDATION_FAILED_PAGE = "testValidationFailed.xhtml";
-
+
private static final String IMMEDIATE_ATTRIBUTE1_PAGE = "testImmediateAttribute1.xhtml";
-
+
private static final String IMMEDIATE_ATTRIBUTE2_PAGE = "testImmediateAttribute2.xhtml";
-
+
private static final String AJAXSINGLE_ATTRIBUTE1_PAGE = "testAjaxSingleAttribute1.xhtml";
-
+
private static final String AJAXSINGLE_ATTRIBUTE2_PAGE = "testAjaxSingleAttribute2.xhtml";
-
+
private static final String AJAXSINGLE_ATTRIBUTE3_PAGE = "testAjaxSingleAttribute3.xhtml";
-
+
private static final String RERENDER_ATTRIBUTE_PAGE = "testRerenderFunctionality.xhtml";
-
+
private static final String ENABLED_ATTRIBUTE_PAGE = "testEnabledAttribute.xhtml";
-
+
private static final String RENDERED_ATTRIBUTE_PAGE = "testRenderedAttribute.xhtml";
-
+
private static final String UPDATING_VALUE = "testUpdatingValue.xhtml";
-
+
private static final String EVENTS_PAGE = "testEvents.xhtml";
-
+
private static final String LIMIT_TO_LIST_ATTRIBUTE_PAGE = "testLimitToList.xhtml";
-
+
private static final String BY_PASS_UPDATES_ATTRIBUTE_PAGE = "testByPassList.xhtml";
-
+
+ private static final String NAVIGATION_TEST = "pages/ajaxSupport/navigationTest.xhtml";
+
private static final String DEFAULT_BEHAVIOUR_ID_PREFIX = "_db";
-
+
private static final String VALIDATION_FAILED_ID_PREFIX = "_vf";
-
+
private static final String IMMEDIATE_ATTRIBUTE1_ID_PREFIX = "_ia1";
-
+
private static final String IMMEDIATE_ATTRIBUTE2_ID_PREFIX = "_ia2";
-
+
private static final String AJAXSINGLE_ATTRIBUTE1_ID_PREFIX = "_asa1";
-
+
private static final String AJAXSINGLE_ATTRIBUTE2_ID_PREFIX = "_asa2";
-
+
private static final String RERENDER_ATTRIBUTE_ID_PREFIX = "_ra";
-
+
private static final String ENABLED_ATTRIBUTE_ID_PREFIX = "_ea";
-
+
private static final String RENDERED_ATTRIBUTE_ID_PREFIX = "_ra";
-
+
private static final String UPDATING_VALUE_ID_PREFIX = "_uv";
-
+
private static final String UPDATING_VALUE_KEY = "v";
-
+
+ private static Map<String, String> params = new HashMap<String, String>();
+
+ static {
+ params.put("parameter1", "value1");
+ params.put("parameter2", "value2");
+ params.put("parameter3", "value3");
+ }
+
private String testUrl;
-
+
private String parentFormId;
-
+
private String linkId;
-
+
private String checkboxId;
-
+
private String commandId;
-
+
private String validManagerId;
-
+
private String dataId1;
-
+
private String dataId2;
-
+
private String inputId;
-
+
/**
- * action and actionListener defined as component attributes and actionListener
- * defined as nested tag are invoked on the server after event of attached
- * to component occurs, navigation occurs
+ * action and actionListener defined as component attributes and
+ * actionListener defined as nested tag are invoked on the server after
+ * event of attached to component occurs, navigation occurs
*/
@Test
public void testDefaultBehaviour(Template template) {
- setTestUrl(DEFAULT_BEHAVIOUR_PAGE);
- init(template);
- passExternalValidation();
- checkBasicFunctionality(template, DEFAULT_BEHAVIOUR_ID_PREFIX, true);
+ setTestUrl(DEFAULT_BEHAVIOUR_PAGE);
+ init(template);
+ passExternalValidation();
+ checkBasicFunctionality(template, DEFAULT_BEHAVIOUR_ID_PREFIX, true);
}
-
- /** component re-renders another component (h:outputText) */
+
+ /**
+ * Component re-renders another component (h:outputText)
+ */
@Test
public void testRerenderFunctionality(Template template) {
- setTestUrl(RERENDER_ATTRIBUTE_PAGE);
- init(template);
- passExternalValidation();
- checkBasicFunctionality(template, RERENDER_ATTRIBUTE_ID_PREFIX, true);
+ setTestUrl(RERENDER_ATTRIBUTE_PAGE);
+ init(template);
+ passExternalValidation();
+ checkBasicFunctionality(template, RERENDER_ATTRIBUTE_ID_PREFIX, true);
}
-
- /**
- * @see #testDefaultBehaviour(Template template)
- *
- * the same for the case of external validation
- * failure - listeners and navigation do not work
+
+ /**
+ * @see #testDefaultBehaviour(Template template) the same for the case of
+ * external validation failure - listeners and navigation do not work
*/
@Test
public void testValidationFailed(Template template) {
- setTestUrl(VALIDATION_FAILED_PAGE);
- init(template);
- breakExternalValidation();
- checkBasicFunctionality(template, VALIDATION_FAILED_ID_PREFIX, false);
+ setTestUrl(VALIDATION_FAILED_PAGE);
+ init(template);
+ breakExternalValidation();
+ checkBasicFunctionality(template, VALIDATION_FAILED_ID_PREFIX, false);
}
-
- /**
- * @see #testDefaultBehaviour(Template template)
- *
- * the same for immediate = true component
+
+ /**
+ * @see #testDefaultBehaviour(Template template) the same for immediate =
+ * true component
*/
@Test
public void testImmediateAttribute1(Template template) {
- setTestUrl(IMMEDIATE_ATTRIBUTE1_PAGE);
- init(template);
- passExternalValidation();
- checkBasicFunctionality(template, IMMEDIATE_ATTRIBUTE1_ID_PREFIX, true);
+ setTestUrl(IMMEDIATE_ATTRIBUTE1_PAGE);
+ init(template);
+ passExternalValidation();
+ checkBasicFunctionality(template, IMMEDIATE_ATTRIBUTE1_ID_PREFIX, true);
}
-
- /**
- * @see #testDefaultBehaviour(Template template)
- *
- * the same for immediate = true component for
- * the case of external validation failure
+
+ /**
+ * @see #testDefaultBehaviour(Template template) the same for immediate =
+ * true component for the case of external validation failure
*/
@Test
public void testImmediateAttribute2(Template template) {
- setTestUrl(IMMEDIATE_ATTRIBUTE2_PAGE);
- init(template);
- breakExternalValidation();
- checkBasicFunctionality(template, IMMEDIATE_ATTRIBUTE2_ID_PREFIX, true);
+ setTestUrl(IMMEDIATE_ATTRIBUTE2_PAGE);
+ init(template);
+ breakExternalValidation();
+ checkBasicFunctionality(template, IMMEDIATE_ATTRIBUTE2_ID_PREFIX, true);
}
-
- /**
- * @see #testDefaultBehaviour()
- *
- * the same for ajaxSingle = true component
+
+ /**
+ * @see #testDefaultBehaviour() the same for ajaxSingle = true component
*/
@Test
public void testAjaxSingleAttribute1(Template template) {
- setTestUrl(AJAXSINGLE_ATTRIBUTE1_PAGE);
- init(template);
- passExternalValidation();
- checkBasicFunctionality(template, AJAXSINGLE_ATTRIBUTE1_ID_PREFIX, true);
+ setTestUrl(AJAXSINGLE_ATTRIBUTE1_PAGE);
+ init(template);
+ passExternalValidation();
+ checkBasicFunctionality(template, AJAXSINGLE_ATTRIBUTE1_ID_PREFIX, true);
}
-
- /**
- * @see #testDefaultBehaviour()
- *
- * the same for ajaxSingle = true component for the case
- * of external validation failure
+
+ /**
+ * @see #testDefaultBehaviour() the same for ajaxSingle = true component for
+ * the case of external validation failure
*/
@Test
public void testAjaxSingleAttribute2(Template template) {
- setTestUrl(AJAXSINGLE_ATTRIBUTE2_PAGE);
- init(template);
- breakExternalValidation();
- checkBasicFunctionality(template, AJAXSINGLE_ATTRIBUTE2_ID_PREFIX, true);
+ setTestUrl(AJAXSINGLE_ATTRIBUTE2_PAGE);
+ init(template);
+ breakExternalValidation();
+ checkBasicFunctionality(template, AJAXSINGLE_ATTRIBUTE2_ID_PREFIX, true);
}
-
-// /**
-// * component encodes nested f:param tags and their values are present as request parameters
-// */
-// @Test
-// public void testFParamTag() {
-//
-// }
-//
- /** component with bypassUpdates = true skips update model values phase */
+
+ /**
+ * component with bypassUpdates = true skips update model values phase
+ */
@Test
public void testByPassAttribute(Template template) {
- setTestUrl(BY_PASS_UPDATES_ATTRIBUTE_PAGE);
- init(template);
- passExternalValidation();
- processingElement(checkboxId, dataId2, false);
- AssertTextEquals(dataId2 + "_ch", "false", "By pass updates attribute not work" );
- processingElement(checkboxId + COMMON_ALISTENER_PREFIX, dataId2 + COMMON_ALISTENER_PREFIX, false);
- AssertTextEquals(dataId2 + COMMON_ALISTENER_PREFIX + "_ch", "false", "By pass updates attribute not work" );
+ setTestUrl(BY_PASS_UPDATES_ATTRIBUTE_PAGE);
+ init(template);
+ passExternalValidation();
+ processingElement(checkboxId, dataId2, false);
+ AssertTextEquals(dataId2 + "_ch", "false", "By pass updates attribute not work");
+ processingElement(checkboxId + COMMON_ALISTENER_PREFIX, dataId2 + COMMON_ALISTENER_PREFIX, false);
+ AssertTextEquals(dataId2 + COMMON_ALISTENER_PREFIX + "_ch", "false", "By pass updates attribute not work");
}
-
-
- /** component with limitToList = true skips ajaxRendered areas update */
+ /**
+ * component with limitToList = true skips ajaxRendered areas update
+ */
@Test
- public void testLimitToListAttribute(Template template) {
- setTestUrl(LIMIT_TO_LIST_ATTRIBUTE_PAGE);
- init(template);
- passExternalValidation();
- checkBasicFunctionality(template, "", false);
- AssertTextEquals(parentFormId + "ajax_status", Messages.IDLE_STATUS,
- "Limit to list attribute not work");
- }
-
- /** component with rendered = false is not present on the page */
+ public void testLimitToListAttribute1(Template template) {
+ setTestUrl(LIMIT_TO_LIST_ATTRIBUTE_PAGE);
+ init(template);
+ passExternalValidation();
+ checkBasicFunctionality(template, "", false);
+ AssertTextEquals(parentFormId + "ajax_status", Messages.IDLE_STATUS, "Limit to list attribute not work");
+ }
+
+ /**
+ * component with rendered = false is not present on the page
+ */
@Test
public void testRenderedAttribute(Template template) {
- setTestUrl(RENDERED_ATTRIBUTE_PAGE);
- init(template);
-
- checkOnclickAttr(linkId + RENDERED_ATTRIBUTE_ID_PREFIX);
- checkOnclickAttr(linkId + COMMON_ALISTENER_PREFIX + RENDERED_ATTRIBUTE_ID_PREFIX);
- checkOnclickAttr(checkboxId + RENDERED_ATTRIBUTE_ID_PREFIX);
- checkOnclickAttr(checkboxId + COMMON_ALISTENER_PREFIX + RENDERED_ATTRIBUTE_ID_PREFIX);
+ setTestUrl(RENDERED_ATTRIBUTE_PAGE);
+ init(template);
+
+ checkOnclickAttr(linkId + RENDERED_ATTRIBUTE_ID_PREFIX);
+ checkOnclickAttr(linkId + COMMON_ALISTENER_PREFIX + RENDERED_ATTRIBUTE_ID_PREFIX);
+ checkOnclickAttr(checkboxId + RENDERED_ATTRIBUTE_ID_PREFIX);
+ checkOnclickAttr(checkboxId + COMMON_ALISTENER_PREFIX + RENDERED_ATTRIBUTE_ID_PREFIX);
}
-
- /**
- * onsubmit event fires on component activation then
- * oncomplete with proper request data
+
+ /**
+ * onsubmit event fires on component activation then oncomplete with proper
+ * request data
*/
@Test
public void testOnSubmitAndOnCOmpleteEvents(Template template) {
- setTestUrl(EVENTS_PAGE);
- init(template);
- passExternalValidation();
- processingElement(linkId, dataId1, false);
- assertEvents();
- processingElement(linkId + COMMON_ALISTENER_PREFIX, dataId1 + COMMON_ALISTENER_PREFIX, false);
- assertEvents();
- processingElement(checkboxId, dataId2, false);
- assertEvents();
- processingElement(checkboxId + COMMON_ALISTENER_PREFIX, dataId2 + COMMON_ALISTENER_PREFIX, false);
- assertEvents();
-
+ setTestUrl(EVENTS_PAGE);
+ init(template);
+ passExternalValidation();
+ processingElement(linkId, dataId1, false);
+ assertEvents();
+ processingElement(linkId + COMMON_ALISTENER_PREFIX, dataId1 + COMMON_ALISTENER_PREFIX, false);
+ assertEvents();
+ processingElement(checkboxId, dataId2, false);
+ assertEvents();
+ processingElement(checkboxId + COMMON_ALISTENER_PREFIX, dataId2 + COMMON_ALISTENER_PREFIX, false);
+ assertEvents();
+
}
-
- private void assertEvents(){
- List<String> eventsExpected = new ArrayList<String>();
-
+
+ private void assertEvents() {
+ List<String> eventsExpected = new ArrayList<String>();
+
eventsExpected.add("onsubmit");
- eventsExpected.add("oncomplete");
+ eventsExpected.add("oncomplete");
assertEvents(eventsExpected);
}
-
- /** component with disabled = true do not fire ajax requests */
+
+ /**
+ * component with disabled = true do not fire ajax requests
+ */
@Test
public void testEnabledAttribute(Template template) {
- setTestUrl(ENABLED_ATTRIBUTE_PAGE);
- init(template);
- passExternalValidation();
- checkBasicFunctionality(template, ENABLED_ATTRIBUTE_ID_PREFIX, false);
+ setTestUrl(ENABLED_ATTRIBUTE_PAGE);
+ init(template);
+ passExternalValidation();
+ checkBasicFunctionality(template, ENABLED_ATTRIBUTE_ID_PREFIX, false);
}
-
-
+
/**
*
* @param template
*/
@Test
public void testUpdatingValue(Template template) {
- setTestUrl(UPDATING_VALUE);
- init(template);
-
- String iid = inputId + UPDATING_VALUE_ID_PREFIX;
- setValueById(iid, UPDATING_VALUE_KEY);
- selenium.fireEvent("id="+iid, "keyup");
- waitForAjaxCompletion();
- AssertTextEquals(dataId1 + UPDATING_VALUE_ID_PREFIX, UPDATING_VALUE_KEY, CommonUtils.getFailedTestMessage(iid));
- writeStatus(CommonUtils.getSuccessfulTestMessage(iid));
+ setTestUrl(UPDATING_VALUE);
+ init(template);
+
+ String iid = inputId + UPDATING_VALUE_ID_PREFIX;
+ setValueById(iid, UPDATING_VALUE_KEY);
+ selenium.fireEvent("id=" + iid, "keyup");
+ waitForAjaxCompletion();
+ AssertTextEquals(dataId1 + UPDATING_VALUE_ID_PREFIX, UPDATING_VALUE_KEY, CommonUtils.getFailedTestMessage(iid));
+ writeStatus(CommonUtils.getSuccessfulTestMessage(iid));
}
-
- /**
- * @see #testAjaxSupportComponent()
- *
- * the same for ajaxSingle = true component for the case
- * of external validation failure + process for validation failed
- * field - listeners and navigation do not work
+
+ /**
+ * @see #testAjaxSupportComponent() the same for ajaxSingle = true component
+ * for the case of external validation failure + process for validation
+ * failed field - listeners and navigation do not work
*/
@Test
public void testAjaxSingleAttribute3(Template template) {
- setTestUrl(AJAXSINGLE_ATTRIBUTE3_PAGE);
- init(template);
- breakExternalValidation();
- checkBasicFunctionality(template, "", false);
- AssertNotPresent(getParentId() + "successNavigationTextId", "Navigation shouldn't work");
+ setTestUrl(AJAXSINGLE_ATTRIBUTE3_PAGE);
+ init(template);
+ breakExternalValidation();
+ checkBasicFunctionality(template, "", false);
+ AssertNotPresent(getParentId() + "successNavigationTextId", "Navigation shouldn't work");
}
-
-
+
+//
+// Auto-test methods
+//
+
+ @Test
+ public void testReRenderAttribute(Template template) {
+ AutoTester tester = getAutoTester(this);
+ tester.renderPage(template, null);
+ writeStatus("Test component re-renders another components");
+ tester.testReRender();
+ }
+
+ @Test
+ public void testNestedParams(Template template) {
+ AutoTester tester = getAutoTester(this);
+ tester.renderPage(template, null);
+ writeStatus("Test component encodes nested f:param tags and their values are present as request parameters");
+ tester.testRequestParameters(params);
+ }
+
+ @Test
+ public void testNavigation(Template template) {
+ AutoTester tester = getAutoTester(this);
+ tester.renderPage(NAVIGATION_TEST, template, null);
+ writeStatus("if all is ok listeners defined both as attribute and as nested tag are invoked");
+ writeStatus("navigation occurs");
+ tester.testActionAndNavigation();
+ tester.checkActionListener(true);
+ tester.checkNestedActionListener(true);
+ }
+
+ @Test
+ public void testNavigationWithExternalValidationFailure(Template template) {
+ AutoTester tester = getAutoTester(this);
+ tester.renderPage(NAVIGATION_TEST, template, null);
+ writeStatus("in case of extrenal validation failure listeners and navigation do not work");
+ tester.reset();
+ tester.clickLoad();
+
+ tester.setExtrenalValidationFailed();
+ sendAjax();
+
+ tester.checkAction(false);
+ tester.checkNavigation(false);
+ tester.checkActionListener(false);
+ tester.checkNestedActionListener(false);
+ }
+
+ @Test
+ public void testImmediate(Template template) {
+ AutoTester tester = getAutoTester(this);
+ tester.renderPage(template, null);
+ writeStatus("Test immediate attribute");
+ tester.testImmediate();
+ }
+
+ @Test
+ public void testImmediateWithExternalValidationFailed(Template template) {
+ AutoTester tester = getAutoTester(this);
+ tester.renderPage(template, null);
+ writeStatus("Test immediate attribute with external validation failed");
+ tester.testImmediateWithExternalValidationFailed();
+ }
+
+ @Test
+ public void testAjaxSingle(Template template) {
+ AutoTester autoTester = getAutoTester(this);
+ autoTester.renderPage(template, null);
+ writeStatus("Test ajaxSingle attribute in case of external validation failure");
+ autoTester.testAjaxSingle();
+ }
+
+ @Test
+ public void testAjaxSingleWithExternalAndProcessedComponentsValidationFailures(Template template) {
+ AutoTester autoTester = getAutoTester(this);
+ autoTester.renderPage(template, null);
+ writeStatus("Test ajaxSingle attribute in case of validation failures of both external and processed components");
+ autoTester.testAjaxSingleWithProcesExternalValidation(true);
+ }
+
+ @Test
+ public void testWithExternalValidationFailure(Template template) {
+ AutoTester autoTester = getAutoTester(this);
+ autoTester.renderPage(template, null);
+ writeStatus("Check component in case of external validation failure: listeners are not invoked, model is not updated");
+ autoTester.testExtrenalValidationFailure();
+ }
+
+ @Test
+ public void testOncomplete(Template template) {
+ AutoTester tester = getAutoTester(this);
+ tester.renderPage(template, null);
+ writeStatus("Test oncomplete attribute");
+ tester.testOncomplete();
+ }
+
+ @Test
+ public void testLimitToListAttribute(Template template) {
+ AutoTester tester = getAutoTester(this);
+ tester.renderPage(template, null);
+ writeStatus("Test component with limitToList = true skips ajaxRendered areas update");
+ tester.testLimitToList();
+ }
+
+ @Test
+ public void testBypassUpdatesAttribute(Template template) {
+ AutoTester tester = getAutoTester(this);
+ tester.renderPage(template, null);
+ writeStatus("Test component with bypassUpdates = true skips update model values phase");
+ tester.testBypassUpdate();
+ }
+
+ @Override
+ public void sendAjax() {
+ clickAjaxCommandAndWait(getAutoTester(this).getClientId("link"));
+ }
+
private void checkOnclickAttr(String elementId) {
- checkEmptyAttr(getElementOnclickAttr(elementId), CommonUtils.getFailedTestMessage(elementId), CommonUtils.getSuccessfulTestMessage(elementId));
+ checkEmptyAttr(getElementOnclickAttr(elementId), CommonUtils.getFailedTestMessage(elementId), CommonUtils
+ .getSuccessfulTestMessage(elementId));
}
-
+
private void checkEmptyAttr(String locator, String errMessage, String okMessage) {
- if (null == locator) {
- writeStatus(okMessage);
- } else {
- writeStatus(errMessage, true);
- Assert.fail(errMessage);
- }
+ if (null == locator) {
+ writeStatus(okMessage);
+ } else {
+ writeStatus(errMessage, true);
+ Assert.fail(errMessage);
+ }
}
-
+
private void checkBasicFunctionality(Template template, String casePrefix, boolean isDataAvailable) {
- processingElement(linkId + casePrefix, dataId1 + casePrefix, isDataAvailable);
- processingElement(linkId + COMMON_ALISTENER_PREFIX + casePrefix, dataId1 + COMMON_ALISTENER_PREFIX + casePrefix, isDataAvailable);
-
- processingElement(checkboxId + casePrefix, dataId2 + casePrefix, isDataAvailable);
- processingElement(checkboxId + COMMON_ALISTENER_PREFIX + casePrefix, dataId2 + COMMON_ALISTENER_PREFIX + casePrefix, isDataAvailable);
+ processingElement(linkId + casePrefix, dataId1 + casePrefix, isDataAvailable);
+ processingElement(linkId + COMMON_ALISTENER_PREFIX + casePrefix,
+ dataId1 + COMMON_ALISTENER_PREFIX + casePrefix, isDataAvailable);
+
+ processingElement(checkboxId + casePrefix, dataId2 + casePrefix, isDataAvailable);
+ processingElement(checkboxId + COMMON_ALISTENER_PREFIX + casePrefix, dataId2 + COMMON_ALISTENER_PREFIX
+ + casePrefix, isDataAvailable);
}
-
- private void processingElement(String linkId, String dataId,
- boolean isValidationFailed) {
- clickById(linkId);
- waitForAjaxCompletion();
- String data = getTextById(dataId);
- checkMessage(data, A4JSupport.Messages.TEST_PASSED,
- CommonUtils.getFailedTestMessage(linkId),
- CommonUtils.getSuccessfulTestMessage(linkId),
- isValidationFailed);
+
+ private void processingElement(String linkId, String dataId, boolean isValidationFailed) {
+ clickById(linkId);
+ waitForAjaxCompletion();
+ String data = getTextById(dataId);
+ checkMessage(data, A4JSupport.Messages.TEST_PASSED, CommonUtils.getFailedTestMessage(linkId), CommonUtils
+ .getSuccessfulTestMessage(linkId), isValidationFailed);
}
-
+
private void breakExternalValidation() {
- setValueById(validManagerId, "");
+ setValueById(validManagerId, "");
}
-
+
private void passExternalValidation() {
- setValueById(validManagerId, "1");
+ setValueById(validManagerId, "1");
}
-
- /*private void checkRequestDelayAttribute(String data, String casePrefix) {
- String comId = commandId + casePrefix;
- clickById(comId);
- pause(1000, comId);
-
-// if (!data.equals(getTextById(dataId))) {
-// writeStatus("<a4j:support failed. 'requestDelay' attribute does not work.");
-// Assert.fail("<a4j:support failed. 'requestDelay' attribute does not work.");
-// }
- waitForAjaxCompletion();
- data = getTextById(dataId);
- checkMessage(data, A4JSupport.Messages.FOR_COMMAND,
- CommonUtils.getFailedTestMessage(comId), CommonUtils.getSuccessfulTestMessage(comId));
- if (A4JSupport.Messages.FOR_SUBMIT.equals(data)) {
- writeStatus("<a4j:support failed. 'disableDefault' attribute does not work");
- Assert.fail("<a4j:support failed. 'disableDefault' attribute does not work.");
+ /*
+ * private void checkRequestDelayAttribute(String data, String casePrefix) {
+ * String comId = commandId + casePrefix; clickById(comId); pause(1000,
+ * comId);
+ *
+ * // if (!data.equals(getTextById(dataId))) { //
+ * writeStatus("<a4j:support failed. 'requestDelay' attribute does not work."
+ * ); //
+ * Assert.fail("<a4j:support failed. 'requestDelay' attribute does not work."
+ * ); // } waitForAjaxCompletion(); data = getTextById(dataId);
+ * checkMessage(data, A4JSupport.Messages.FOR_COMMAND,
+ * CommonUtils.getFailedTestMessage(comId),
+ * CommonUtils.getSuccessfulTestMessage(comId));
+ *
+ * if (A4JSupport.Messages.FOR_SUBMIT.equals(data)) {
+ * writeStatus("<a4j:support failed. 'disableDefault' attribute does not work"
+ * );
+ * Assert.fail("<a4j:support failed. 'disableDefault' attribute does not work."
+ * ); } }
+ */
+
+ private void checkMessage(String data, String message, String errorMessage, String okMessage,
+ boolean isDataAvailable) {
+ if (!isDataAvailable) {
+ if (!A4JSupport.Messages.NO_DATA.equals(data)) {
+ writeStatus(errorMessage, true);
+ Assert.fail(errorMessage);
+ } else {
+ writeStatus(okMessage);
+ }
+ } else {
+ if (message.equals(data)) {
+ writeStatus(okMessage);
+ } else {
+ writeStatus(errorMessage, true);
+ Assert.fail(errorMessage);
+ }
}
- }*/
-
- private void checkMessage(String data, String message, String errorMessage, String okMessage, boolean isDataAvailable) {
- if (!isDataAvailable) {
- if (!A4JSupport.Messages.NO_DATA.equals(data)) {
- writeStatus(errorMessage, true);
- Assert.fail(errorMessage);
- } else {
- writeStatus(okMessage);
- }
- } else {
- if (message.equals(data)) {
- writeStatus(okMessage);
- } else {
- writeStatus(errorMessage, true);
- Assert.fail(errorMessage);
- }
- }
}
private void init(Template template) {
- renderPage(template);
- initIds();
+ renderPage(template);
+ initIds();
}
-
+
private void initIds() {
- parentFormId = getParentId() + "_form:";
- linkId = parentFormId + "link";
- checkboxId = parentFormId + "checkbox";
- commandId = parentFormId + "command";
- validManagerId = parentFormId + "validManager";
- dataId1 = parentFormId + "data1";
- dataId2 = parentFormId + "data2";
- inputId = parentFormId + "input";
+ parentFormId = getParentId() + "_form:";
+ linkId = parentFormId + "link";
+ checkboxId = parentFormId + "checkbox";
+ commandId = parentFormId + "command";
+ validManagerId = parentFormId + "validManager";
+ dataId1 = parentFormId + "data1";
+ dataId2 = parentFormId + "data2";
+ inputId = parentFormId + "input";
}
-
+
@Override
public String getTestUrl() {
return testUrl;
}
-
+
+ @Override
+ public String getAutoTestUrl() {
+ return "pages/ajaxSupport/ajaxSupportAutoTest.xhtml";
+ }
+
public void setTestUrl(String testUrl) {
- this.testUrl = "pages/ajaxSupport/" + testUrl;
+ this.testUrl = "pages/ajaxSupport/" + testUrl;
}
}
15 years, 9 months
JBoss Rich Faces SVN: r13218 - trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-03-26 10:21:11 -0400 (Thu, 26 Mar 2009)
New Revision: 13218
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplacesTest.java
Log:
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplacesTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplacesTest.java 2009-03-26 14:20:36 UTC (rev 13217)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplacesTest.java 2009-03-26 14:21:11 UTC (rev 13218)
@@ -154,7 +154,7 @@
setTestUrl(CONTROLS_FACET_PAGE);
init(template);
- check((isPresentById(CONTROLS_FACET_BN_OK + CONTROLS_FACET_ID_PREFIX) || isPresentById(CONTROLS_FACET_BN_CANCEL + CONTROLS_FACET_ID_PREFIX)),
+ check((isPresent(CONTROLS_FACET_BN_OK + CONTROLS_FACET_ID_PREFIX) || isPresent(CONTROLS_FACET_BN_CANCEL + CONTROLS_FACET_ID_PREFIX)),
CommonUtils.getSuccessfulTestMessage(inplaceId + CONTROLS_FACET_ID_PREFIX),
CommonUtils.getFailedTestMessage(inplaceId + CONTROLS_FACET_ID_PREFIX));
}
@@ -172,21 +172,24 @@
String iid = inplaceId + SHOW_CONTROLS_ATTRIBUTE1_PAGE_ID_PREFIX;
clickById(iid);
- check(!isVisibleById(iid + SHOW_CONTROLS_ATTRIBUTE_BAR),
- CommonUtils.getSuccessfulTestMessage(iid),
- CommonUtils.getFailedTestMessage(iid));
-
- String clip = getStyleAttributeString(iid + iTempValuePx, "clip");
- check(("rect(auto, auto, auto, auto)".equals(clip)) || ("rect(auto auto auto auto)".equals(clip)),
- CommonUtils.getSuccessfulTestMessage(iid),
- CommonUtils.getFailedTestMessage(iid));
- //selenium.fireEvent(iid + iTempValuePx, "blur");
- selenium.focus(buttonId + SHOW_CONTROLS_ATTRIBUTE1_PAGE_ID_PREFIX);
-
- clip = getStyleAttributeString(iid + iTempValuePx, "clip");
- check(("rect(0px, 0px, 0px, 0px)".equals(clip)) || ("rect(0px 0px 0px 0px)".equals(clip)),
- CommonUtils.getSuccessfulTestMessage(iid),
- CommonUtils.getFailedTestMessage(iid));
+ Assert.assertEquals(isVisible(iid + SHOW_CONTROLS_ATTRIBUTE_BAR), false, "showControls='false' but controls are visible");
+// check(!isVisible(iid + SHOW_CONTROLS_ATTRIBUTE_BAR),
+// CommonUtils.getSuccessfulTestMessage(iid),
+// CommonUtils.getFailedTestMessage(iid));
+// delay(1000);
+// String clip = getStyleAttributeString(iid + iTempValuePx, "clip");
+// check(("rect(auto, auto, auto, auto)".equals(clip)) || ("rect(auto auto auto auto)".equals(clip)),
+// CommonUtils.getSuccessfulTestMessage(iid),
+// CommonUtils.getFailedTestMessage(iid));
+// //selenium.fireEvent(iid + iTempValuePx, "blur");
+// selenium.focus(buttonId + SHOW_CONTROLS_ATTRIBUTE1_PAGE_ID_PREFIX);
+//
+// delay(1000);
+//
+// clip = getStyleAttributeString(iid + iTempValuePx, "clip");
+// check(("rect(0px, 0px, 0px, 0px)".equals(clip)) || ("rect(0px 0px 0px 0px)".equals(clip)),
+// CommonUtils.getSuccessfulTestMessage(iid),
+// CommonUtils.getFailedTestMessage(iid));
}
/**
@@ -202,19 +205,23 @@
String iid = inplaceId + SHOW_CONTROLS_ATTRIBUTE2_PAGE_ID_PREFIX;
clickById(iid);
- check(isVisibleById(iid + SHOW_CONTROLS_ATTRIBUTE_BAR),
- CommonUtils.getSuccessfulTestMessage(iid),
- CommonUtils.getFailedTestMessage(iid));
- String clip = getStyleAttributeString(iid + iTempValuePx, "clip");
- check(("rect(auto, auto, auto, auto)".equals(clip)) || ("rect(auto auto auto auto)".equals(clip)),
- CommonUtils.getSuccessfulTestMessage(iid),
- CommonUtils.getFailedTestMessage(iid));
- selenium.focus(buttonId + SHOW_CONTROLS_ATTRIBUTE2_PAGE_ID_PREFIX);
- clip = getStyleAttributeString(iid + iTempValuePx, "clip");
- check(("rect(auto, auto, auto, auto)".equals(clip)) || ("rect(auto auto auto auto)".equals(clip)),
- CommonUtils.getSuccessfulTestMessage(iid),
- CommonUtils.getFailedTestMessage(iid));
+ Assert.assertEquals(isVisible(iid + SHOW_CONTROLS_ATTRIBUTE_BAR), true, "showControls='true' but controls are not visible");
+
+
+// check(isVisible(iid + SHOW_CONTROLS_ATTRIBUTE_BAR),
+// CommonUtils.getSuccessfulTestMessage(iid),
+// CommonUtils.getFailedTestMessage(iid));
+//
+// String clip = getStyleAttributeString(iid + iTempValuePx, "clip");
+// check(("rect(auto, auto, auto, auto)".equals(clip)) || ("rect(auto auto auto auto)".equals(clip)),
+// CommonUtils.getSuccessfulTestMessage(iid),
+// CommonUtils.getFailedTestMessage(iid));
+// selenium.focus(buttonId + SHOW_CONTROLS_ATTRIBUTE2_PAGE_ID_PREFIX);
+// clip = getStyleAttributeString(iid + iTempValuePx, "clip");
+// check(("rect(auto, auto, auto, auto)".equals(clip)) || ("rect(auto auto auto auto)".equals(clip)),
+// CommonUtils.getSuccessfulTestMessage(iid),
+// CommonUtils.getFailedTestMessage(iid));
}
/**
@@ -357,12 +364,12 @@
init(template);
String iid = inplaceId + PROCESSING_INVALID_VALUE_ID_PREFIX;
- String newVlaue = "Aspen";
- setValue(iid, newVlaue);
+ String newValue = "Aspen";
+ setValue(iid, newValue);
clickById(buttonId + PROCESSING_INVALID_VALUE_ID_PREFIX);
waitForAjaxCompletion();
String value = getTextById(iid);
- check(newVlaue.equals(value),
+ check(value.endsWith(newValue),
CommonUtils.getSuccessfulTestMessage(iid),
CommonUtils.getFailedTestMessage(iid));
}
15 years, 9 months
JBoss Rich Faces SVN: r13217 - trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-03-26 10:20:36 -0400 (Thu, 26 Mar 2009)
New Revision: 13217
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplaceInputTest.java
Log:
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplaceInputTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplaceInputTest.java 2009-03-26 14:18:44 UTC (rev 13216)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplaceInputTest.java 2009-03-26 14:20:36 UTC (rev 13217)
@@ -20,15 +20,7 @@
*/
package org.richfaces.testng;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import org.ajax4jsf.bean.InplaceInputTestBean;
import org.ajax4jsf.template.Template;
-import org.richfaces.SeleniumEvent;
-import org.richfaces.SeleniumTestBase;
import org.richfaces.testng.util.CommonUtils;
import org.testng.Assert;
import org.testng.annotations.Test;
@@ -173,7 +165,7 @@
sun = invokeFromComponent(inplaceInputD, "getValue", null);
Assert.assertEquals(sun, "Sun", "An inputted text has not to be saved with cancel");
- AssertTextEquals(inplaceInputD, "Sun", "An inputted text has not to be saved with cancel");
+ AssertTextEquals(inplaceInputD, "Sun");
}
@@ -214,4 +206,15 @@
selenium.runScript("($('" + id + "')).component.setValue(\"\", {value: \""+ newValue + "\"})");
//type(id, newValue);
}
+
+ @Override
+ public void AssertTextEquals(String locator, String value, String message) {
+ String _v = selenium.getText(locator);
+ Assert.assertEquals(_v.endsWith(value), true, message);
+ }
+
+ @Override
+ public void AssertTextEquals(String locator, String value) {
+ AssertTextEquals(locator, value, null);
+ }
}
\ No newline at end of file
15 years, 9 months
JBoss Rich Faces SVN: r13216 - trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-03-26 10:18:44 -0400 (Thu, 26 Mar 2009)
New Revision: 13216
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/ValidationBean.java
Log:
add Admin object creation in the reset method
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/ValidationBean.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/ValidationBean.java 2009-03-26 14:08:43 UTC (rev 13215)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/ValidationBean.java 2009-03-26 14:18:44 UTC (rev 13216)
@@ -127,5 +127,6 @@
this.input = INPUT_TEXT;
this.status = "";
this.user = new User();
+ this.admin = new Admin();
}
}
15 years, 9 months
JBoss Rich Faces SVN: r13215 - in trunk/test-applications/realworld2/web/src/main/webapp: includes/album and 3 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2009-03-26 10:08:43 -0400 (Thu, 26 Mar 2009)
New Revision: 13215
Modified:
trunk/test-applications/realworld2/web/src/main/webapp/WEB-INF/tags/templates/album.xhtml
trunk/test-applications/realworld2/web/src/main/webapp/WEB-INF/tags/templates/shelf.xhtml
trunk/test-applications/realworld2/web/src/main/webapp/includes/album/albumsList.xhtml
trunk/test-applications/realworld2/web/src/main/webapp/includes/contextMenu/CMForImage.xhtml
trunk/test-applications/realworld2/web/src/main/webapp/includes/image/imageList.xhtml
trunk/test-applications/realworld2/web/src/main/webapp/includes/image/slideshow.xhtml
trunk/test-applications/realworld2/web/src/main/webapp/stylesheet/realworld.css
Log:
Realworld: correct slideshow, add CM for albums and images, add focusing for modal panels
Modified: trunk/test-applications/realworld2/web/src/main/webapp/WEB-INF/tags/templates/album.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/realworld2/web/src/main/webapp/WEB-INF/tags/templates/shelf.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/realworld2/web/src/main/webapp/includes/album/albumsList.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/realworld2/web/src/main/webapp/includes/contextMenu/CMForImage.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/realworld2/web/src/main/webapp/includes/image/imageList.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/realworld2/web/src/main/webapp/includes/image/slideshow.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/realworld2/web/src/main/webapp/stylesheet/realworld.css
===================================================================
--- trunk/test-applications/realworld2/web/src/main/webapp/stylesheet/realworld.css 2009-03-26 14:04:39 UTC (rev 13214)
+++ trunk/test-applications/realworld2/web/src/main/webapp/stylesheet/realworld.css 2009-03-26 14:08:43 UTC (rev 13215)
@@ -309,21 +309,21 @@
.preview_box_album_80 {width : 100px; position : relative; float : left; margin : 0px 10px 10px 0px;}
.preview_box_album_80 img.pr_album_bg {width : 100px; height : 100px; position : absolute; border: 0px;}
.preview_box_album_80 table{position : relative; width : 100px; height : 100px; text-align : center; vertical-align : middle; border-collapse : collapse;}
-.preview_box_album_80 table img{margin: 0px 0px 2px 0px; border : 1px solid #FFFFFF;}
+.preview_box_album_80 table img{margin: 0px 0px 2px 0px;}
.preview_box_album_80 div.album_name {text-align : center; overflow : hidden; width : 100px; white-space : nowrap; margin-top : 3px; text-overflow: ellipsis; height : 14px;}
.preview_box_album_80 div.album_data {text-align : center; overflow : hidden; width : 100px; white-space : nowrap; text-overflow: ellipsis; color : #666666; font-size : 10px; height : 14px}
.preview_box_album_120 {width : 140px; position : relative; float : left; margin : 0px 10px 10px 0px;}
.preview_box_album_120 img.pr_album_bg {width : 140px; height : 140px; position : absolute; border: 0px;}
.preview_box_album_120 table{position : relative; width : 140px; height : 140px; text-align : center; vertical-align : middle; border-collapse : collapse;}
-.preview_box_album_120 table img{margin: 0px 0px 2px 0px; border : 1px solid #FFFFFF;}
+.preview_box_album_120 table img{margin: 0px 0px 2px 0px;}
.preview_box_album_120 div.album_name {text-align : center; overflow : hidden; width : 140px; white-space : nowrap; margin-top : 3px; text-overflow: ellipsis; height : 14px;}
.preview_box_album_120 div.album_data {text-align : center; overflow : hidden; width : 140px; white-space : nowrap; text-overflow: ellipsis; color : #666666; font-size : 10px; height : 14px}
.preview_box_album_160 {width : 180px; position : relative; float : left; margin : 0px 10px 10px 0px;}
.preview_box_album_160 img.pr_album_bg {width : 180px; height : 180px; position : absolute; border: 0px;}
.preview_box_album_160 table{position : relative; width : 180px; height : 180px; text-align : center; vertical-align : middle; border-collapse : collapse;}
-.preview_box_album_160 table img{margin: 0px 0px 1px 1px; border : 1px solid #FFFFFF;}
+.preview_box_album_160 table img{margin: 0px 0px 1px 1px;}
.preview_box_album_160 div.album_name {text-align : center; overflow : hidden; width : 180px; white-space : nowrap; margin-top : 3px; text-overflow: ellipsis; height : 14px;}
.preview_box_album_160 div.album_data {text-align : center; overflow : hidden; width : 180px; white-space : nowrap; text-overflow: ellipsis; color : #666666; font-size : 10px; height : 14px}
@@ -332,28 +332,28 @@
.preview_box_photo_80 {width : 100px; position : relative; float : left; margin : 0px 10px 10px 0px;}
.preview_box_photo_80 img.pr_photo_bg {width : 100px; height : 100px; position : absolute; border: 0px;}
.preview_box_photo_80 table{position : relative; width : 100px; height : 100px; text-align : center; vertical-align : middle; border-collapse : collapse;}
-.preview_box_photo_80 table img{margin: 0px 0px 0px 0px; border : 1px solid #FFFFFF;}
+.preview_box_photo_80 table img{margin: 0px 0px 0px 0px;}
.preview_box_photo_80 div.photo_name {text-align : center; overflow : hidden; width : 100px; white-space : nowrap; margin-top : 3px; text-overflow: ellipsis; height : 14px;}
.preview_box_photo_80 div.photo_data {text-align : center; overflow : hidden; width : 100px; white-space : nowrap; text-overflow: ellipsis; color : #666666; font-size : 10px; height : 14px}
.preview_box_photo_120 {width : 140px; position : relative; float : left; margin : 0px 10px 10px 0px;}
.preview_box_photo_120 img.pr_photo_bg {width : 140px; height : 140px; position : absolute; border: 0px;}
.preview_box_photo_120 table{position : relative; width : 140px; height : 140px; text-align : center; vertical-align : middle; border-collapse : collapse;}
-.preview_box_photo_120 table img{margin: 0px 0px 0px 0px; border : 1px solid #FFFFFF;}
+.preview_box_photo_120 table img{margin: 0px 0px 0px 0px;}
.preview_box_photo_120 div.photo_name {text-align : center; overflow : hidden; width : 140px; white-space : nowrap; margin-top : 3px; text-overflow: ellipsis; height : 14px;}
.preview_box_photo_120 div.photo_data {text-align : center; overflow : hidden; width : 140px; white-space : nowrap; text-overflow: ellipsis; color : #666666; font-size : 10px; height : 14px}
.preview_box_photo_160 {width : 180px; position : relative; float : left; margin : 0px 10px 10px 0px;}
.preview_box_photo_160 img.pr_photo_bg {width : 180px; height : 180px; position : absolute; border: 0px;}
.preview_box_photo_160 table{position : relative; width : 180px; height : 180px; text-align : center; vertical-align : middle; border-collapse : collapse;}
-.preview_box_photo_160 table img{margin: 0px 0px 0px 0px; border : 1px solid #FFFFFF;}
+.preview_box_photo_160 table img{margin: 0px 0px 0px 0px;}
.preview_box_photo_160 div.photo_name {text-align : center; overflow : hidden; width : 180px; white-space : nowrap; margin-top : 3px; text-overflow: ellipsis; height : 14px;}
.preview_box_photo_160 div.photo_data {text-align : center; overflow : hidden; width : 180px; white-space : nowrap; text-overflow: ellipsis; color : #666666; font-size : 10px; height : 14px}
.preview_box_photo_200 {width : 220px; position : relative; float : left; margin : 0px 10px 10px 0px;}
.preview_box_photo_200 img.pr_photo_bg {width : 220px; height : 220px; position : absolute; border: 0px;}
.preview_box_photo_200 table{position : relative; width : 220px; height : 220px; text-align : center; vertical-align : middle; border-collapse : collapse;}
-.preview_box_photo_200 table img{margin: 0px 0px 0px 0px; border : 1px solid #FFFFFF;}
+.preview_box_photo_200 table img{margin: 0px 0px 0px 0px;}
.preview_box_photo_200 div.photo_name {text-align : center; overflow : hidden; width : 220px; white-space : nowrap; margin-top : 3px; text-overflow: ellipsis; height : 14px;}
.preview_box_photo_200 div.photo_data {text-align : center; overflow : hidden; width : 220px; white-space : nowrap; text-overflow: ellipsis; color : #666666; font-size : 10px; height : 14px}
@@ -553,7 +553,7 @@
}
.album-cover-image{
- border : 2px solid #FFFFFF;
+ border : 1px solid #FFFFFF;
}
.image-header-table{
@@ -920,4 +920,20 @@
bottom: 5px;
z-index: 2;
}
-
+
+.slideshow-table{
+ width: 100%;
+ height: 100%;
+}
+
+.slideshow-table-col{
+ text-align: center;
+}
+
+.slideshow-table-row{
+ vertical-align: middle;
+}
+
+.rich-menu-item-icon img{
+ border:0px;
+}
\ No newline at end of file
15 years, 9 months
JBoss Rich Faces SVN: r13214 - in trunk/test-applications/realworld2/web/src/main/webapp: scripts and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2009-03-26 10:04:39 -0400 (Thu, 26 Mar 2009)
New Revision: 13214
Modified:
trunk/test-applications/realworld2/web/src/main/webapp/includes/fileUpload/fileUploader.xhtml
trunk/test-applications/realworld2/web/src/main/webapp/includes/fileUpload/uploadResult.xhtml
trunk/test-applications/realworld2/web/src/main/webapp/scripts/realworld.js
Log:
ProgressBar for uploader
Modified: trunk/test-applications/realworld2/web/src/main/webapp/includes/fileUpload/fileUploader.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/realworld2/web/src/main/webapp/includes/fileUpload/uploadResult.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/realworld2/web/src/main/webapp/scripts/realworld.js
===================================================================
--- trunk/test-applications/realworld2/web/src/main/webapp/scripts/realworld.js 2009-03-26 13:32:06 UTC (rev 13213)
+++ trunk/test-applications/realworld2/web/src/main/webapp/scripts/realworld.js 2009-03-26 14:04:39 UTC (rev 13214)
@@ -60,4 +60,18 @@
}
target.value += tag;
}
+}
+
+function updateUploadProgressBarLabel (progressBar, fileUpload) {
+ var c = fileUpload.entries.length;
+ var uploaded = 0;
+ for (var i=0;i<c;i++) {
+ if (fileUpload.entries[i].state == FileUploadEntry.UPLOAD_SUCCESS) {
+ uploaded++;
+ }
+ }
+
+ var value = (c >0) ? 100 * uploaded / c : 0;
+ progressBar.setValue(value);
+ progressBar.setLabel(uploaded + '/' + c + ' completed');
}
\ No newline at end of file
15 years, 9 months
JBoss Rich Faces SVN: r13213 - trunk/test-applications/richfaces-docs/web/src/main/webapp/WEB-INF.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2009-03-26 09:32:06 -0400 (Thu, 26 Mar 2009)
New Revision: 13213
Modified:
trunk/test-applications/richfaces-docs/web/src/main/webapp/WEB-INF/faces-config.xml
Log:
https://jira.jboss.org/jira/browse/RF-6419https://jira.jboss.org/jira/bro...
added new features
Modified: trunk/test-applications/richfaces-docs/web/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/webapp/WEB-INF/faces-config.xml 2009-03-26 13:19:33 UTC (rev 13212)
+++ trunk/test-applications/richfaces-docs/web/src/main/webapp/WEB-INF/faces-config.xml 2009-03-26 13:32:06 UTC (rev 13213)
@@ -10,6 +10,7 @@
<property-name>edit</property-name>
<property-class>java.lang.String</property-class>
<value/>
+
</managed-property>
</managed-bean>
<managed-bean>
15 years, 9 months