JBoss Rich Faces SVN: r7830 - trunk/framework/impl/src/main/resources/org/ajax4jsf/javascript/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2008-04-14 14:52:56 -0400 (Mon, 14 Apr 2008)
New Revision: 7830
Modified:
trunk/framework/impl/src/main/resources/org/ajax4jsf/javascript/scripts/form.js
Log:
http://jira.jboss.com/jira/browse/RF-2251
Modified: trunk/framework/impl/src/main/resources/org/ajax4jsf/javascript/scripts/form.js
===================================================================
--- trunk/framework/impl/src/main/resources/org/ajax4jsf/javascript/scripts/form.js 2008-04-14 18:00:00 UTC (rev 7829)
+++ trunk/framework/impl/src/main/resources/org/ajax4jsf/javascript/scripts/form.js 2008-04-14 18:52:56 UTC (rev 7830)
@@ -57,7 +57,10 @@
for(var i=0;i<fields.length;i++){
var field = form.elements[fields[i]];
if(field){
- form.removeChild(field);
+ var pNode = field.parentNode;
+ if (pNode) {
+ pNode.removeChild(field);
+ }
}
}
}
@@ -103,4 +106,4 @@
A4J._formInput = null;
}
}
-}
\ No newline at end of file
+}
16 years, 9 months
JBoss Rich Faces SVN: r7829 - branches/3.1.x/framework/impl/src/main/resources/org/ajax4jsf/javascript/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-04-14 14:00:00 -0400 (Mon, 14 Apr 2008)
New Revision: 7829
Modified:
branches/3.1.x/framework/impl/src/main/resources/org/ajax4jsf/javascript/scripts/form.js
Log:
http://jira.jboss.com/jira/browse/RF-2950
Modified: branches/3.1.x/framework/impl/src/main/resources/org/ajax4jsf/javascript/scripts/form.js
===================================================================
--- branches/3.1.x/framework/impl/src/main/resources/org/ajax4jsf/javascript/scripts/form.js 2008-04-14 17:35:02 UTC (rev 7828)
+++ branches/3.1.x/framework/impl/src/main/resources/org/ajax4jsf/javascript/scripts/form.js 2008-04-14 18:00:00 UTC (rev 7829)
@@ -46,7 +46,10 @@
for(var i=0;i<fields.length;i++){
var field = form.elements[fields[i]];
if(field){
- field.value='';
+ var pNode = field.parentNode;
+ if (pNode) {
+ pNode.removeChild(field);
+ }
}
}
}
16 years, 9 months
JBoss Rich Faces SVN: r7828 - trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-04-14 13:35:02 -0400 (Mon, 14 Apr 2008)
New Revision: 7828
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java
Log:
just formatting
Modified: trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java
===================================================================
--- trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java 2008-04-14 17:34:15 UTC (rev 7827)
+++ trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java 2008-04-14 17:35:02 UTC (rev 7828)
@@ -9,236 +9,253 @@
/**
* The base java class for selenium tests implementation.
+ *
* @author Andrey Markavtsov
- *
+ *
*/
public class SeleniumTestBase {
- /** Specifies the time to wait for page rendering */
- private static final Integer pageRenderTime = 5000;
+ /** Specifies the time to wait for page rendering */
+ private static final Integer pageRenderTime = 5000;
- /** The default selenium instance */
- protected DefaultSelenium selenium;
-
- /** Host */
- public String host;
-
- /** Port */
- public String port;
-
- /** Protocol */
- public String protocol;
-
- /** Defines the name of current j2ee application name*/
- public static final String APPLICATION_NAME = "seleniumTest";
-
- public static final String COMPONENT_PREFIX_INSIDE_TABLE = "_Selenium_Test_Form1:_Selenium_Test_DataTable:0:";
-
- public static final String COMPONENT_PREFIX_INSIDE_PANEL = "_Selenium_Test_Form2:";
-
- public SeleniumTestBase() {
- /* Default constructor */
- }
-
- public SeleniumTestBase(String protocol, String host, String port) {
- this.host = host;
- this.port = port;
- this.protocol = protocol;
- }
-
- /**
- * @param url
- * @param browser
- * @return
- */
- public DefaultSelenium createSeleniumClient(String url, String browser) {
- return new DefaultSelenium(host, 4444, browser, url);
- }
+ /** The default selenium instance */
+ protected DefaultSelenium selenium;
- /**
- * This method are invoking before selenium tests started
- */
- @BeforeTest
- @Parameters( { "browser" })
- public void startSelenium(String browser) {
- selenium = createSeleniumClient(protocol + "://" + host + ":" + port + "/", browser);
- selenium.start();
- }
-
- /**
- * Renders page
- */
- protected void renderPage (String homePage) {
- selenium.open(protocol + "://" + host + ":" + port + "/" + APPLICATION_NAME + homePage);
- selenium.waitForPageToLoad(String.valueOf(pageRenderTime));
-
- checkPageRendering(); // At the first we check if page has been rendered
- checkJSError(); // At the second we check if JS errors occurred
-
- reRenderForm(); // ReRender component
-
- checkPageRendering(); // Check all again
- checkJSError();
-
- }
-
- /**
- * Return component id inside Data table
- * @param id
- * @return
- */
- public String getComponentIdInsideTable(String id) {
- return COMPONENT_PREFIX_INSIDE_TABLE + id;
- }
-
-
- /**
- * Return component id inside Panel
- * @param id
- * @return
- */
- public String getComponentIdInsidePanel(String id) {
- return COMPONENT_PREFIX_INSIDE_PANEL + id;
- }
-
-
- /**
- * ReRenders the component
- */
- public void reRenderForm () {
- selenium.getEval("selenium.browserbot.getCurrentWindow().reRenderAll();");
- //clickById("_Selenium_Test_ReRender_Form:_reRender");
- waitForAjaxCompletion(3000);
- }
+ /** Host */
+ public String host;
- /**
- * This method are invoking after selenium tests completed
- */
- @AfterTest
- public void stopSelenium() {
- selenium.stop();
- selenium = null;
- }
-
- /**
- * Checks if JS error occurred.
- * Fails test if yes.
- * This method should be invoked after each event or any thing which can be a cause of JS error.
- */
- public void checkJSError () {
- String error = selenium.getEval("selenium.browserbot.getCurrentWindow().checkError();");
- if (error != null && !("null".equals(error)) && !("".equals(error))) {
- Assert.fail("Failure by the following Javascript error: " + error);
- }
- }
-
- /**
- * Checks if page containing component test has been rendered completely
- */
- public void checkPageRendering() {
- String t1 = getTextById("_Selenium_Test_ControlPoint1");
- String t2 = getTextById("_Selenium_Test_ControlPoint2");
- if (t1 == null || t2 == null || !"Control1".equals(t1) || !"Control2".equals(t2)) {
- Assert.fail("The page has been not rendered properlly");
- }
- }
-
- /**
- * Waits while AJAX request will be completed
- * @param miliseconds - time to wait
- */
- public void waitForAjaxCompletion (int miliseconds) {
- selenium.waitForCondition(
- "selenium.browserbot.getCurrentWindow().done==true", String.valueOf(miliseconds));
- }
-
-
- /**
- * Asserts DOM node value equals to value defined
- * @param id - DOM element id
- * @param value - value defined
- */
- public void AssertValueEquals(String id, String value) {
- String _v = getValueById(id);
- Assert.assertEquals(_v, value);
- }
-
- /**
- * Asserts DOM node value does not equal to value defined
- * @param id - DOM element id
- * @param value - value defined
- */
- public void AssertValueNotEquals(String id, String value) {
- String _v = getValueById(id);
- Assert.assertNotSame(_v, value);
- }
-
-
- /**
- * Asserts DOM node text equals to text defined
- * @param id - DOM element id
- * @param value - text defined
- */
- public void AssertTextEquals(String id, String value) {
- String _v = getTextById(id);
- Assert.assertEquals(_v, value);
- }
-
- /**
- * Asserts DOM node text does not equal to text defined
- * @param id - DOM element id
- * @param value - text defined
- */
- public void AssertTextNotEquals(String id, String value) {
- String _v = getTextById(id);
- Assert.assertNotSame(_v, value);
- }
-
- /**
- * Returns element's text
- * @param id - DOM element id
- * @return
- */
- public String getTextById(String id) {
- return selenium.getText(id);
- }
-
- /**
- * Returns element's value
- * @param id - DOM element id
- * @return
- */
- public String getValueById(String id) {
- return selenium.getValue(id);
- }
-
- /**
- * Clicks on element
- * @param id - DOM element id
- * @return
- */
- public void clickById(String id) {
- selenium.click(id);
- checkJSError();
- }
-
-
- /**
- * Return true if element is visible
- * @param id - DOM element id
- * @return
- */
- public boolean isVisibleById(String id) {
- return selenium.isVisible(id);
- }
-
- /**
- * Creates delay
- * @param miliSeconds
- * @throws InterruptedException
- */
- public void delay (int miliSeconds) throws InterruptedException {
- Thread.sleep(miliSeconds);
- }
+ /** Port */
+ public String port;
+ /** Protocol */
+ public String protocol;
+
+ /** Defines the name of current j2ee application name */
+ public static final String APPLICATION_NAME = "seleniumTest";
+
+ public static final String COMPONENT_PREFIX_INSIDE_TABLE = "_Selenium_Test_Form1:_Selenium_Test_DataTable:0:";
+
+ public static final String COMPONENT_PREFIX_INSIDE_PANEL = "_Selenium_Test_Form2:";
+
+ public SeleniumTestBase() {
+ /* Default constructor */
+ }
+
+ public SeleniumTestBase(String protocol, String host, String port) {
+ this.host = host;
+ this.port = port;
+ this.protocol = protocol;
+ }
+
+ /**
+ * @param url
+ * @param browser
+ * @return
+ */
+ public DefaultSelenium createSeleniumClient(String url, String browser) {
+ return new DefaultSelenium(host, 4444, browser, url);
+ }
+
+ /**
+ * This method are invoking before selenium tests started
+ */
+ @BeforeTest
+ @Parameters( { "browser" })
+ public void startSelenium(String browser) {
+ selenium = createSeleniumClient(protocol + "://" + host + ":" + port + "/", browser);
+ selenium.start();
+ }
+
+ /**
+ * Renders page
+ */
+ protected void renderPage(String homePage) {
+ selenium.open(protocol + "://" + host + ":" + port + "/" + APPLICATION_NAME + homePage);
+ selenium.waitForPageToLoad(String.valueOf(pageRenderTime));
+
+ checkPageRendering(); // At the first we check if page has been
+ // rendered
+ checkJSError(); // At the second we check if JS errors occurred
+
+ reRenderForm(); // ReRender component
+
+ checkPageRendering(); // Check all again
+ checkJSError();
+
+ }
+
+ /**
+ * Return component id inside Data table
+ *
+ * @param id
+ * @return
+ */
+ public String getComponentIdInsideTable(String id) {
+ return COMPONENT_PREFIX_INSIDE_TABLE + id;
+ }
+
+ /**
+ * Return component id inside Panel
+ *
+ * @param id
+ * @return
+ */
+ public String getComponentIdInsidePanel(String id) {
+ return COMPONENT_PREFIX_INSIDE_PANEL + id;
+ }
+
+ /**
+ * ReRenders the component
+ */
+ public void reRenderForm() {
+ selenium.getEval("selenium.browserbot.getCurrentWindow().reRenderAll();");
+ // clickById("_Selenium_Test_ReRender_Form:_reRender");
+ waitForAjaxCompletion(3000);
+ }
+
+ /**
+ * This method are invoking after selenium tests completed
+ */
+ @AfterTest
+ public void stopSelenium() {
+ selenium.stop();
+ selenium = null;
+ }
+
+ /**
+ * Checks if JS error occurred. Fails test if yes. This method should be
+ * invoked after each event or any thing which can be a cause of JS error.
+ */
+ public void checkJSError() {
+ String error = selenium.getEval("selenium.browserbot.getCurrentWindow().checkError();");
+ if (error != null && !("null".equals(error)) && !("".equals(error))) {
+ Assert.fail("Failure by the following Javascript error: " + error);
+ }
+ }
+
+ /**
+ * Checks if page containing component test has been rendered completely
+ */
+ public void checkPageRendering() {
+ String t1 = getTextById("_Selenium_Test_ControlPoint1");
+ String t2 = getTextById("_Selenium_Test_ControlPoint2");
+ if (t1 == null || t2 == null || !"Control1".equals(t1) || !"Control2".equals(t2)) {
+ Assert.fail("The page has been not rendered properlly");
+ }
+ }
+
+ /**
+ * Waits while AJAX request will be completed
+ *
+ * @param miliseconds -
+ * time to wait
+ */
+ public void waitForAjaxCompletion(int miliseconds) {
+ selenium.waitForCondition("selenium.browserbot.getCurrentWindow().done==true", String.valueOf(miliseconds));
+ }
+
+ /**
+ * Asserts DOM node value equals to value defined
+ *
+ * @param id -
+ * DOM element id
+ * @param value -
+ * value defined
+ */
+ public void AssertValueEquals(String id, String value) {
+ String _v = getValueById(id);
+ Assert.assertEquals(_v, value);
+ }
+
+ /**
+ * Asserts DOM node value does not equal to value defined
+ *
+ * @param id -
+ * DOM element id
+ * @param value -
+ * value defined
+ */
+ public void AssertValueNotEquals(String id, String value) {
+ String _v = getValueById(id);
+ Assert.assertNotSame(_v, value);
+ }
+
+ /**
+ * Asserts DOM node text equals to text defined
+ *
+ * @param id -
+ * DOM element id
+ * @param value -
+ * text defined
+ */
+ public void AssertTextEquals(String id, String value) {
+ String _v = getTextById(id);
+ Assert.assertEquals(_v, value);
+ }
+
+ /**
+ * Asserts DOM node text does not equal to text defined
+ *
+ * @param id -
+ * DOM element id
+ * @param value -
+ * text defined
+ */
+ public void AssertTextNotEquals(String id, String value) {
+ String _v = getTextById(id);
+ Assert.assertNotSame(_v, value);
+ }
+
+ /**
+ * Returns element's text
+ *
+ * @param id -
+ * DOM element id
+ * @return
+ */
+ public String getTextById(String id) {
+ return selenium.getText(id);
+ }
+
+ /**
+ * Returns element's value
+ *
+ * @param id -
+ * DOM element id
+ * @return
+ */
+ public String getValueById(String id) {
+ return selenium.getValue(id);
+ }
+
+ /**
+ * Clicks on element
+ *
+ * @param id -
+ * DOM element id
+ * @return
+ */
+ public void clickById(String id) {
+ selenium.click(id);
+ checkJSError();
+ }
+
+ /**
+ * Return true if element is visible
+ * @param id - DOM element id
+ * @return
+ */
+ public boolean isVisibleById(String id) {
+ return selenium.isVisible(id);
+ }
+
+ /**
+ * Creates delay
+ * @param miliSeconds
+ * @throws InterruptedException
+ */
+ public void delay(int miliSeconds) throws InterruptedException {
+ Thread.sleep(miliSeconds);
+ }
+
}
16 years, 9 months
JBoss Rich Faces SVN: r7827 - trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-04-14 13:34:15 -0400 (Mon, 14 Apr 2008)
New Revision: 7827
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java
Log:
Modified: trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java
===================================================================
--- trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java 2008-04-14 17:23:04 UTC (rev 7826)
+++ trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java 2008-04-14 17:34:15 UTC (rev 7827)
@@ -1,6 +1,5 @@
package org.ajax4jsf.test.base;
-import org.ajax4jsf.renderkit.RendererUtils;
import org.testng.Assert;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
@@ -14,11 +13,7 @@
*
*/
public class SeleniumTestBase {
-
- private static final String equalCh = "=";
-
- private static final String idSearch = RendererUtils.HTML.id_ATTRIBUTE + equalCh;
-
+
/** Specifies the time to wait for page rendering */
private static final Integer pageRenderTime = 5000;
@@ -205,7 +200,7 @@
* @return
*/
public String getTextById(String id) {
- return selenium.getText(idSearch + id);
+ return selenium.getText(id);
}
/**
@@ -214,7 +209,7 @@
* @return
*/
public String getValueById(String id) {
- return selenium.getValue(idSearch + id);
+ return selenium.getValue(id);
}
/**
@@ -223,7 +218,7 @@
* @return
*/
public void clickById(String id) {
- selenium.click(idSearch + id);
+ selenium.click(id);
checkJSError();
}
@@ -234,7 +229,7 @@
* @return
*/
public boolean isVisibleById(String id) {
- return selenium.isVisible(idSearch + id);
+ return selenium.isVisible(id);
}
/**
16 years, 9 months
JBoss Rich Faces SVN: r7826 - trunk/test-applications/seleniumTest/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-04-14 13:23:04 -0400 (Mon, 14 Apr 2008)
New Revision: 7826
Added:
trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxCommonButton/
Log:
test for ajax command link
Copied: trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxCommonButton (from rev 7804, trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxCommands)
16 years, 9 months
JBoss Rich Faces SVN: r7825 - in trunk/test-applications/seleniumTest/src: main/webapp/pages/ajaxCommandLink and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-04-14 13:21:46 -0400 (Mon, 14 Apr 2008)
New Revision: 7825
Added:
trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxCommandLink/
trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxCommandLink/ajaxLinkDescription.xhtml
trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxCommandLink/ajaxLinkTest.xhtml
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxCommandButtonTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxCommandLinkTest.java
Removed:
trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxCommands/
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxCommandsTest.java
Log:
test for ajax command link
Added: trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxCommandLink/ajaxLinkDescription.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxCommandLink/ajaxLinkDescription.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added: trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxCommandLink/ajaxLinkTest.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxCommandLink/ajaxLinkTest.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Copied: trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxCommandButtonTest.java (from rev 7804, trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxCommandsTest.java)
===================================================================
--- trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxCommandButtonTest.java (rev 0)
+++ trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxCommandButtonTest.java 2008-04-14 17:21:46 UTC (rev 7825)
@@ -0,0 +1,70 @@
+package org.richfaces;
+
+import org.ajax4jsf.test.base.SeleniumTestBase;
+import org.testng.annotations.Test;
+
+public class AjaxCommandButtonTest extends SeleniumTestBase {
+
+ public AjaxCommandButtonTest() {
+ super("http", "localhost", "8080");
+ }
+
+ @Test
+ public void testAjaxCommandButtonComponent() throws Exception {
+ renderPage("/faces/pages/ajaxCommandButton/ajaxButtonTest.xhtml");
+
+ _testAjaxCommandButtonComponent(COMPONENT_PREFIX_INSIDE_TABLE);
+ _testAjaxCommandButtonComponent(COMPONENT_PREFIX_INSIDE_PANEL);
+ }
+
+ private void _testAjaxCommandButtonComponent(String parentId) {
+ // test inside DataTable
+ String buttonId = parentId + "b1";
+ String inputId = parentId + "_value";
+
+ clickById(buttonId);
+ waitForAjaxCompletion(3000);
+ AssertValueEquals(inputId, "3");
+
+ clickById(buttonId);
+ waitForAjaxCompletion(1000);
+ AssertValueEquals(inputId, "6");
+
+ buttonId = parentId + "b2";
+
+ clickById(buttonId);
+ waitForAjaxCompletion(1000);
+ AssertValueEquals(inputId, "6");
+
+ buttonId = parentId + "b3";
+
+ clickById(buttonId);
+ waitForAjaxCompletion(1000);
+ AssertValueEquals(inputId, "6");
+
+ buttonId = parentId + "b4";
+
+ clickById(buttonId);
+ waitForAjaxCompletion(1000);
+ AssertValueEquals(inputId, "1");
+
+ buttonId = parentId + "b5";
+
+ clickById(buttonId);
+ waitForAjaxCompletion(1000);
+ AssertValueEquals(inputId, "2");
+
+ buttonId = parentId + "b1";
+
+ clickById(buttonId);
+ waitForAjaxCompletion(1000);
+ AssertValueEquals(inputId, "5");
+
+ buttonId = parentId + "b3";
+
+ clickById(buttonId);
+ waitForAjaxCompletion(1000);
+ AssertValueEquals(inputId, "5");
+ }
+
+}
Added: trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxCommandLinkTest.java
===================================================================
--- trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxCommandLinkTest.java (rev 0)
+++ trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxCommandLinkTest.java 2008-04-14 17:21:46 UTC (rev 7825)
@@ -0,0 +1,70 @@
+package org.richfaces;
+
+import org.ajax4jsf.test.base.SeleniumTestBase;
+import org.testng.annotations.Test;
+
+public class AjaxCommandLinkTest extends SeleniumTestBase {
+
+ public AjaxCommandLinkTest() {
+ super("http", "localhost", "8080");
+ }
+
+ @Test
+ public void testAjaxCommandLinkComponent() throws Exception {
+ renderPage("/faces/pages/ajaxCommandLink/ajaxLinkTest.xhtml");
+
+ _testAjaxCommandButtonComponent(COMPONENT_PREFIX_INSIDE_TABLE);
+ _testAjaxCommandButtonComponent(COMPONENT_PREFIX_INSIDE_PANEL);
+ }
+
+ private void _testAjaxCommandButtonComponent(String parentId) {
+ // test inside DataTable
+ String LinkId = parentId + "l1";
+ String inputId = parentId + "_value";
+
+ clickById(LinkId);
+ waitForAjaxCompletion(3000);
+ AssertValueEquals(inputId, "3");
+
+ clickById(LinkId);
+ waitForAjaxCompletion(1000);
+ AssertValueEquals(inputId, "6");
+
+ LinkId = parentId + "l2";
+
+ clickById(LinkId);
+ waitForAjaxCompletion(1000);
+ AssertValueEquals(inputId, "6");
+
+ LinkId = parentId + "l3";
+
+ clickById(LinkId);
+ waitForAjaxCompletion(1000);
+ AssertValueEquals(inputId, "6");
+
+ LinkId = parentId + "l4";
+
+ clickById(LinkId);
+ waitForAjaxCompletion(1000);
+ AssertValueEquals(inputId, "1");
+
+ LinkId = parentId + "l5";
+
+ clickById(LinkId);
+ waitForAjaxCompletion(1000);
+ AssertValueEquals(inputId, "2");
+
+ LinkId = parentId + "l1";
+
+ clickById(LinkId);
+ waitForAjaxCompletion(1000);
+ AssertValueEquals(inputId, "5");
+
+ LinkId = parentId + "l3";
+
+ clickById(LinkId);
+ waitForAjaxCompletion(1000);
+ AssertValueEquals(inputId, "5");
+ }
+
+}
Property changes on: trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxCommandLinkTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Deleted: trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxCommandsTest.java
===================================================================
--- trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxCommandsTest.java 2008-04-14 17:17:27 UTC (rev 7824)
+++ trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxCommandsTest.java 2008-04-14 17:21:46 UTC (rev 7825)
@@ -1,71 +0,0 @@
-package org.richfaces;
-
-import org.ajax4jsf.test.base.SeleniumTestBase;
-import org.testng.annotations.Test;
-
-
-public class AjaxCommandsTest extends SeleniumTestBase {
-
- public AjaxCommandsTest() {
- super("http", "localhost", "8080");
- }
-
- @Test
- public void testAjaxCommandsComponents() throws Exception {
- renderPage("/faces/pages/ajaxCommands/ajaxButtonTest.xhtml");
-
- _testAjaxCommandsComponents(COMPONENT_PREFIX_INSIDE_TABLE);
- _testAjaxCommandsComponents(COMPONENT_PREFIX_INSIDE_PANEL);
- }
-
- private void _testAjaxCommandsComponents (String parentId) {
- // test inside DataTable
- String buttonId = parentId + "b1";
- String inputId = parentId + "_value";
-
- clickById(buttonId);
- waitForAjaxCompletion(3000);
- AssertValueEquals(inputId, "3");
-
- clickById(buttonId);
- waitForAjaxCompletion(1000);
- AssertValueEquals(inputId, "6");
-
- buttonId = parentId + "b2";
-
- clickById(buttonId);
- waitForAjaxCompletion(1000);
- AssertValueEquals(inputId, "6");
-
- buttonId = parentId + "b3";
-
- clickById(buttonId);
- waitForAjaxCompletion(1000);
- AssertValueEquals(inputId, "6");
-
- buttonId = parentId + "b4";
-
- clickById(buttonId);
- waitForAjaxCompletion(1000);
- AssertValueEquals(inputId, "1");
-
- buttonId = parentId + "b5";
-
- clickById(buttonId);
- waitForAjaxCompletion(1000);
- AssertValueEquals(inputId, "2");
-
- buttonId = parentId + "b1";
-
- clickById(buttonId);
- waitForAjaxCompletion(1000);
- AssertValueEquals(inputId, "5");
-
- buttonId = parentId + "b3";
-
- clickById(buttonId);
- waitForAjaxCompletion(1000);
- AssertValueEquals(inputId, "5");
- }
-
-}
16 years, 9 months
JBoss Rich Faces SVN: r7824 - in trunk/ui/listShuttle/src/main: templates/org/richfaces and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-04-14 13:17:27 -0400 (Mon, 14 Apr 2008)
New Revision: 7824
Modified:
trunk/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js
trunk/ui/listShuttle/src/main/templates/org/richfaces/htmlListShuttle.jspx
Log:
http://jira.jboss.com/jira/browse/RF-1540
Modified: trunk/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js
===================================================================
--- trunk/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js 2008-04-14 17:17:22 UTC (rev 7823)
+++ trunk/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js 2008-04-14 17:17:27 UTC (rev 7824)
@@ -42,7 +42,7 @@
}
Richfaces.ListShuttle.prototype = {
- initialize: function(targetList, sourceList, clientId, controlIds, switchByClick, onlistchanged) {
+ initialize: function(targetList, sourceList, clientId, controlIds, switchByClick, events) {
this.containerId = clientId;
this["rich:destructor"] = "destroy";
@@ -78,9 +78,10 @@
this.controlList = new Array();
this.initControlList(clientId, controlIds);
- if (onlistchanged) {
- this.targetList.container.observe("rich:onorderchanged", onlistchanged);
- this.container.observe("rich:onlistchanged", onlistchanged);
+ for (var e in this.events) {
+ if (e) {
+ this.container.observe("rich:" + e.toString(), this.events[e]);
+ }
}
},
@@ -154,12 +155,11 @@
if (this.targetList.controlListManager) {
this.targetList.controlListManager();
}
- //this.saveState();
this.targetLayoutManager.widthSynchronization();
this.sourceLayoutManager.widthSynchronization();
- this.container.fire("rich:onlistchanged", {});
+ this.container.fire("rich:onlistchanged", {sourceItems: sourceComponent.shuttleItems, targetItems: targetComponent.shuttleItems});
}
},
@@ -198,7 +198,6 @@
},
addItem : function(component, item) {
- //var newItem = Object.clone(item);
item.doNormal(Richfaces.getExternalClass(item.rowIndex), component.columnsClasses);
component.shuttleTbody.insertBefore(item._node, null);
@@ -214,11 +213,6 @@
component.shuttleTbody = table.tBodies[0];
},
- /*saveState : function() {
- this.targetList.saveState();
- this.sourceList.saveState();
- },*/
-
moveItemByClick : function(event, sourceComponent, targetComponent, layoutManager) {
var item = this.sourceList.getEventTargetRow(event);
this.moveItem(sourceComponent, targetComponent, item);
@@ -227,28 +221,31 @@
if (this.targetList.controlListManager) {
this.targetList.controlListManager();
}
- //this.saveState();
this.targetLayoutManager.widthSynchronization();
this.sourceLayoutManager.widthSynchronization();
- this.container.fire("rich:onlistchanged", {});
+ this.container.fire("rich:onlistchanged", {sourceItems: sourceComponent.shuttleItems, targetItems: targetComponent.shuttleItems});
},
copyAll : function() {
+ this.container.fire("rich:oncopyallclick", {sourceItems: this.sourceList.shuttleItems, targetItems: this.targetList.shuttleItems, selection: this.sourceList.getSelection()});
this.moveItems(this.sourceList, this.targetList, this.sourceList.shuttleItems);
},
copy : function() {
+ this.container.fire("rich:oncopyclick", {sourceItems: this.sourceList.shuttleItems, targetItems: this.targetList.shuttleItems, selection: this.sourceList.getSelection()});
this.moveItems(this.sourceList, this.targetList, this.sourceList.selectedItems);
},
removeAll : function() {
+ this.container.fire("rich:onremoveallclick", {sourceItems: this.sourceList.shuttleItems, targetItems: this.targetList.shuttleItems, selection: this.targetList.getSelection()});
this.moveItems(this.targetList, this.sourceList, this.targetList.shuttleItems);
},
remove : function() {
- this.moveItems(this.targetList, this.sourceList, this.targetList.selectedItems);
+ this.container.fire("rich:onremoveclick", {sourceItems: this.sourceList.shuttleItems, targetItems: this.targetList.shuttleItems, selection: this.targetList.getSelection()});
+ this.moveItems(this.targetList, this.sourceList, this.targetList.selectedItems);
}
};
Modified: trunk/ui/listShuttle/src/main/templates/org/richfaces/htmlListShuttle.jspx
===================================================================
--- trunk/ui/listShuttle/src/main/templates/org/richfaces/htmlListShuttle.jspx 2008-04-14 17:17:22 UTC (rev 7823)
+++ trunk/ui/listShuttle/src/main/templates/org/richfaces/htmlListShuttle.jspx 2008-04-14 17:17:27 UTC (rev 7824)
@@ -193,7 +193,13 @@
new Richfaces.ListShuttle.Source('#{clientId}', '#{clientId}internal_tab', '#{clientId}internal_header_tab', '#{clientId}focusKeeper', undefined, Richfaces.ListShuttle.Source.SelectItem, #{this:getColumnClassesAsJSArray(context, component)}, #{this:getRowClassesAsJSArray(context, component)}),
"#{clientId}",
[['copy', 'discopy'], ['copyAll', 'discopyAll'], ['remove', 'disremove'], ['removeAll','disremoveAll']],
- "#{switchByClick}", #{this:getAsEventHandler(context, component, "onlistchanged")});
+ "#{switchByClick}", {
+ onlistchanged:#{this:getAsEventHandler(context, component, "onlistchanged")},
+ oncopyallclick:#{this:getAsEventHandler(context, component, "oncopyallclick")},
+ oncopyclick:#{this:getAsEventHandler(context, component, "oncopyclick")},
+ onremoveallclick:#{this:getAsEventHandler(context, component, "onremoveallclick")},
+ onremoveclick:#{this:getAsEventHandler(context, component, "onremoveclick")}
+ });
},
RichShuttleUtils.Condition.ElementPresent("#{clientId}"), 100
);
16 years, 9 months
JBoss Rich Faces SVN: r7823 - in trunk/ui/orderingList/src/main: resources/org/richfaces/renderkit/html/scripts and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-04-14 13:17:22 -0400 (Mon, 14 Apr 2008)
New Revision: 7823
Modified:
trunk/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingComponentRendererBase.java
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js
trunk/ui/orderingList/src/main/templates/org/richfaces/htmlOrderingList.jspx
Log:
http://jira.jboss.com/jira/browse/RF-1540
Modified: trunk/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingComponentRendererBase.java
===================================================================
--- trunk/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingComponentRendererBase.java 2008-04-14 16:42:21 UTC (rev 7822)
+++ trunk/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingComponentRendererBase.java 2008-04-14 17:17:22 UTC (rev 7823)
@@ -358,9 +358,9 @@
}
- if (customEvent != null) {
+ /*if (customEvent != null) {
writer.writeAttribute(HTML.onclick_ATTRIBUTE, customEvent, null);
- }
+ }*/
if (useFacet) {
renderChild(context, facet);
Modified: trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js
===================================================================
--- trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js 2008-04-14 16:42:21 UTC (rev 7822)
+++ trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js 2008-04-14 17:17:22 UTC (rev 7823)
@@ -65,7 +65,6 @@
this.clckHandler = function(e) {this.onclickHandler(window.event || e)}.bindAsEventListener(this);
this.shuttleTable.observe("click", this.clckHandler);
- //
this.layoutManager = new LayoutManager(headerTableId, contentTableId);
this.layoutManager.widthSynchronization();
},
@@ -421,5 +420,13 @@
getExtRowClass : function(index) {
return Richfaces.getExternalClass(this.rowClasses, index);
+ },
+
+ getSelection : function() {
+ var result = [];
+ for (var i = 0; i < this.selectedItems.length; i++) {
+ result[i] = this.selectedItems[i].item;
+ }
+ return result;
}
}
\ No newline at end of file
Modified: trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js
===================================================================
--- trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js 2008-04-14 16:42:21 UTC (rev 7822)
+++ trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js 2008-04-14 17:17:22 UTC (rev 7823)
@@ -20,16 +20,20 @@
Richfaces.OrderingList = Class.create(Richfaces.ListBase, {
- initialize: function($super, containerId, contentTableId, headerTableId, focusKeeperId, ids, onclickControlId, onorderchanged, controlClass, columnsClasses, rowClasses) {
+ initialize: function($super, containerId, contentTableId, headerTableId, focusKeeperId, ids, onclickControlId, events, controlClass, columnsClasses, rowClasses) {
$super(containerId, contentTableId, headerTableId, focusKeeperId, onclickControlId, controlClass, columnsClasses, rowClasses);
this.container.component = this;
- if (onorderchanged) {
- this.container.observe("rich:onorderchanged", onorderchanged);
- }
+ this.events = events;
this.controlList = new Array();
this.initControlList(containerId, ids);
+
+ for (var e in this.events) {
+ if (e) {
+ this.container.observe("rich:" + e.toString(), this.events[e]);
+ }
+ }
},
destroy: function($super) {
@@ -48,7 +52,6 @@
this.controlList[i] = new Richfaces.Control(node, disNode, false, false, id[0]);
}
}
- //this.controlListManager();
},
controlListManager : function() {
@@ -88,7 +91,6 @@
moveActiveItem : function($super, action, event) {
$super(action, event);
- //this.saveState();
this.controlListManager();
},
@@ -135,9 +137,8 @@
if (action != null)
this.autoScrolling(action, event);
- this.container.fire("rich:onorderchanged", {});
+ this.container.fire("rich:onorderchanged", {items: this.shuttleItems});
this.controlListManager();
- //this.saveState();
}
},
@@ -175,7 +176,6 @@
this.selectAll();
}
this.activeItem.item.doActive(this.getExtRowClass(this.activeItem.rowIndex), this.columnsClasses);
- //this.saveState();
this.controlListManager();
Event.stop(event);
break;
@@ -183,18 +183,22 @@
},
top : function(e) {
+ this.container.fire("rich:ontopclick", {items: this.shuttleItems, selection: this.getSelection()});
this.moveSelectedItems("first", e);
},
bottom : function(e) {
+ this.container.fire("rich:onbottomclick", {items: this.shuttleItems, selection: this.getSelection()});
this.moveSelectedItems("last", e);
},
up : function(e) {
+ this.container.fire("rich:onupclick", {items: this.shuttleItems, selection: this.getSelection()});
this.moveSelectedItems("up", e);
},
down : function(e) {
+ this.container.fire("rich:ondownclick", {items: this.shuttleItems, selection: this.getSelection()});
this.moveSelectedItems("down", e);
}
Modified: trunk/ui/orderingList/src/main/templates/org/richfaces/htmlOrderingList.jspx
===================================================================
--- trunk/ui/orderingList/src/main/templates/org/richfaces/htmlOrderingList.jspx 2008-04-14 16:42:21 UTC (rev 7822)
+++ trunk/ui/orderingList/src/main/templates/org/richfaces/htmlOrderingList.jspx 2008-04-14 17:17:22 UTC (rev 7823)
@@ -122,7 +122,11 @@
'#{cId}internal_header_tab', '#{cId}focusKeeper',
[['up', 'disup'], ['down', 'disdown'], ['last', 'dislast'], ['first','disfirst']],
'#{cId}sortLabel',
- #{this:getAsEventHandler(context, component, "onorderchanged")},
+ {onorderchanged:#{this:getAsEventHandler(context, component, "onorderchanged")},
+ ontopclick:#{this:getAsEventHandler(context, component, "ontopclick")},
+ onbottomclick:#{this:getAsEventHandler(context, component, "onbottomclick")},
+ onupclick:#{this:getAsEventHandler(context, component, "onupclick")},
+ ondownclick:#{this:getAsEventHandler(context, component, "ondownclick")}},
Richfaces.OrderingListSelectItem,
#{this:getColumnClassesAsJSArray(context, component)},
#{this:getRowClassesAsJSArray(context, component)});
16 years, 9 months
JBoss Rich Faces SVN: r7822 - in trunk/docs/migrationguide/en/src/main/docbook: modules and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-04-14 12:42:21 -0400 (Mon, 14 Apr 2008)
New Revision: 7822
Modified:
trunk/docs/migrationguide/en/src/main/docbook/master.xml
trunk/docs/migrationguide/en/src/main/docbook/modules/intro.xml
Log:
http://jira.jboss.com/jira/browse/RF-3048 - introduction added
Modified: trunk/docs/migrationguide/en/src/main/docbook/master.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/master.xml 2008-04-14 16:35:01 UTC (rev 7821)
+++ trunk/docs/migrationguide/en/src/main/docbook/master.xml 2008-04-14 16:42:21 UTC (rev 7822)
@@ -2,6 +2,7 @@
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3CR3//EN"
"http://www.oasis-open.org/docbook/xml/4.3CR3/docbookx.dtd" [
<!ENTITY intro SYSTEM "modules/intro.xml">
+ <!ENTITY scope SYSTEM "modules/scope.xml">
]>
<book>
<bookinfo>
@@ -14,7 +15,6 @@
<toc/>
&intro;
-
-
+ &scope;
</book>
Modified: trunk/docs/migrationguide/en/src/main/docbook/modules/intro.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/modules/intro.xml 2008-04-14 16:35:01 UTC (rev 7821)
+++ trunk/docs/migrationguide/en/src/main/docbook/modules/intro.xml 2008-04-14 16:42:21 UTC (rev 7822)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<chapter id="Introduction" xreflabel="Introduction">
+<chapter id="introduction" xreflabel="introduction">
<?dbhtml filename="intro.html"?>
<chapterinfo>
<keywordset>
@@ -9,5 +9,11 @@
</chapterinfo>
<title>Introduction</title>
-
+ <para>
+ This document is aimed to provide guidelines for migrating <property>RichFaces</property> projects from 3.1.x versions to 3.2.0.
+ </para>
+ <para>
+ <property>RichFaces</property> Migration Guide implies descriptions concerning issues caused by migration and provides
+ suitable workarounds and examples.
+ </para>
</chapter>
\ No newline at end of file
16 years, 9 months
JBoss Rich Faces SVN: r7821 - trunk/ui/calendar/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2008-04-14 12:35:01 -0400 (Mon, 14 Apr 2008)
New Revision: 7821
Modified:
trunk/ui/calendar/src/main/config/component/calendar.xml
Log:
http://jira.jboss.com/jira/browse/RF-2220
Default and possible values for the calendar component were added.
Modified: trunk/ui/calendar/src/main/config/component/calendar.xml
===================================================================
--- trunk/ui/calendar/src/main/config/component/calendar.xml 2008-04-14 16:33:34 UTC (rev 7820)
+++ trunk/ui/calendar/src/main/config/component/calendar.xml 2008-04-14 16:35:01 UTC (rev 7821)
@@ -64,14 +64,14 @@
<property>
<name>locale</name>
<classname>java.lang.Object</classname>
- <description>Used for locale definition</description>
+ <description>Used for locale definition. Default value is "getDefaultLocale()".</description>
<defaultvalue>getDefaultLocale()</defaultvalue>
</property>
<property elonly="true">
<name>timeZone</name>
<classname>java.util.TimeZone</classname>
<description>
- Used for current date calculations
+ Used for current date calculations. Default value is "getDefaultTimeZone()".
</description>
<defaultvalue>getDefaultTimeZone()</defaultvalue>
</property>
@@ -80,7 +80,7 @@
<classname>java.lang.Object</classname>
<description>
Define the initial range of date which will be loaded to
- client from dataModel under rendering
+ client from dataModel under rendering. Default value is "getDefaultPreloadBegin(getCurrentDateOrDefault())".
</description>
<defaultvalue>
getDefaultPreloadBegin(getCurrentDateOrDefault())
@@ -91,7 +91,7 @@
<classname>java.lang.Object</classname>
<description>
Defines the last range of date which will be loaded to
- client from dataModel under rendering
+ client from dataModel under rendering. Default value is "getDefaultPreloadEnd(getCurrentDateOrDefault())".
</description>
<defaultvalue>
getDefaultPreloadEnd(getCurrentDateOrDefault())
@@ -113,7 +113,7 @@
<property>
<name>datePattern</name>
<classname>java.lang.String</classname>
- <description>Defines date pattern</description>
+ <description>Defines date pattern. Default value is "MMM d, yyyy".</description>
<defaultvalue>"MMM d, yyyy"</defaultvalue>
</property>
@@ -122,7 +122,7 @@
<classname>boolean</classname>
<description>
If "true" calendar will be rendered initially
- as hidden with additional elements for calling as popup
+ as hidden with additional elements for calling as popup. Default value is "true".
</description>
<defaultvalue>true</defaultvalue>
</property>
@@ -131,7 +131,7 @@
<classname>boolean</classname>
<description>
If "true", rendered is disabled. In
- "popup" mode both controls are disabled
+ "popup" mode both controls are disabled. Default value is "false".
</description>
<defaultvalue>false</defaultvalue>
</property>
@@ -141,7 +141,7 @@
<description>
Set the corner of the button for the popup to be
connected with (top-left, top-right, bottom-left
- (Default), bottom-right, auto)
+ (Default), bottom-right, auto). Default value is "bottom-left".
</description>
<defaultvalue>"bottom-left"</defaultvalue>
</property>
@@ -150,7 +150,7 @@
<classname>java.lang.String</classname>
<description>
Defines direction of the calendar popup (top-left,
- top-right, bottom-left, bottom-right (Default), auto)
+ top-right, bottom-left, bottom-right (Default), auto). Default value is "bottom-right".
</description>
<defaultvalue>"bottom-right"</defaultvalue>
</property>
@@ -193,7 +193,7 @@
<description>
Used to specify mode to load tooltips. Valid values are
"none", "single" and
- "batch"
+ "batch" Default value is "batch".
</description>
<defaultvalue>"batch"</defaultvalue>
</property>
@@ -206,7 +206,7 @@
gray colored, "scroll" boundaries work as
month scrolling controls, and "select"
boundaries work in the same way as "scroll"
- but with the date clicked selection
+ but with the date clicked selection. Default value is "inactive".
</description>
<defaultvalue>"inactive"</defaultvalue>
</property>
@@ -218,7 +218,7 @@
it will be possible to change the date manualy. If
"false" value for this attribute makes a text
field "read-only", so the value can be changed
- only from a handle
+ only from a handle. Default value is "false".
</description>
<defaultvalue>false</defaultvalue>
</property>
@@ -228,7 +228,7 @@
<description>
"false" value for this attribute makes text
field invisible. If "true" - input field will
- be shown
+ be shown. Default value is "true".
</description>
<defaultvalue>true</defaultvalue>
</property>
@@ -271,7 +271,7 @@
<classname>int</classname>
<description>
Attribute is similar to the standard HTML attribute and
- can specify window placement relative to the content
+ can specify window placement relative to the content. Default value is "3".
</description>
<defaultvalue>3</defaultvalue>
</property>
@@ -282,7 +282,7 @@
<description>
A ValueExpression enabled attribute that, if present,
will be used as the text of the validation message for
- the "required" facility, if the "required" facility is
+ the "required" facility, if the "required" facility is
used
</description>
</property>
@@ -418,7 +418,7 @@
<classname>boolean</classname>
<description>
if "true", submits ONLY one field/link, instead of all
- form controls
+ form controls. Default value is "true".
</description>
<defaultvalue>true</defaultvalue>
</property>
@@ -433,7 +433,7 @@
<classname>java.lang.String</classname>
<description>
Defines icon for the popup button element. The attribute
- is ignored if the "buttonLabel" is set
+ is ignored if the "buttonLabel" is set
</description>
</property>
@@ -442,7 +442,7 @@
<classname>java.lang.String</classname>
<description>
Defines label for the popup button element. If the
- attribute is set "buttonIcon" and "buttonIconDisabled"
+ attribute is set "buttonIcon" and "buttonIconDisabled"
are ignored
</description>
</property>
@@ -452,14 +452,18 @@
<classname>java.lang.String</classname>
<description>
Defines disabled icon for the popup button element. The
- attribute is ignored if the "buttonLabel" is set
+ attribute is ignored if the "buttonLabel" is set
</description>
</property>
<property>
<name>mode</name>
<classname>java.lang.String</classname>
+
+ <description>Valid values: ajax or client. Default value is "client".</description>
+
<defaultvalue>UICalendar.CLIENT_MODE</defaultvalue>
- <description>Valid values = ajax or client</description>
+
+
</property>
<property>
@@ -467,7 +471,7 @@
<classname>int</classname>
<description>
Sets the horizontal offset between button and calendar
- element conjunction point
+ element conjunction point. Default value is "0".
</description>
<defaultvalue>0</defaultvalue>
</property>
@@ -477,7 +481,7 @@
<classname>int</classname>
<description>
Sets the vertical offset between button and calendar
- element conjunction point
+ element conjunction point. Default value is "0".
</description>
<defaultvalue>0</defaultvalue>
</property>
@@ -518,7 +522,7 @@
<name>showWeekDaysBar</name>
<classname>boolean</classname>
<description>
- If false this bar should not be shown
+ If false this bar should not be shown. Default value is "true".
</description>
<defaultvalue>true</defaultvalue>
</property>
@@ -526,7 +530,7 @@
<name>showWeeksBar</name>
<classname>boolean</classname>
<description>
- If false this bar should not be shown
+ If false this bar should not be shown. Default value is "true".
</description>
<defaultvalue>true</defaultvalue>
</property>
@@ -534,7 +538,7 @@
<name>todayControlMode</name>
<classname>java.lang.String</classname>
<description>
- Possible values are "scroll", "select", "hidden"
+ Possible values are "scroll", "select", "hidden". Default value is "select".
</description>
<defaultvalue>"select"</defaultvalue>
</property>
@@ -542,14 +546,14 @@
<name>showApplyButton</name>
<classname>boolean</classname>
<description>
- If false ApplyButton should not be shown
+ If false ApplyButton should not be shown. Default value is "false".
</description>
<defaultvalue>false</defaultvalue>
</property>
<property>
<name>inputSize</name>
<classname>int</classname>
- <description>Defines the size of an input field. Similar to the "size" attribute of h:inputText</description>
+ <description>Defines the size of an input field. Similar to the "size" attribute of <h:inputText/></description>
</property>
<property>
<name>label</name>
@@ -560,7 +564,7 @@
<name>showHeader</name>
<classname>boolean</classname>
<description>
- If false Calendar's header should not be shown
+ If false Calendar's header should not be shown. Default value is "true".
</description>
<defaultvalue>true</defaultvalue>
</property>
@@ -568,27 +572,27 @@
<name>showFooter</name>
<classname>boolean</classname>
<description>
- If false Calendar's footer should not be shown
+ If false Calendar's footer should not be shown. Default value is "true".
</description>
<defaultvalue>true</defaultvalue>
- </property>
- <property>
- <name>firstWeekDay</name>
- <classname>int</classname>
- <description>Gets what the first day of the week is; e.g., SUNDAY in the U.S., MONDAY in France.</description>
- <defaultvalue>getDefaultFirstWeekDay()</defaultvalue>
- </property>
- <property>
- <name>minDaysInFirstWeek</name>
- <classname>int</classname>
- <description>
- Gets what the minimal days required in the first week of the year
- are; e.g., if the first week is defined as one that contains the first
- day of the first month of a year, this method returns 1. If the
- minimal days required must be a full week, this method returns 7.
- </description>
- <defaultvalue>getDefaultMinDaysInFirstWeek()</defaultvalue>
</property>
+ <property>
+ <name>firstWeekDay</name>
+ <classname>int</classname>
+ <description>Gets what the first day of the week is; e.g., SUNDAY in the U.S., MONDAY in France. Default value is "getDefaultFirstWeekDay()".</description>
+ <defaultvalue>getDefaultFirstWeekDay()</defaultvalue>
+ </property>
+ <property>
+ <name>minDaysInFirstWeek</name>
+ <classname>int</classname>
+ <description>
+ Gets what the minimal days required in the first week of the year
+ are; e.g., if the first week is defined as one that contains the first
+ day of the first month of a year, this method returns 1. If the
+ minimal days required must be a full week, this method returns 7. Default value is "getDefaultMinDaysInFirstWeek()".
+ </description>
+ <defaultvalue>getDefaultMinDaysInFirstWeek()</defaultvalue>
+ </property>
</component>
&listeners;
16 years, 9 months