JBoss Rich Faces SVN: r11523 - trunk/test-applications/facelets/src/main/webapp/DataScroller.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-12-03 11:10:46 -0500 (Wed, 03 Dec 2008)
New Revision: 11523
Modified:
trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScroller.xhtml
Log:
htmlDatascroller binding attribute
Modified: trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScroller.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScroller.xhtml 2008-12-03 15:09:42 UTC (rev 11522)
+++ trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScroller.xhtml 2008-12-03 16:10:46 UTC (rev 11523)
@@ -3,7 +3,7 @@
<rich:dataTable id="dataTableId" value="#{dataScroller.dataTable}" sortMode="#{dataScroller.sortMode}"
var="dT" cellpadding="5px" rows="5" border="1" reRender="dsID">
<f:facet name="header">
- <rich:datascroller inactiveStyle="#{style.inactiveStyle}" inactiveStyleClass="#{style.inactiveStyleClass}"
+ <rich:datascroller inactiveStyle="test" inactiveStyleClass="#{style.inactiveStyleClass}"
selectedStyle="#{style.selectedStyle}" selectedStyleClass="#{style.selectedStyleClass}" style="#{style.style}"
styleClass="#{style.styleClass}" tableStyle="#{style.tableStyle}" tableStyleClass="#{style.tableStyleClass}"
fastControls="#{dataScroller.fastControls}" action="#{dataScroller.act}" actionListener="#{dataScroller.actListener}"
@@ -18,7 +18,7 @@
onmousedown="#{event.onmousedown}"
onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}"
onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}" id="dsID"
- binding="#{dataScroller.htmlDataScroller}">
+ binding="#{dataScroller.htmlDatascroller}">
</rich:datascroller>
</f:facet>
<rich:column sortBy="#{dT.data0}" filterBy="#{dT.data0}" filterEvent="onchange"
16 years
JBoss Rich Faces SVN: r11522 - trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-12-03 10:09:42 -0500 (Wed, 03 Dec 2008)
New Revision: 11522
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
Log:
RF-5150
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2008-12-03 14:47:47 UTC (rev 11521)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2008-12-03 15:09:42 UTC (rev 11522)
@@ -39,10 +39,12 @@
static final String CONTROLS_FORM_ID = "_controls:";
static final String availableDayCellClass = "rich-calendar-cell-size rich-calendar-cell rich-calendar-btn";
-
+
String calendarId;
String calendarHeaderId;
+
+ String calendarFooterId;
String ajaxSubmitId;
@@ -53,15 +55,31 @@
String resetActionId;
String testClientModeId;
+
+ String timeSelectionXpath;
+
+ String timeHoursSelectionId;
+
+ String timeMinutesSelectionId;
+
+ String timeSelectionOkButtonId;
+
+ String timeSelectionCancelButtonId;
void initIds(String parentId) {
calendarId = parentId + FORM_ID + "calendar";
calendarHeaderId = calendarId + "Header";
+ calendarFooterId = calendarId + "Footer";
+ timeSelectionXpath = "//td[@id='"+calendarFooterId+"']/table/tbody/tr/td[3]/div";
ajaxSubmitId = parentId + FORM_ID + "ajaxSubmit";
serverSubmitId = parentId + FORM_ID + "serverSubmit";
statusId = parentId + FORM_ID + "status";
resetActionId = parentId + CONTROLS_FORM_ID + "resetAction";
testClientModeId = parentId + CONTROLS_FORM_ID + "testClientMode";
+ timeHoursSelectionId = calendarId + "TimeHours";
+ timeMinutesSelectionId = calendarId + "TimeMinutes";
+ timeSelectionOkButtonId = calendarId + "TimeEditorButtonOk";
+ timeSelectionCancelButtonId = calendarId + "TimeEditorButtonCancel";
}
String getStatus() {
@@ -107,8 +125,60 @@
void switchToClientMode() {
clickCommandAndWait(testClientModeId);
}
+
+ void showTimeSelectionWindow() {
+ selenium.click(timeSelectionXpath);
+ }
+
+ @Test
+ public void testTimeSelection(Template template) {
+ renderPage(template, RESET_METHOD);
+ initIds(getParentId());
+
+
+ // Test time selection appearing
+ showTimeSelectionWindow();
+ AssertVisible(calendarId + "TimeEditorLayout", "Time selection dialog was not opened");
+ AssertVisible(timeHoursSelectionId, "'Hour' input was not displayed");
+ AssertVisible(timeMinutesSelectionId, "'Minutes' input was not displayed");
+ AssertVisible(timeSelectionOkButtonId, "Time selection 'OK' button was not displayed");
+ AssertVisible(timeSelectionCancelButtonId, "Time selection 'Cancel' button was not displayed");
+
+ // Test time selection applying
+ setValueById(timeHoursSelectionId, "10");
+ setValueById(timeMinutesSelectionId, "00");
+ clickById(timeSelectionOkButtonId);
+ AssertNotVisible(calendarId + "TimeEditorLayout", "Time selection dialog was not hidden after 'Ok' button clicked");
+
+ String time = selenium.getText(timeSelectionXpath);
+ if (!"10:00".equals(time)) {
+ Assert.fail("Time selected has not been applied. Expected [10:00]. But was + [" + time+ "]");
+ }
+
+ // Test time cancel button
+ showTimeSelectionWindow();
+
+ setValueById(timeHoursSelectionId, "18");
+ setValueById(timeMinutesSelectionId, "50");
+ clickById(timeSelectionCancelButtonId);
+ AssertNotVisible(calendarId + "TimeEditorLayout", "Time selection dialog was not hidden after 'Cancel' button clicked");
+
+ time = selenium.getText(timeSelectionXpath);
+ if (!"10:00".equals(time)) {
+ Assert.fail("Time applied after cancel button clicked. Expected [10:00]. But was + [" + time+ "]");
+ }
+
+ // Test time applying in server side
+
+ clickCommandAndWait(serverSubmitId);
+ time = selenium.getText(timeSelectionXpath);
+ if (!"10:00".equals(time)) {
+ Assert.fail("Time was not applied on server side. Expected [10:00]. But was + [" + time+ "]");
+ }
+
+ }
- @Test
+ //@Test
public void testListenersInAjaxMode(Template template) {
renderPage(template, RESET_METHOD);
initIds(getParentId());
@@ -127,7 +197,7 @@
}
- @Test
+ //@Test
public void testListenersInClientMode(Template template) {
renderPage(template, RESET_METHOD);
initIds(getParentId());
16 years
JBoss Rich Faces SVN: r11521 - in trunk/ui/core/src: test/java/org/ajax4jsf/renderkit/html and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2008-12-03 09:47:47 -0500 (Wed, 03 Dec 2008)
New Revision: 11521
Modified:
trunk/ui/core/src/main/java/org/ajax4jsf/renderkit/html/HtmlCommandLinkRenderer.java
trunk/ui/core/src/test/java/org/ajax4jsf/renderkit/html/HtmlCommandLinkRendererTest.java
Log:
https://jira.jboss.org/jira/browse/RF-4812
Modified: trunk/ui/core/src/main/java/org/ajax4jsf/renderkit/html/HtmlCommandLinkRenderer.java
===================================================================
--- trunk/ui/core/src/main/java/org/ajax4jsf/renderkit/html/HtmlCommandLinkRenderer.java 2008-12-03 14:41:13 UTC (rev 11520)
+++ trunk/ui/core/src/main/java/org/ajax4jsf/renderkit/html/HtmlCommandLinkRenderer.java 2008-12-03 14:47:47 UTC (rev 11521)
@@ -36,9 +36,11 @@
import javax.faces.event.ActionEvent;
import org.ajax4jsf.Messages;
+import org.ajax4jsf.javascript.AjaxScript;
import org.ajax4jsf.javascript.JSFunction;
-import org.ajax4jsf.renderkit.RendererBase;
+import org.ajax4jsf.renderkit.HeaderResourcesRendererBase;
import org.ajax4jsf.renderkit.RendererUtils.HTML;
+import org.ajax4jsf.resource.InternetResource;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -49,14 +51,20 @@
* @author shura
*
*/
-public class HtmlCommandLinkRenderer extends RendererBase {
+public class HtmlCommandLinkRenderer extends HeaderResourcesRendererBase {
private static final Log _log = LogFactory.getLog(HtmlCommandLinkRenderer.class);
private static final String[] LINK_EXCLUSIONS = {"onclick","target","href"};
-
- /* (non-Javadoc)
- * @see org.ajax4jsf.renderkit.RendererBase#doDecode(javax.faces.context.FacesContext, javax.faces.component.UIComponent)
+
+ private InternetResource[] scripts = null;
+ private static final String FORM_SCRIPT = "/org/ajax4jsf/javascript/scripts/form.js";
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.ajax4jsf.renderkit.RendererBase#doDecode(javax.faces.context.FacesContext,
+ * javax.faces.component.UIComponent)
*/
protected void doDecode(FacesContext context, UIComponent component) {
UIForm form = getUtils().getNestingForm(context,component);
@@ -216,4 +224,15 @@
writer.writeText(valueString,null);
}
}
+
+ /* (non-Javadoc)
+ * @see org.ajax4jsf.renderkit.HeaderResourcesRendererBase#getScripts()
+ */
+ protected InternetResource[] getScripts() {
+ if (scripts == null) {
+ scripts = new InternetResource[1];
+ scripts[0] = getResource(FORM_SCRIPT);
+ }
+ return scripts;
+ }
}
Modified: trunk/ui/core/src/test/java/org/ajax4jsf/renderkit/html/HtmlCommandLinkRendererTest.java
===================================================================
--- trunk/ui/core/src/test/java/org/ajax4jsf/renderkit/html/HtmlCommandLinkRendererTest.java 2008-12-03 14:41:13 UTC (rev 11520)
+++ trunk/ui/core/src/test/java/org/ajax4jsf/renderkit/html/HtmlCommandLinkRendererTest.java 2008-12-03 14:47:47 UTC (rev 11521)
@@ -21,16 +21,30 @@
package org.ajax4jsf.renderkit.html;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Set;
+
import javax.faces.component.UIForm;
import javax.faces.component.html.HtmlCommandLink;
import javax.faces.component.html.HtmlForm;
import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
+import org.apache.commons.lang.StringUtils;
import com.gargoylesoftware.htmlunit.html.HtmlElement;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
+import com.gargoylesoftware.htmlunit.html.HtmlScript;
public class HtmlCommandLinkRendererTest extends AbstractAjax4JsfTestCase {
+ /** Set with required javascripts for Editor */
+ private static Set<String> javaScripts = new HashSet<String>();
+
+ static {
+ javaScripts.add("org/ajax4jsf/javascript/scripts/form.js");
+ }
+
private UIForm form = null;
private HtmlCommandLink link1 = null;
private HtmlCommandLink link2 = null;
@@ -92,5 +106,34 @@
assertNotNull(disabled);
assertEquals("disabled", disabled);
}
+
+ /**
+ * Method to test if required scripts is present on page
+ * @throws Exception
+ */
+ @SuppressWarnings("unchecked")
+ public void testLinkScripts() throws Exception {
+ HtmlPage page = renderView();
+ assertNotNull(page);
+
+ List scripts = page.getDocumentHtmlElement().getHtmlElementsByTagName(
+ "script");
+ for (Iterator it = scripts.iterator(); it.hasNext();) {
+ HtmlScript item = (HtmlScript) it.next();
+ String srcAttr = item.getSrcAttribute();
+ if (StringUtils.isNotBlank(srcAttr)) {
+ boolean found = false;
+ for (Iterator srcIt = javaScripts.iterator(); srcIt.hasNext();) {
+ String src = (String) srcIt.next();
+ found = srcAttr.contains(src);
+ if (found) {
+ break;
+ }
+ }
+ assertTrue(found);
+ }
+ }
+ }
+
}
16 years
JBoss Rich Faces SVN: r11520 - in trunk/ui/inplaceSelect/src/main: templates and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-12-03 09:41:13 -0500 (Wed, 03 Dec 2008)
New Revision: 11520
Modified:
trunk/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java
trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
Log:
https://jira.jboss.org/jira/browse/RF-3233
Modified: trunk/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java
===================================================================
--- trunk/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java 2008-12-03 14:40:36 UTC (rev 11519)
+++ trunk/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java 2008-12-03 14:41:13 UTC (rev 11520)
@@ -27,7 +27,6 @@
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
-import javax.faces.context.ResponseWriter;
import javax.faces.model.SelectItem;
import org.ajax4jsf.util.InputUtils;
Modified: trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
===================================================================
--- trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-12-03 14:40:36 UTC (rev 11519)
+++ trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-12-03 14:41:13 UTC (rev 11520)
@@ -67,6 +67,23 @@
variables.setVariable("controlHoveredClass", controlHoveredClass);
String controlPressedClass = (String)component.getAttributes().get("controlPressedClass");
variables.setVariable("controlPressedClass", controlPressedClass);
+
+ String styleClass = (String)component.getAttributes().get("styleClass");
+ styleClass = styleClass != null ? styleClass.trim() : "";
+ variables.setVariable("styleClass", styleClass);
+
+ String changedClass = (String)component.getAttributes().get("changedClass");
+ changedClass = (changedClass != null ? changedClass.trim() : "") + styleClass;
+ variables.setVariable("changedClass", changedClass);
+
+ String viewClass = (String)component.getAttributes().get("viewClass");
+ viewClass = (viewClass != null ? viewClass.trim() : "") + styleClass;
+ variables.setVariable("viewClass", viewClass);
+
+ String editClass = (String)component.getAttributes().get("editClass");
+ editClass = (editClass != null ? editClass.trim() : "") + styleClass;
+ variables.setVariable("editClass", editClass);
+
String layout = (String)component.getAttributes().get("layout");
if (layout != null && layout.length() != 0) {
@@ -85,11 +102,11 @@
<jsp:scriptlet>
if (layout.equals("inline")) {
</jsp:scriptlet>
- <span id="#{clientId}" class="rich-inplace-select rich-inplace-select-view #{component.attributes['viewClass']}" x:passThruWithExclusions="id,styleClass,class" style="zoom: 1; #{component.attributes['style']}">
+ <span id="#{clientId}" class="rich-inplace-select rich-inplace-select-view #{viewClass}" x:passThruWithExclusions="id,styleClass,class" style="zoom: 1; #{component.attributes['style']}">
<jsp:scriptlet>
} else {
</jsp:scriptlet>
- <div id="#{clientId}" class="rich-inplace-select rich-inplace-select-view #{component.attributes['viewClass']}" x:passThruWithExclusions="id,styleClass,class" style="zoom: 1; #{component.attributes['style']}">
+ <div id="#{clientId}" class="rich-inplace-select rich-inplace-select-view #{viewClass}" x:passThruWithExclusions="id,styleClass,class" style="zoom: 1; #{component.attributes['style']}">
<jsp:scriptlet>
}
</jsp:scriptlet>
@@ -200,6 +217,8 @@
</div>
</div>
</div>
+
+
<script type="text/javascript">
@@ -211,9 +230,9 @@
},
component: {
- changed :{normal:'#{component.attributes["changedClass"]}',hovered:'#{component.attributes["changedHoverClass"]}'},
- view : {normal:'#{component.attributes["viewClass"]}',hovered:'#{component.attributes["viewHoverClass"]}'},
- editable:'#{component.attributes["editClass"]}'
+ changed :{normal:'#{changedClass}' ,hovered:'#{component.attributes["changedHoverClass"]}'},
+ view : {normal:'#{viewClass}',hovered:'#{component.attributes["viewHoverClass"]}'},
+ editable:'#{editClass}'
}
};
16 years
JBoss Rich Faces SVN: r11519 - trunk/ui/inplaceInput/src/main/templates.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-12-03 09:40:36 -0500 (Wed, 03 Dec 2008)
New Revision: 11519
Modified:
trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx
Log:
https://jira.jboss.org/jira/browse/RF-3233
Modified: trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx
===================================================================
--- trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-12-03 14:33:56 UTC (rev 11518)
+++ trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-12-03 14:40:36 UTC (rev 11519)
@@ -61,6 +61,22 @@
variables.setVariable("controlHoverClass", controlHoverClass);
String controlPressedClass = (String)component.getAttributes().get("controlPressedClass");
variables.setVariable("controlPressedClass", controlPressedClass);
+
+ String styleClass = (String)component.getAttributes().get("styleClass");
+ styleClass = styleClass != null ? styleClass.trim() : "";
+ variables.setVariable("styleClass", styleClass);
+
+ String changedClass = (String)component.getAttributes().get("changedClass");
+ changedClass = (changedClass != null ? changedClass.trim() : "") + styleClass;
+ variables.setVariable("changedClass", changedClass);
+
+ String viewClass = (String)component.getAttributes().get("viewClass");
+ viewClass = (viewClass != null ? viewClass.trim() : "") + styleClass;
+ variables.setVariable("viewClass", viewClass);
+
+ String editClass = (String)component.getAttributes().get("editClass");
+ editClass = (editClass != null ? editClass.trim() : "") + styleClass;
+ variables.setVariable("editClass", editClass);
String layout = (String)component.getAttributes().get("layout");
if (layout != null && layout.length() != 0) {
@@ -75,12 +91,12 @@
]]>
</jsp:scriptlet>
- <span id="#{clientId}" class='rich-inplace rich-inplace-view #{component.attributes["styleClass"]}'
+ <span id="#{clientId}" class='rich-inplace rich-inplace-view #{viewClass}'
x:passThruWithExclusions="id,styleClass,class" style="zoom: 1; #{component.attributes['style']}">
<jsp:scriptlet>
} else {
</jsp:scriptlet>
- <div id="#{clientId}" class='rich-inplace rich-inplace-view #{component.attributes["viewClass"]} #{component.attributes["styleClass"]}'
+ <div id="#{clientId}" class='rich-inplace rich-inplace-view #{viewClass}'
x:passThruWithExclusions="id,styleClass,class" style="zoom: 1; #{component.attributes['style']}">
<jsp:scriptlet>
}
@@ -168,14 +184,14 @@
var inplaceInputUserStyles = {
component:{
view :{
- normal:'#{component.attributes["viewClass"]}',
+ normal:'#{viewClass}',
hovered:'#{component.attributes["viewHoverClass"]}'
},
changed:{
- normal:'#{component.attributes["changedClass"]}',
+ normal:'#{changedClass}',
hovered:'#{component.attributes["changedHoverClass"]}'
},
- editable:'#{component.attributes["editClass"]}'
+ editable:'#{editClass}'
}
};
16 years
JBoss Rich Faces SVN: r11518 - in trunk/test-applications/seleniumTest/richfaces/src/test: testng/win and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2008-12-03 09:33:56 -0500 (Wed, 03 Dec 2008)
New Revision: 11518
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java
trunk/test-applications/seleniumTest/richfaces/src/test/testng/win/local_testng.xml
Log:
RF-5197
only for test
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java 2008-12-03 14:11:04 UTC (rev 11517)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java 2008-12-03 14:33:56 UTC (rev 11518)
@@ -123,7 +123,8 @@
}
config.setUserExtensions(new File(getClass().getClassLoader().getResource("script/selenium/user-extensions.js").toURI()));
config.setMultiWindow(false);
-
+ //TODO only for test
+ config.setPort(16334);
seleniumServer = new SeleniumServer(false, config);
seleniumServer.start();
}
@@ -218,7 +219,7 @@
* @return
*/
private DefaultSelenium createSeleniumClient(String url, String browser) {
- return new DefaultSelenium(host, 4444, browser, url);
+ return new DefaultSelenium(host, 16334, browser, url);
}
private static final Object MUTEX = new Object();
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/testng/win/local_testng.xml
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/testng/win/local_testng.xml 2008-12-03 14:11:04 UTC (rev 11517)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/testng/win/local_testng.xml 2008-12-03 14:33:56 UTC (rev 11518)
@@ -1,18 +1,16 @@
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="seleniumTest">
- <parameter name="loadStyleStrategy" value="DEFAULT"/>
- <parameter name="loadScriptStrategy" value="DEFAULT"/>
- <parameter name="filterPrefix" value="/faces/NONE/"/>
-
- <test name="FireFoxFunctionalTests">
+ <test name="IEFunctionalTests">
<parameter name="browser" value="*firefox"/>
+ <parameter name="loadStyleStrategy" value="DEFAULT"/>
+ <parameter name="loadScriptStrategy" value="DEFAULT"/>
+ <parameter name="filterPrefix" value="/faces/NONE/"/>
<classes>
<class name="org.richfaces.testng.MessageTest">
- <!--methods>
- <include name="testValidators" />
- </methods-->
+ <methods>
+ <include name="testHTMLAttributes" />
+ </methods>
</class>
</classes>
</test>
</suite>
-
16 years
JBoss Rich Faces SVN: r11517 - trunk/test-applications/seleniumTest/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2008-12-03 09:11:04 -0500 (Wed, 03 Dec 2008)
New Revision: 11517
Modified:
trunk/test-applications/seleniumTest/richfaces/pom.xml
Log:
RF-5197
only for test
Modified: trunk/test-applications/seleniumTest/richfaces/pom.xml
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/pom.xml 2008-12-03 13:55:09 UTC (rev 11516)
+++ trunk/test-applications/seleniumTest/richfaces/pom.xml 2008-12-03 14:11:04 UTC (rev 11517)
@@ -61,14 +61,14 @@
${project.build.directory}/test-classes/testng/testng_default_default_neko.xml
</suiteXmlFile-->
<suiteXmlFile>
- ${project.build.directory}/test-classes/testng/local_testng.xml
+ src/test/testng/win/local_testng.xml
</suiteXmlFile>
</suiteXmlFiles>
- <properties>
+ <properties>
<property>
<name>listener</name>
<value>org.richfaces.TestAnnotationTransformer</value>
- </property>
+ </property>
</properties>
</configuration>
<executions>
16 years
JBoss Rich Faces SVN: r11516 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-12-03 08:55:09 -0500 (Wed, 03 Dec 2008)
New Revision: 11516
Modified:
trunk/docs/userguide/en/src/main/docbook/included/queue.xml
Log:
RF-4664 - Descriptions of the attributes and the new information in the "Key attributes and ways of usage" section have been added;
Modified: trunk/docs/userguide/en/src/main/docbook/included/queue.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/queue.xml 2008-12-03 13:54:35 UTC (rev 11515)
+++ trunk/docs/userguide/en/src/main/docbook/included/queue.xml 2008-12-03 13:55:09 UTC (rev 11516)
@@ -56,12 +56,99 @@
<programlisting role="JAVA"><![CDATA[import org.ajax4jsf.component.html.HtmlQueue;
...
HtmlQueue myQueue = new HtmlQueue();
-...]]></programlisting>
+]]></programlisting>
</section>
<section>
<title>Key attributes and ways of usage</title>
-
+ <para>By means of the <emphasis role="bold"><property><a4j:queue></property></emphasis> component a user can create several types of queues associated with it.</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ A user can set a queue globally in "web.xml". You don't need set the queue on the page itself. The global queue can be used by all components. Example you can see below:
+ </para>
+ <programlisting role="XML"><![CDATA[<context-param>
+ <param-name>org.richfaces.queue.global.enabled</param-name>
+ <param-value>true</param-value>
+ </context-param>]]></programlisting>
+ <para>
+ The global queue can be disabled for specifically view's application.
+ </para>
+ <para>
+ In order to enable/disable a global queue see the following examples:
+ </para>
+ <programlisting role="XML"><![CDATA[<a4j:queue name="org.richfaces.global_queue" disabled="false"... />]]></programlisting>
+ <para>
+ or:
+ </para>
+ <programlisting role="XML"><![CDATA[<a4j:queue name="org.richfaces.global_queue" disabled="true"... />]]></programlisting>
+ </listitem>
+ <listitem>
+ <para>
+ A user can create separate queue for specific form with the help of the <emphasis role="bold"><property><a4j:form></property></emphasis> or <emphasis role="bold"><property><h:form></property></emphasis> tags.
+ It will be the global queue only for this form.
+ </para>
+ <para>
+ <emphasis role="bold">
+ Example:
+ </emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[<h:form ... >
+ ...
+ <a4j:queue ... />
+ ...
+ </h:form>]]></programlisting>
+ <para>
+ or:
+ </para>
+ <para>
+ <emphasis role="bold">
+ Example:
+ </emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[<a4j:form ... >
+ ...
+ <a4j:queue <a4j:queue name="fooQueue" ... />
+ ...
+</a4j:form>]]></programlisting>
+ <para>If you use <emphasis role="bold"><property><a4j:form></property></emphasis> tag, you can reference a named queue as the form's default.</para>
+ <para>
+ <emphasis role="bold">
+ Example:
+ </emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[<a4j:form eventsQueue="fooQueue" ...>
+ ...
+ </a4j:form>]]></programlisting>
+ </listitem>
+ <listitem>
+ <para>With the help of the <emphasis><property>"eventsQueue"</property></emphasis> attribute a user can reference a named queue from any <emphasis role="bold"><property>a4j</property></emphasis> or <emphasis role="bold"><property>rich</property></emphasis> component that supports this attribute.</para>
+ <para>
+ <emphasis role="bold">
+ Example:
+ </emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[<a4j:queue name="fooQueue" ... />
+...
+<h:inputText value="#{foo2.bar1}">
+ <a:support id="onblur" event="onblur" reRender="bar21" eventsQueue="fooQueue"/>
+</h:inputText>
+
+<a4j:commandButton eventsQueue="fooQueue" ... >]]></programlisting>
+ <para>
+ As a result all requests generated through the onblur of the <emphasis><property><h:inputText></property></emphasis> component, and clicking of the <emphasis><property><h:commandButton></property></emphasis> will be funneled through the <code>"fooQueue"</code>.
+ </para>
+ <para>
+ If you have a try to reference a nonexistent queue a new named queue will be created with all default settings.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The <emphasis><property>"size"</property></emphasis> attribute help you to set the number of items allowed in the queue at one time.
+ </para>
+ <para>
+
+ </para>
</section>
<section>
16 years
JBoss Rich Faces SVN: r11515 - trunk/ui/core/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-12-03 08:54:35 -0500 (Wed, 03 Dec 2008)
New Revision: 11515
Modified:
trunk/ui/core/src/main/config/component/queue.xml
Log:
RF-4664 - Descriptions of the attributes and the new information in the "Key attributes and ways of usage" section have been added;
Modified: trunk/ui/core/src/main/config/component/queue.xml
===================================================================
--- trunk/ui/core/src/main/config/component/queue.xml 2008-12-03 13:40:25 UTC (rev 11514)
+++ trunk/ui/core/src/main/config/component/queue.xml 2008-12-03 13:54:35 UTC (rev 11515)
@@ -31,53 +31,68 @@
<property>
<name>size</name>
<classname>int</classname>
+ <description>Defines the number of items allowed in the queue at one time.</description>
</property>
<property>
<name>name</name>
<classname>java.lang.String</classname>
+ <description>The optional name of this component</description>
<defaultvalue>""</defaultvalue>
</property>
<property >
<name>requestDelay</name>
<classname>int</classname>
+ <description>Attribute defines the time (in ms.) that the request will be wait in the queue before it is ready to send.
+ When the delay time is over, the request will be sent to the server or removed if the newest 'similar' request is in a queue already</description>
</property>
<property>
<name>ignoreDupResponses</name>
<classname>boolean</classname>
+ <description>Attribute allows to ignore an Ajax Response produced by a request if the newest 'similar' request is in a queue already.
+ ignoreDupResponses="true" does not cancel the request while it is processed on the server, but just allows to avoid unnecessary updates on the client side if the response isn't actual now</description>
</property>
<property>
<name>timeout</name>
<classname>int</classname>
+ <description>Response waiting time on a particular request. If a response is not received during this time, the request is aborted</description>
</property>
<property>
<name>disabled</name>
<classname>boolean</classname>
+ <description>If "true", disable this component on page.</description>
</property>
<property>
<name>onsubmit</name>
<classname>java.lang.String</classname>
+ <description>JavaScript code for call before submission of ajax event</description>
</property>
<property>
<name>onbeforedomupdate</name>
<classname>java.lang.String</classname>
+ <description>JavaScript code for call before DOM has been updated on client side</description>
</property>
<property>
<name>oncomplete</name>
<classname>java.lang.String</classname>
+ <description>JavaScript code for call after request completed on client side</description>
</property>
<property>
<name>onerror</name>
<classname>java.lang.String</classname>
+ <description>HTML: a script expression; event fires whenever an JavaScript error occurs</description>
</property>
<property>
<name>sizeExceededBehavior</name>
<classname>java.lang.String</classname>
+ <description>Defines the strategies of the queue's behavior if the number of the requests waiting in the queue is exceeded.
+ There are four strategies: dropNext (by default), dropNew, fireNext , fireNew.</description>
</property>
<property>
<name>onsizeexceeded</name>
<classname>java.lang.String</classname>
+ <description>A script expression; a size is exceed</description>
</property>
<property hidden="true">
16 years
JBoss Rich Faces SVN: r11514 - trunk/test-applications/seleniumTest/richfaces/src/test/testng/win.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2008-12-03 08:40:25 -0500 (Wed, 03 Dec 2008)
New Revision: 11514
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/testng/win/local_testng.xml
Log:
RF-5197
only for test
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/testng/win/local_testng.xml
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/testng/win/local_testng.xml 2008-12-03 13:29:52 UTC (rev 11513)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/testng/win/local_testng.xml 2008-12-03 13:40:25 UTC (rev 11514)
@@ -1,16 +1,18 @@
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
-<suite name="seleniumTestDDNo">
- <test name="IEFunctionalTests">
+<suite name="seleniumTest">
+ <parameter name="loadStyleStrategy" value="DEFAULT"/>
+ <parameter name="loadScriptStrategy" value="DEFAULT"/>
+ <parameter name="filterPrefix" value="/faces/NONE/"/>
+
+ <test name="FireFoxFunctionalTests">
<parameter name="browser" value="*firefox"/>
- <parameter name="loadStyleStrategy" value="DEFAULT"/>
- <parameter name="loadScriptStrategy" value="DEFAULT"/>
- <parameter name="filterPrefix" value="/faces/NONE/"/>
<classes>
<class name="org.richfaces.testng.MessageTest">
- <methods>
- <include name="testHTMLAttributes" />
- </methods>
+ <!--methods>
+ <include name="testValidators" />
+ </methods-->
</class>
</classes>
</test>
</suite>
+
16 years