JBoss Rich Faces SVN: r8382 - trunk/test-applications/jsp/src/main/webapp/WEB-INF.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-04-30 11:52:19 -0400 (Wed, 30 Apr 2008)
New Revision: 8382
Modified:
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Converter.xml
Log:
-fileUploadConverter
Modified: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Converter.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Converter.xml 2008-04-30 15:38:19 UTC (rev 8381)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Converter.xml 2008-04-30 15:52:19 UTC (rev 8382)
@@ -25,9 +25,5 @@
<converter>
<converter-id>comboBoxConverter</converter-id>
<converter-class>util.converter.ComboBoxConverter</converter-class>
- </converter>
- <converter>
- <converter-id>fileUploadConverter</converter-id>
- <converter-class>util.converter.FileUploadConverter</converter-class>
- </converter>
+ </converter>
</faces-config>
16 years, 4 months
JBoss Rich Faces SVN: r8381 - in trunk/test-applications/seleniumTest/src: main/webapp/WEB-INF and 4 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-04-30 11:38:19 -0400 (Wed, 30 Apr 2008)
New Revision: 8381
Added:
trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/A4JRegionTestBean.java
trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxRegion/
trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxRegion/ajaxRegionTest.xhtml
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxRegionTest.java
Modified:
trunk/test-applications/seleniumTest/src/main/webapp/WEB-INF/faces-config.xml
trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java
Log:
AjaxRegion component test
Added: trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/A4JRegionTestBean.java
===================================================================
--- trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/A4JRegionTestBean.java (rev 0)
+++ trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/A4JRegionTestBean.java 2008-04-30 15:38:19 UTC (rev 8381)
@@ -0,0 +1,67 @@
+package org.ajax4jsf;
+
+public class A4JRegionTestBean {
+
+ private Integer internal = 0;
+
+ private Integer external = 0;
+
+ private Integer value = 0;
+
+ /**
+ * Gets value of internal field.
+ *
+ * @return value of internal field
+ */
+ public Integer getInternal() {
+ return internal;
+ }
+
+ /**
+ * Set a new value for internal field.
+ *
+ * @param internal
+ * a new value for internal field
+ */
+ public void setInternal(Integer internal) {
+ this.internal = internal;
+ }
+
+ /**
+ * Gets value of external field.
+ *
+ * @return value of external field
+ */
+ public Integer getExternal() {
+ return external;
+ }
+
+ /**
+ * Set a new value for external field.
+ *
+ * @param external
+ * a new value for external field
+ */
+ public void setExternal(Integer external) {
+ this.external = external;
+ }
+
+ /**
+ * Gets value of value field.
+ *
+ * @return value of value field
+ */
+ public Integer getValue() {
+ return value;
+ }
+
+ /**
+ * Set a new value for value field.
+ *
+ * @param value
+ * a new value for value field
+ */
+ public void setValue(Integer value) {
+ this.value = value;
+ }
+}
Property changes on: trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/A4JRegionTestBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Modified: trunk/test-applications/seleniumTest/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/test-applications/seleniumTest/src/main/webapp/WEB-INF/faces-config.xml 2008-04-30 14:45:06 UTC (rev 8380)
+++ trunk/test-applications/seleniumTest/src/main/webapp/WEB-INF/faces-config.xml 2008-04-30 15:38:19 UTC (rev 8381)
@@ -66,5 +66,10 @@
<managed-bean-name>keepAliveBeanAjaxOnly</managed-bean-name>
<managed-bean-class>org.ajax4jsf.A4JKeepAliveTestBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>regionBean</managed-bean-name>
+ <managed-bean-class>org.ajax4jsf.A4JRegionTestBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
</managed-bean>
</faces-config>
\ No newline at end of file
Added: trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxRegion/ajaxRegionTest.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxRegion/ajaxRegionTest.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
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-30 14:45:06 UTC (rev 8380)
+++ trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java 2008-04-30 15:38:19 UTC (rev 8381)
@@ -319,6 +319,16 @@
}
/**
+ * Asserts DOM node is not present
+ *
+ * @param id -
+ * DOM element id
+ */
+ public void AssertNotPresent(String id) {
+ Assert.assertFalse(isPresentById(id));
+ }
+
+ /**
* Asserts DOM node is not visible
*
* @param id -
@@ -351,6 +361,18 @@
}
/**
+ * Sets a new value for DOM node with specified id.
+ *
+ * @param id -
+ * DOM element id
+ * @param value -
+ * a new DOM element's value
+ */
+ public void setValueById(String id, String value) {
+ runScript(String.format("$('%1$s').value=%2$s;", id, value));
+ }
+
+ /**
* Returns element's width
* @param id - DOM element id
* @return
@@ -397,8 +419,17 @@
public boolean isVisibleById(String id) {
return selenium.isVisible("id=" + id);
}
-
+
/**
+ * Returns true if element with given id is present.
+ * @param id - DOM element id
+ * @return true if element with given id is present, otherwise - false
+ */
+ public boolean isPresentById(String id) {
+ return selenium.isElementPresent("id=" + id);
+ }
+
+ /**
* Invokes JS method on client.
* @param id - DOM id of component
* @param method - string method name
Added: trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxRegionTest.java
===================================================================
--- trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxRegionTest.java (rev 0)
+++ trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxRegionTest.java 2008-04-30 15:38:19 UTC (rev 8381)
@@ -0,0 +1,92 @@
+package org.richfaces;
+
+import org.ajax4jsf.test.base.SeleniumTestBase;
+import org.ajax4jsf.test.base.Templates;
+import org.testng.annotations.AfterTest;
+import org.testng.annotations.BeforeTest;
+import org.testng.annotations.Parameters;
+import org.testng.annotations.Test;
+
+public class AjaxRegionTest extends SeleniumTestBase {
+
+ public AjaxRegionTest() {
+ super("http", "localhost", "8080");
+ }
+
+ /**
+ * This method are invoking before selenium tests started
+ */
+ @BeforeTest
+ @Parameters( { "browser" })
+ public void startSelenium(String browser) {
+ super.startSelenium(browser);
+ }
+
+ /**
+ * This method are invoking after selenium tests completed
+ */
+ @AfterTest
+ public void stopSelenium() {
+ super.stopSelenium();
+ }
+
+ @Test
+ public void testAjaxRegionComponent() throws Exception {
+ _testAjaxRegionComponent(Templates.DATATABLE);
+ }
+
+ private void _testAjaxRegionComponent(Templates template) {
+ renderPage("/faces/pages/ajaxRegion/ajaxRegionTest.xhtml", template);
+
+ String parentId = getParentId() + "_form:";
+
+ //test nested regions
+ String externalLink = parentId + "externalLink";
+ String internalLink = parentId + "internalLink";
+
+ String internalElemId = parentId + "internal";
+ String externalElemId = parentId + "external";
+
+ setValueById(internalElemId, "5");
+ setValueById(externalElemId, "5");
+
+ clickById(internalLink);
+ waitForAjaxCompletion();
+ AssertValueEquals(internalElemId, "5");
+ AssertValueEquals(externalElemId, "0");
+
+ setValueById(internalElemId, "10");
+ setValueById(externalElemId, "10");
+
+ clickById(externalLink);
+ waitForAjaxCompletion();
+ AssertValueEquals(internalElemId, "10");
+ AssertValueEquals(externalElemId, "10");
+
+ //test "selfRendered" attribute
+ String selfRenderedLink = parentId + "selfRenderedLink";
+ clickById(selfRenderedLink);
+ waitForAjaxCompletion();
+ AssertNotPresent("transientText");
+
+ //test "renderRegionOnly" attribute
+ String renderOnlyLink = parentId + "renderOnlyLink";
+ String renderLink = parentId + "renderLink";
+
+ String renderOnlyElemId = parentId + "renderOnly";
+ String renderElemId = parentId + "render";
+
+ setValueById(renderOnlyElemId, "7");
+ clickById(renderOnlyLink);
+
+ AssertValueEquals(renderOnlyElemId, "7");
+ AssertValueEquals(renderElemId, "0");
+
+ setValueById(renderElemId, "11");
+ clickById(renderLink);
+
+ AssertValueEquals(renderOnlyElemId, "11");
+ AssertValueEquals(renderElemId, "11");
+ }
+
+}
Property changes on: trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxRegionTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
16 years, 4 months
JBoss Rich Faces SVN: r8380 - trunk/framework/impl/src/main/java/org/richfaces/model/impl/expressive.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2008-04-30 10:45:06 -0400 (Wed, 30 Apr 2008)
New Revision: 8380
Modified:
trunk/framework/impl/src/main/java/org/richfaces/model/impl/expressive/WrappedBeanFilter.java
Log:
RF-2912
Modified: trunk/framework/impl/src/main/java/org/richfaces/model/impl/expressive/WrappedBeanFilter.java
===================================================================
--- trunk/framework/impl/src/main/java/org/richfaces/model/impl/expressive/WrappedBeanFilter.java 2008-04-30 13:52:25 UTC (rev 8379)
+++ trunk/framework/impl/src/main/java/org/richfaces/model/impl/expressive/WrappedBeanFilter.java 2008-04-30 14:45:06 UTC (rev 8380)
@@ -25,7 +25,7 @@
if (filterField instanceof ExtendedFilterField) {
Object property = wrapper.getProperty(filterField.getExpression().getExpressionString());
String filterValue = ((ExtendedFilterField)filterField).getFilterValue();
- if(filterValue != null) {
+ if(filterValue != null && filterValue.length() > 0) {
filterValue = filterValue.trim().toUpperCase();
if(property == null || !property.toString().trim().toUpperCase().startsWith(filterValue)) {
return false;
16 years, 4 months
JBoss Rich Faces SVN: r8379 - trunk/test-applications/jsp/src/main/webapp/InputNumberSlider.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-04-30 09:52:25 -0400 (Wed, 30 Apr 2008)
New Revision: 8379
Modified:
trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSlider.jsp
Log:
inputNumberSlider in tabPanel
Modified: trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSlider.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSlider.jsp 2008-04-30 13:15:58 UTC (rev 8378)
+++ trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSlider.jsp 2008-04-30 13:52:25 UTC (rev 8379)
@@ -24,4 +24,18 @@
</h:panelGroup>
</h:panelGrid>
<rich:spacer height="20px"></rich:spacer>
+
+ <h:form>
+ <rich:tabPanel switchType="client">
+ <rich:tab label="First">
+ Here is tab #1
+ <rich:inputNumberSlider value="10" />
+ </rich:tab>
+ <rich:tab label="Second">
+ Here is tab #2
+ <rich:inputNumberSlider value="20" />
+ </rich:tab>
+ </rich:tabPanel>
+ <h:commandButton action="submit" value="Submit" />
+ </h:form>
</f:subview>
\ No newline at end of file
16 years, 4 months
JBoss Rich Faces SVN: r8378 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-04-30 09:15:58 -0400 (Wed, 30 Apr 2008)
New Revision: 8378
Modified:
trunk/docs/userguide/en/src/main/docbook/included/listShuttle.xml
trunk/docs/userguide/en/src/main/docbook/included/orderingList.xml
Log:
RF-1943 - corrected function's names
Modified: trunk/docs/userguide/en/src/main/docbook/included/listShuttle.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/listShuttle.xml 2008-04-30 13:13:37 UTC (rev 8377)
+++ trunk/docs/userguide/en/src/main/docbook/included/listShuttle.xml 2008-04-30 13:15:58 UTC (rev 8378)
@@ -387,19 +387,19 @@
</row>
<!--List managing API -->
<row>
- <entry>moveUp()</entry>
+ <entry>Up()</entry>
<entry>Moves up selected item in the list</entry>
</row>
<row>
- <entry>moveDown()</entry>
+ <entry>Down()</entry>
<entry>Moves down selected item in the list</entry>
</row>
<row>
- <entry>moveTop()</entry>
+ <entry>Top()</entry>
<entry>Moves top selected item in the list</entry>
</row>
<row>
- <entry>moveBottom()</entry>
+ <entry>Bottom()</entry>
<entry>Moves bottom selected item in the list</entry>
</row>
<row>
Modified: trunk/docs/userguide/en/src/main/docbook/included/orderingList.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/orderingList.xml 2008-04-30 13:13:37 UTC (rev 8377)
+++ trunk/docs/userguide/en/src/main/docbook/included/orderingList.xml 2008-04-30 13:15:58 UTC (rev 8378)
@@ -430,23 +430,23 @@
</row>
<row>
<entry>isEnabled()</entry>
- <entry>Checksif current control is enabled</entry>
+ <entry>Checks if current control is enabled</entry>
</row>
<!--List managing API -->
<row>
- <entry>moveUp()</entry>
+ <entry>Up()</entry>
<entry>Moves up selected item in the list</entry>
</row>
<row>
- <entry>moveDown()</entry>
+ <entry>Down()</entry>
<entry>Moves down selected item in the list</entry>
</row>
<row>
- <entry>moveTop()</entry>
+ <entry>Top()</entry>
<entry>Moves top selected item in the list</entry>
</row>
<row>
- <entry>moveBottom()</entry>
+ <entry>Bottom()</entry>
<entry>Moves bottom selected item in the list</entry>
</row>
<row>
16 years, 4 months
JBoss Rich Faces SVN: r8377 - in trunk/ui: inplaceSelect/src/main/config/component and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-04-30 09:13:37 -0400 (Wed, 30 Apr 2008)
New Revision: 8377
Modified:
trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml
trunk/ui/inplaceSelect/src/main/config/component/inplaceselect.xml
Log:
RF-3120 - corrected description
Modified: trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml
===================================================================
--- trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-04-30 13:12:40 UTC (rev 8376)
+++ trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-04-30 13:13:37 UTC (rev 8377)
@@ -77,7 +77,7 @@
<property>
<name>controlsVerticalPosition</name>
<classname>java.lang.String</classname>
- <description>Positions the controls vertically. Possible values are "bottom", "center", "top". Default value is "center".</description>
+ <description>Positions the controls vertically. Possible values are "bottom", "top"</description>
<defaultvalue><![CDATA["center"]]></defaultvalue>
</property>
Modified: trunk/ui/inplaceSelect/src/main/config/component/inplaceselect.xml
===================================================================
--- trunk/ui/inplaceSelect/src/main/config/component/inplaceselect.xml 2008-04-30 13:12:40 UTC (rev 8376)
+++ trunk/ui/inplaceSelect/src/main/config/component/inplaceselect.xml 2008-04-30 13:13:37 UTC (rev 8377)
@@ -87,7 +87,7 @@
<property>
<name>controlsVerticalPosition</name>
<classname>java.lang.String</classname>
- <description>The attribute positions the controls vertically. Possible values are "bottom","center","top". Default value is "center". </description>
+ <description>The attribute positions the controls vertically. Possible values are "bottom","top" </description>
<defaultvalue><![CDATA["center"]]></defaultvalue>
</property>
<property>
16 years, 4 months
JBoss Rich Faces SVN: r8376 - in trunk: ui/calendar/src/main/config/component and 4 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-04-30 09:12:40 -0400 (Wed, 30 Apr 2008)
New Revision: 8376
Modified:
trunk/cdk/generator/src/main/resources/META-INF/schema/entities/ajax_component_attributes.ent
trunk/ui/calendar/src/main/config/component/calendar.xml
trunk/ui/datascroller/src/main/config/component/datascroller.xml
trunk/ui/fileUpload/src/main/config/component/fileUpload.xml
trunk/ui/suggestionbox/src/main/config/component/suggestionbox.xml
trunk/ui/togglePanel/src/main/config/component/togglePanel.xml
Log:
RF-3228 - corrected description
Modified: trunk/cdk/generator/src/main/resources/META-INF/schema/entities/ajax_component_attributes.ent
===================================================================
--- trunk/cdk/generator/src/main/resources/META-INF/schema/entities/ajax_component_attributes.ent 2008-04-30 13:06:40 UTC (rev 8375)
+++ trunk/cdk/generator/src/main/resources/META-INF/schema/entities/ajax_component_attributes.ent 2008-04-30 13:12:40 UTC (rev 8376)
@@ -15,7 +15,8 @@
<property >
<name>ajaxSingle</name>
<classname>boolean</classname>
- <description>if "true", submits ONLY one field/link, instead of all form controls</description>
+ <description>boolean attribute which provides possibility to limit JSF tree processing(decoding, conversion/validation, value applying)
+to the component which send the request only</description>
</property>
<property >
@@ -36,13 +37,13 @@
<description>Id['s] (in format of call UIComponent.findComponent()) of components, rendered in case of AjaxRequest caused by this component. Can be single id, comma-separated list of Id's, or EL Expression with array or Collection</description>
</property>
- <property >
- <name>process</name>
- <classname>java.lang.Object</classname>
- <description>Id['s] (in format of call UIComponent.findComponent()) of components, processed at the phases 2-5 in case of AjaxRequest caused by this component. Can be single id, comma-separated list of Id's, or EL Expression with array or Collection</description>
- </property>
-
<property >
+ <name>process</name>
+ <classname>java.lang.Object</classname>
+ <description>Id['s] (in format of call UIComponent.findComponent()) of components, processed at the phases 2-5 in case of AjaxRequest caused by this component. Can be single id, comma-separated list of Id's, or EL Expression with array or Collection</description>
+ </property>
+
+ <property >
<name>status</name>
<classname>java.lang.String</classname>
<description>ID (in format of call UIComponent.findComponent()) of Request status component</description>
@@ -73,12 +74,12 @@
<classname>java.lang.String</classname>
<description>JavaScript code for call before DOM has been updated on client side</description>
</property>
- <property >
- <name>focus</name>
- <classname>java.lang.String</classname>
- <description>id of element to set focus after request completed on client side</description>
- </property>
<property >
+ <name>focus</name>
+ <classname>java.lang.String</classname>
+ <description>id of element to set focus after request completed on client side</description>
+ </property>
+ <property >
<name>data</name>
<classname>java.lang.Object</classname>
<description>Serialized (on default with JSON) data passed on the client by a developer on AJAX request. It's accessible via "data.foo" syntax</description>
Modified: trunk/ui/calendar/src/main/config/component/calendar.xml
===================================================================
--- trunk/ui/calendar/src/main/config/component/calendar.xml 2008-04-30 13:06:40 UTC (rev 8375)
+++ trunk/ui/calendar/src/main/config/component/calendar.xml 2008-04-30 13:12:40 UTC (rev 8376)
@@ -433,8 +433,7 @@
<name>ajaxSingle</name>
<classname>boolean</classname>
<description>
- if "true", submits ONLY one field/link, instead of all
- form controls. Default value is "true".
+ boolean attribute which provides possibility to limit JSF tree processing(decoding, conversion/validation, value applying) to the component which send the request only.
</description>
<defaultvalue>true</defaultvalue>
</property>
Modified: trunk/ui/datascroller/src/main/config/component/datascroller.xml
===================================================================
--- trunk/ui/datascroller/src/main/config/component/datascroller.xml 2008-04-30 13:06:40 UTC (rev 8375)
+++ trunk/ui/datascroller/src/main/config/component/datascroller.xml 2008-04-30 13:12:40 UTC (rev 8376)
@@ -198,7 +198,8 @@
<property>
<name>ajaxSingle</name>
<classname>boolean</classname>
- <description>If "true", submits ONLY one field/link, instead of all form controls. Default value is "true".
+ <description>
+ Boolean attribute which provides possibility to limit JSF tree processing(decoding, conversion/validation, value applying) to the component which send the request only.
</description>
<defaultvalue>true</defaultvalue>
</property>
Modified: trunk/ui/fileUpload/src/main/config/component/fileUpload.xml
===================================================================
--- trunk/ui/fileUpload/src/main/config/component/fileUpload.xml 2008-04-30 13:06:40 UTC (rev 8375)
+++ trunk/ui/fileUpload/src/main/config/component/fileUpload.xml 2008-04-30 13:12:40 UTC (rev 8376)
@@ -340,8 +340,7 @@
<name>ajaxSingle</name>
<classname>boolean</classname>
<description>
- If this attribute set up in true upload request will be like as single.
- No components value in form will be updated after file uploaded. Default value is "false".
+ Boolean attribute which provides possibility to limit JSF tree processing(decoding, conversion/validation, value applying) to the component which send the request only.
</description>
<defaultvalue>false</defaultvalue>
</property>
Modified: trunk/ui/suggestionbox/src/main/config/component/suggestionbox.xml
===================================================================
--- trunk/ui/suggestionbox/src/main/config/component/suggestionbox.xml 2008-04-30 13:06:40 UTC (rev 8375)
+++ trunk/ui/suggestionbox/src/main/config/component/suggestionbox.xml 2008-04-30 13:12:40 UTC (rev 8376)
@@ -84,7 +84,7 @@
<name>ajaxSingle</name>
<classname>boolean</classname>
<description>
- if "true", the component tree is processed limited only to the current component. Default value is "true".
+ Boolean attribute which provides possibility to limit JSF tree processing(decoding, conversion/validation, value applying) to the component which send the request only.
</description>
<defaultvalue>true</defaultvalue>
</property>
Modified: trunk/ui/togglePanel/src/main/config/component/togglePanel.xml
===================================================================
--- trunk/ui/togglePanel/src/main/config/component/togglePanel.xml 2008-04-30 13:06:40 UTC (rev 8375)
+++ trunk/ui/togglePanel/src/main/config/component/togglePanel.xml 2008-04-30 13:12:40 UTC (rev 8376)
@@ -382,8 +382,7 @@
<name>ajaxSingle</name>
<classname>boolean</classname>
<description>
- if "true", submit ONLY one field/link, instead of all
- form controls
+ Boolean attribute which provides possibility to limit JSF tree processing(decoding, conversion/validation, value applying) to the component which send the request only.
</description>
</property>
16 years, 4 months
JBoss Rich Faces SVN: r8375 - trunk/test-applications/jsp/src/main/webapp/Calendar.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2008-04-30 09:06:40 -0400 (Wed, 30 Apr 2008)
New Revision: 8375
Modified:
trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp
Log:
remove &
Modified: trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp 2008-04-30 12:45:47 UTC (rev 8374)
+++ trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp 2008-04-30 13:06:40 UTC (rev 8375)
@@ -190,5 +190,5 @@
</rich:calendar>
</h:panelGrid>
<h:outputLink
- value="http://www.jboss.com/index.html?module=bb&op=viewforum&f=261"></h:outputLink>
+ value="http://www.jboss.com/index.html"></h:outputLink>
</f:subview>
16 years, 4 months
JBoss Rich Faces SVN: r8374 - trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2008-04-30 08:45:47 -0400 (Wed, 30 Apr 2008)
New Revision: 8374
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Selection.js
Log:
RF-3038
Modified: trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Selection.js
===================================================================
--- trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Selection.js 2008-04-30 11:59:33 UTC (rev 8373)
+++ trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Selection.js 2008-04-30 12:45:47 UTC (rev 8374)
@@ -412,7 +412,7 @@
}
this.startRow = this.shiftRow;
if (((this.startRow <= rowIndex) && (this.firstIndex <= this.startRow || rowIndex < this.firstIndex))
- || (this.startRow > rowIndex && this.firstIndex < this.startRow && rowIndex <= this.firstIndex)) {
+ || (this.startRow > rowIndex && this.firstIndex < this.startRow && rowIndex < this.firstIndex)) {
this.endRow = rowIndex;
} else {
this.endRow = this.startRow;
@@ -464,10 +464,10 @@
setSelection: function(range) {
var i = range[0];
range[1] = (range[1] + 1) % this.rowCount;
- while (i != range[1]) {
+ do {
this.addRowToSelection(i);
i = (i + 1) % this.rowCount;
- }
+ } while (i != range[1]);
while (i != range[0]) {
this.removeRowFromSelection(i);
i = (i + 1) % this.rowCount;
16 years, 4 months
JBoss Rich Faces SVN: r8373 - trunk/ui/calendar/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: vbaranov
Date: 2008-04-30 07:59:33 -0400 (Wed, 30 Apr 2008)
New Revision: 8373
Modified:
trunk/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
Log:
http://jira.jboss.com/jira/browse/RF-3186
Modified: trunk/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
===================================================================
--- trunk/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2008-04-30 11:42:41 UTC (rev 8372)
+++ trunk/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2008-04-30 11:59:33 UTC (rev 8373)
@@ -139,8 +139,10 @@
// in case the converter hasn't been set, try to use default DateTimeConverter
if (converter == null) {
- converter = createDefaultConverter(calendar);
+ converter = createDefaultConverter();
}
+ setupDefaultConverter(converter, calendar);
+
return converter.getAsObject(context, component, newValue);
}
@@ -197,7 +199,7 @@
if (converter == null) {
// If there is a converter attribute, use it to to ask application
- // instance for a converter with this identifer.
+ // instance for a converter with this identifier.
converter = calendar.getConverter();
}
@@ -221,10 +223,11 @@
// assume the model type to be String.
if (converter == null) {
// in case the converter hasn't been set, try to use default DateTimeConverter
- converter = createDefaultConverter(calendar);
+ converter = createDefaultConverter();
}
}
-
+ setupDefaultConverter(converter, calendar);
+
return converter.getAsString(context, calendar, currentValue);
}
@@ -250,13 +253,31 @@
*
* @return created converter
*/
- protected static Converter createDefaultConverter(UICalendar calendar) {
- DateTimeConverter defaultConverter = new DateTimeConverter();
- defaultConverter.setPattern(calendar.getDatePattern());
- defaultConverter.setLocale(calendar.getAsLocale(calendar.getLocale()));
- defaultConverter.setTimeZone(calendar.getTimeZone());
+ protected static Converter createDefaultConverter() {
+ return new DateTimeConverter();
+ }
+
+ /**
+ * Setup the default converter provided by JSF API
+ * (<code>DateTimeConverter</code>) with the component settings
+ * @param converter
+ * @param calendar
+ * @return
+ */
+ protected static Converter setupDefaultConverter(Converter converter, UICalendar calendar) {
+ // skip id converter is null
+ if(converter == null) {
+ return null;
+ }
- return defaultConverter;
+ if(converter instanceof DateTimeConverter) {
+ DateTimeConverter defaultConverter = (DateTimeConverter) converter;
+ defaultConverter.setPattern(calendar.getDatePattern());
+ defaultConverter.setLocale(calendar.getAsLocale(calendar.getLocale()));
+ defaultConverter.setTimeZone(calendar.getTimeZone());
+ }
+
+ return converter;
}
protected void doDecode(FacesContext context, UIComponent component) {
16 years, 4 months