JBoss Rich Faces SVN: r2815 - trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-09-07 13:00:52 -0400 (Fri, 07 Sep 2007)
New Revision: 2815
Modified:
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-selection.js
Log:
fix 582
Modified: trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-selection.js
===================================================================
--- trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-selection.js 2007-09-07 15:57:14 UTC (rev 2814)
+++ trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-selection.js 2007-09-07 17:00:52 UTC (rev 2815)
@@ -17,7 +17,11 @@
if (this.tree.input.value)
{
var e = $(this.tree.input.value);
- if (e) this.setSelection(e.object);
+ if (e)
+ {
+ this.inFocus = true;
+ this.setSelection(e.object);
+ }
}
},
18 years, 8 months
JBoss Rich Faces SVN: r2814 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-09-07 11:57:14 -0400 (Fri, 07 Sep 2007)
New Revision: 2814
Modified:
trunk/docs/userguide/en/src/main/docbook/included/changeExpandListener.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/changeExpandListener.xml
trunk/docs/userguide/en/src/main/docbook/included/dataDefinitionList.xml
trunk/docs/userguide/en/src/main/docbook/included/dataList.xml
trunk/docs/userguide/en/src/main/docbook/included/dataOrderedList.xml
trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml
trunk/docs/userguide/en/src/main/docbook/included/dragListener.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/dropListener.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/messages.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/nodeSelectListener.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml
trunk/docs/userguide/en/src/main/docbook/included/status.xml
Log:
http://jira.jboss.com/jira/browse/RF-398
spelling and gramma mistakes are corrected
Modified: trunk/docs/userguide/en/src/main/docbook/included/changeExpandListener.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/changeExpandListener.desc.xml 2007-09-07 15:18:35 UTC (rev 2813)
+++ trunk/docs/userguide/en/src/main/docbook/included/changeExpandListener.desc.xml 2007-09-07 15:57:14 UTC (rev 2814)
@@ -9,14 +9,14 @@
<section>
<title>Description</title>
<para>The <emphasis role="bold"><property><rich:changeExpandListener></property></emphasis>
- represents an action listener method that will be notified on expand/collapse event on the node.
+ represents an action listener method that is notified on an expand/collapse event on the node.
</para>
</section>
<section>
<title>Key Features</title>
<itemizedlist>
- <listitem>Allows to define some "changeExpand" listeners for component</listitem>
+ <listitem>Allows to define some "changeExpand" listeners for the component</listitem>
</itemizedlist>
</section>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/changeExpandListener.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/changeExpandListener.xml 2007-09-07 15:18:35 UTC (rev 2813)
+++ trunk/docs/userguide/en/src/main/docbook/included/changeExpandListener.xml 2007-09-07 15:57:14 UTC (rev 2814)
@@ -68,11 +68,11 @@
<title>Key attributes and ways of usage</title>
<para>
-The <property><rich:changeExpandListener></property> is used as nested tag with <property><rich:tree></property>
+The <property><rich:changeExpandListener></property> is used as a nested tag with <property><rich:tree></property>
and <property><rich:treeNode></property> components.
</para>
<para>
-Attribute <emphasis><property>"type"</property></emphasis> defines the fully qualified Java class name for listener.
+Attribute <emphasis><property>"type"</property></emphasis> defines the fully qualified Java class name for the listener.
This class should implement org.richfaces.event.NodeExpandedListener interface.
</para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataDefinitionList.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataDefinitionList.xml 2007-09-07 15:18:35 UTC (rev 2813)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataDefinitionList.xml 2007-09-07 15:57:14 UTC (rev 2814)
@@ -137,7 +137,7 @@
<tbody>
<row>
<entry>rich-deflist</entry>
- <entry>Wrapping class for component</entry>
+ <entry>Wrapping class for the component</entry>
</row>
<row>
<entry>rich-definition</entry>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataList.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataList.xml 2007-09-07 15:18:35 UTC (rev 2813)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataList.xml 2007-09-07 15:57:14 UTC (rev 2814)
@@ -136,7 +136,7 @@
<tbody>
<row>
<entry>rich-datalist</entry>
- <entry>Wrapping class for component</entry>
+ <entry>Wrapping class for the component</entry>
</row>
<row>
<entry>rich-list-item</entry>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataOrderedList.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataOrderedList.xml 2007-09-07 15:18:35 UTC (rev 2813)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataOrderedList.xml 2007-09-07 15:57:14 UTC (rev 2814)
@@ -137,7 +137,7 @@
<tbody>
<row>
<entry>rich-datalist</entry>
- <entry>Wrapping class for component</entry>
+ <entry>Wrapping class for the component</entry>
</row>
<row>
<entry>rich-list-item</entry>
Modified: trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml 2007-09-07 15:18:35 UTC (rev 2813)
+++ trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml 2007-09-07 15:57:14 UTC (rev 2814)
@@ -350,7 +350,7 @@
<tbody>
<row>
<entry>rich-dtascroller-table</entry>
- <entry>Wrapping class for component</entry>
+ <entry>Wrapping class for the component</entry>
</row>
<row>
<entry>Rich-datascr-button</entry>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dragListener.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dragListener.desc.xml 2007-09-07 15:18:35 UTC (rev 2813)
+++ trunk/docs/userguide/en/src/main/docbook/included/dragListener.desc.xml 2007-09-07 15:57:14 UTC (rev 2814)
@@ -16,7 +16,7 @@
<section>
<title>Key Features</title>
<itemizedlist>
- <listitem>Allows to define some drag listeners for components with "Drag and Drop" support</listitem>
+ <listitem>Allows to define some drag listeners for the components with "Drag and Drop" support</listitem>
</itemizedlist>
</section>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dropListener.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dropListener.desc.xml 2007-09-07 15:18:35 UTC (rev 2813)
+++ trunk/docs/userguide/en/src/main/docbook/included/dropListener.desc.xml 2007-09-07 15:57:14 UTC (rev 2814)
@@ -16,7 +16,7 @@
<section>
<title>Key Features</title>
<itemizedlist>
- <listitem>Allows to define some drop listeners for components with "Drag and Drop" support</listitem>
+ <listitem>Allows to define some drop listeners for the components with "Drag and Drop" support</listitem>
</itemizedlist>
</section>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/messages.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/messages.desc.xml 2007-09-07 15:18:35 UTC (rev 2813)
+++ trunk/docs/userguide/en/src/main/docbook/included/messages.desc.xml 2007-09-07 15:57:14 UTC (rev 2814)
@@ -11,7 +11,7 @@
<property><rich:messages></property>
</emphasis> component is similar to <emphasis role="bold">
<property><rich:message></property>
- </emphasis> component but used for rendering all messages for components.</para>
+ </emphasis> component but used for rendering all messages for the components.</para>
<figure>
<title>Message component</title>
<mediaobject>
Modified: trunk/docs/userguide/en/src/main/docbook/included/nodeSelectListener.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/nodeSelectListener.desc.xml 2007-09-07 15:18:35 UTC (rev 2813)
+++ trunk/docs/userguide/en/src/main/docbook/included/nodeSelectListener.desc.xml 2007-09-07 15:57:14 UTC (rev 2814)
@@ -16,7 +16,7 @@
<section>
<title>Key Features</title>
<itemizedlist>
- <listitem>Allows to define some "nodeSelect" listeners for component</listitem>
+ <listitem>Allows to define some "nodeSelect" listeners for the component</listitem>
</itemizedlist>
</section>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml 2007-09-07 15:18:35 UTC (rev 2813)
+++ trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml 2007-09-07 15:57:14 UTC (rev 2814)
@@ -370,7 +370,7 @@
<row>
<entry>rich-sdt</entry>
- <entry>Defines the styles for component appearance</entry>
+ <entry>Defines the styles for the component appearance</entry>
</row>
</tbody>
Modified: trunk/docs/userguide/en/src/main/docbook/included/status.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/status.xml 2007-09-07 15:18:35 UTC (rev 2813)
+++ trunk/docs/userguide/en/src/main/docbook/included/status.xml 2007-09-07 15:57:14 UTC (rev 2814)
@@ -71,7 +71,7 @@
</section>
<section>
<title>Key attributes and ways of usage</title>
- <para>There are two ways for components or containers definition, which Ajax requests status is tracked by a component.<itemizedlist>
+ <para>There are two ways for the components or containers definition, which Ajax requests status is tracked by a component.<itemizedlist>
<listitem>
Definition with the <emphasis >
<property>"for"</property>
18 years, 8 months
JBoss Rich Faces SVN: r2813 - trunk/ui/core/src/test/java/org/ajax4jsf/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-09-07 11:18:35 -0400 (Fri, 07 Sep 2007)
New Revision: 2813
Added:
trunk/ui/core/src/test/java/org/ajax4jsf/renderkit/html/AjaxFormRendererTest.java
Log:
JUnit test for AjaxFormRenderer class.
Added: trunk/ui/core/src/test/java/org/ajax4jsf/renderkit/html/AjaxFormRendererTest.java
===================================================================
--- trunk/ui/core/src/test/java/org/ajax4jsf/renderkit/html/AjaxFormRendererTest.java (rev 0)
+++ trunk/ui/core/src/test/java/org/ajax4jsf/renderkit/html/AjaxFormRendererTest.java 2007-09-07 15:18:35 UTC (rev 2813)
@@ -0,0 +1,162 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.ajax4jsf.renderkit.html;
+
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Set;
+
+import org.ajax4jsf.component.UIAjaxForm;
+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 AjaxFormRendererTest extends AbstractAjax4JsfTestCase {
+ private static Set javaScripts = new HashSet();
+
+ static {
+ javaScripts.add("org.ajax4jsf.javascript.AjaxScript");
+ javaScripts.add("org/ajax4jsf/javascript/scripts/form.js");
+ }
+
+ private UIAjaxForm form1;
+ private UIAjaxForm form2;
+
+ public AjaxFormRendererTest(String name) {
+ super(name);
+ }
+
+ public void setUp() throws Exception {
+ super.setUp();
+
+ form1 = (UIAjaxForm) application.createComponent(UIAjaxForm.COMPONENT_TYPE);
+ form1.setId("form1");
+ form1.setAjaxSubmit(true);
+
+ form2 = (UIAjaxForm) application.createComponent(UIAjaxForm.COMPONENT_TYPE);
+ form2.setId("form2");
+ form2.setAjaxSubmit(false);
+
+ facesContext.getViewRoot().getChildren().add(form1);
+ facesContext.getViewRoot().getChildren().add(form2);
+ }
+
+ public void tearDown() throws Exception {
+ super.tearDown();
+ }
+
+ /**
+ * Test script rendering
+ *
+ * @throws Exception
+ */
+ public void testRenderScript() throws Exception {
+ HtmlPage page = renderView();
+ assertNotNull(page);
+ System.out.println(page.asXml());
+
+ List scripts = page.getDocumentElement().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);
+ }
+ }
+ }
+
+ /**
+ * Test rendering
+ *
+ * @throws Exception
+ */
+ public void testRender() throws Exception {
+ HtmlPage page = renderView();
+ assertNotNull(page);
+
+ HtmlElement htmlForm1 = page.getHtmlElementById(form1.getClientId(facesContext));
+ assertNotNull(htmlForm1);
+ assertEquals("form", htmlForm1.getTagName());
+
+ String action = htmlForm1.getAttributeValue("action");
+ assertNotNull(action);
+ assertTrue(action.startsWith("javascript:A4J.AJAX.SubmitForm"));
+
+ HtmlElement htmlForm2 = page.getHtmlElementById(form2.getClientId(facesContext));
+ assertNotNull(htmlForm2);
+ assertEquals("form", htmlForm2.getTagName());
+
+ action = htmlForm2.getAttributeValue("action");
+ assertNotNull(action);
+ assertTrue(action.startsWith("/"));
+ }
+
+ /**
+ * Test rendering hidden inputs
+ *
+ * @throws Exception
+ */
+ public void testRenderHiddenInputs() throws Exception {
+ HtmlPage page = renderView();
+ assertNotNull(page);
+
+ HtmlElement htmlForm1 = page.getHtmlElementById(form1.getClientId(facesContext));
+ List inputs = htmlForm1.getHtmlElementsByTagName("input");
+ assertNotNull(inputs);
+ boolean foundId = false;
+ boolean foundAutoscroll = false;
+ for (Iterator it = inputs.iterator(); it.hasNext();) {
+ HtmlElement input = (HtmlElement) it.next();
+ String name = input.getAttributeValue("name");
+ assertNotNull(name);
+ if (!foundId && name.equals(form1.getClientId(facesContext))) {
+ foundId = true;
+ }
+ if (!foundAutoscroll && name.equals("autoScroll")) {
+ foundAutoscroll = true;
+ }
+ }
+ assertTrue(foundId);
+ assertTrue(foundAutoscroll);
+
+ HtmlElement htmlForm2 = page.getHtmlElementById(form2.getClientId(facesContext));
+ assertNotNull(htmlForm2);
+ assertEquals("form", htmlForm2.getTagName());
+
+ }
+}
18 years, 8 months
JBoss Rich Faces SVN: r2812 - trunk/ui/core/src/test/java/org/ajax4jsf/component.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-09-07 11:15:57 -0400 (Fri, 07 Sep 2007)
New Revision: 2812
Added:
trunk/ui/core/src/test/java/org/ajax4jsf/component/UIAjaxFormTest.java
Log:
JUnit tests for UIAjaxForm
Added: trunk/ui/core/src/test/java/org/ajax4jsf/component/UIAjaxFormTest.java
===================================================================
--- trunk/ui/core/src/test/java/org/ajax4jsf/component/UIAjaxFormTest.java (rev 0)
+++ trunk/ui/core/src/test/java/org/ajax4jsf/component/UIAjaxFormTest.java 2007-09-07 15:15:57 UTC (rev 2812)
@@ -0,0 +1,112 @@
+package org.ajax4jsf.component;
+
+import java.io.Serializable;
+
+import javax.faces.component.UICommand;
+import javax.faces.component.UIComponent;
+import javax.faces.component.UIInput;
+import javax.faces.context.FacesContext;
+import javax.faces.convert.IntegerConverter;
+import javax.faces.event.ActionEvent;
+import javax.faces.validator.Validator;
+
+import org.ajax4jsf.component.ActionListenerTest.Bean;
+import org.ajax4jsf.event.AjaxEvent;
+import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
+import org.richfaces.event.DataScrollerEvent;
+import org.richfaces.event.DataScrollerListener;
+
+import com.gargoylesoftware.htmlunit.html.HtmlPage;
+
+public class UIAjaxFormTest extends AbstractAjax4JsfTestCase {
+
+ private UIAjaxForm ajaxForm;
+ private UIInput child;
+ private boolean result;
+ private int childInvoked;
+
+ public UIAjaxFormTest(String name) {
+ super(name);
+ }
+
+ public void setUp() throws Exception {
+
+ super.setUp();
+ ajaxForm = (UIAjaxForm) application
+ .createComponent(UIAjaxForm.COMPONENT_TYPE);
+ ajaxForm.setId("form");
+
+ child = new UIInput() {
+ public void processDecodes(FacesContext context) {
+ childInvoked++;
+ super.processDecodes(context);
+ }
+ };
+ child.setId("input");
+ child.addValidator(new TestAjaxFormValidator());
+ childInvoked = 0;
+ child.setId("child");
+ ajaxForm.getChildren().add(child);
+ facesContext.getViewRoot().getChildren().add(ajaxForm);
+ }
+
+ public void testTest() throws Exception {
+
+ HtmlPage page = renderView();
+ // System.out.println(page.asXml());
+ }
+
+ public void testProcessDecodes() throws Exception {
+
+ facesContext.getExternalContext().getRequestParameterMap().put("form",
+ ajaxForm);
+ ajaxForm.processDecodes(facesContext);
+ assertEquals(1, childInvoked);
+ // test
+ }
+
+ public void testProcessValidators() throws Exception {
+
+ result = false;
+ ajaxForm.setSubmitted(true);
+ child.setSubmittedValue(new String("test0"));
+ ajaxForm.processValidators(facesContext);
+ assertTrue(result);
+ }
+
+ class TestAjaxFormValidator implements Validator {
+ public void validate(javax.faces.context.FacesContext context,
+ UIComponent component, Object value) {
+ result = true;
+ }
+ }
+
+ // TODO processUpdates test
+ public void testProcessUpdates() throws Exception {
+
+ facesContext.getExternalContext().getRequestParameterMap().put("form",
+ ajaxForm);
+ child.setSubmittedValue(new String("test1"));
+ ajaxForm.processDecodes(facesContext);
+ ajaxForm.processValidators(facesContext);
+ ajaxForm.processUpdates(facesContext);
+ }
+
+ public void testBroadcast() throws Exception {
+
+ AjaxEvent event = new AjaxEvent(ajaxForm);
+ try {
+ ajaxForm.broadcast(event);
+ } catch (Exception e) {
+ fail();
+ }
+
+ }
+
+ public void tearDown() throws Exception {
+ super.tearDown();
+ ajaxForm = null;
+ child = null;
+ }
+
+}
Property changes on: trunk/ui/core/src/test/java/org/ajax4jsf/component/UIAjaxFormTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
18 years, 8 months
JBoss Rich Faces SVN: r2811 - in trunk/ui/core/src/test: java/org/ajax4jsf/component and 4 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-09-07 09:46:37 -0400 (Fri, 07 Sep 2007)
New Revision: 2811
Added:
trunk/ui/core/src/test/resources/
trunk/ui/core/src/test/resources/org/
trunk/ui/core/src/test/resources/org/ajax4jsf/
trunk/ui/core/src/test/resources/org/ajax4jsf/component/
trunk/ui/core/src/test/resources/org/ajax4jsf/component/test_skin.properties
Removed:
trunk/ui/core/src/test/java/org/ajax4jsf/component/test_skin.properties
Log:
Move resource file to separeted directory.
Deleted: trunk/ui/core/src/test/java/org/ajax4jsf/component/test_skin.properties
===================================================================
--- trunk/ui/core/src/test/java/org/ajax4jsf/component/test_skin.properties 2007-09-07 13:12:27 UTC (rev 2810)
+++ trunk/ui/core/src/test/java/org/ajax4jsf/component/test_skin.properties 2007-09-07 13:46:37 UTC (rev 2811)
@@ -1,6 +0,0 @@
-# Fake property file for testing UILoadBundle
-shadowBackgroundColor=#000000
-shadowOpacity=1
-
-panelBorderColor=#C0C0C0
-subBorderColor=#ffffff
Added: trunk/ui/core/src/test/resources/org/ajax4jsf/component/test_skin.properties
===================================================================
--- trunk/ui/core/src/test/resources/org/ajax4jsf/component/test_skin.properties (rev 0)
+++ trunk/ui/core/src/test/resources/org/ajax4jsf/component/test_skin.properties 2007-09-07 13:46:37 UTC (rev 2811)
@@ -0,0 +1,6 @@
+# Fake property file for testing UILoadBundle
+shadowBackgroundColor=#000000
+shadowOpacity=1
+
+panelBorderColor=#C0C0C0
+subBorderColor=#ffffff
18 years, 8 months
JBoss Rich Faces SVN: r2810 - in trunk/ui: insert/src/main/config/component and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: vkukharchuk
Date: 2007-09-07 09:12:27 -0400 (Fri, 07 Sep 2007)
New Revision: 2810
Modified:
trunk/ui/dataTable/src/main/config/component/column.xml
trunk/ui/insert/src/main/config/component/insert.xml
trunk/ui/message/src/main/config/component/message.xml
trunk/ui/tree/src/main/config/component/tree.xml
trunk/ui/tree/src/main/config/component/treeNode.xml
Log:
http://jira.jboss.com/jira/browse/RF-696
Modified: trunk/ui/dataTable/src/main/config/component/column.xml
===================================================================
--- trunk/ui/dataTable/src/main/config/component/column.xml 2007-09-07 12:00:57 UTC (rev 2809)
+++ trunk/ui/dataTable/src/main/config/component/column.xml 2007-09-07 13:12:27 UTC (rev 2810)
@@ -63,20 +63,24 @@
<property>
<name>width</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>
+ Attribute defines width of column. Default value is "100px".
+ </description>
<defaultvalue>"100px"</defaultvalue>
</property>
<property>
<name>sortable</name>
<classname>boolean</classname>
- <description></description>
+ <description>Boolean attribute. If "true" it's possible to sort the column content after click on the header.
+ Default value is "true"
+ </description>
<defaultvalue>true</defaultvalue>
</property>
<property>
<name>sortExpression</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>Attribute defines a bean property which is used for sorting of a column</description>
</property>
<!--
Modified: trunk/ui/insert/src/main/config/component/insert.xml
===================================================================
--- trunk/ui/insert/src/main/config/component/insert.xml 2007-09-07 12:00:57 UTC (rev 2809)
+++ trunk/ui/insert/src/main/config/component/insert.xml 2007-09-07 13:12:27 UTC (rev 2810)
@@ -50,12 +50,16 @@
<name>encoding</name>
<classname>java.lang.String</classname>
<description><![CDATA[
+ Attribute defines encoding for inserted content
]]></description>
</property>
<property>
<name>errorContent</name>
<classname>java.lang.String</classname>
<description><![CDATA[
+ Attribute defines the alternative content that will be shown in case
+component cannot read the resource defined with 'src' attribute. If "errorContent" attribute is not defined,
+the component shown the actual error message in the place where the content is expected
]]></description>
</property>
</component>
Modified: trunk/ui/message/src/main/config/component/message.xml
===================================================================
--- trunk/ui/message/src/main/config/component/message.xml 2007-09-07 12:00:57 UTC (rev 2809)
+++ trunk/ui/message/src/main/config/component/message.xml 2007-09-07 13:12:27 UTC (rev 2810)
@@ -246,6 +246,7 @@
</property>
&ui_component_attributes;
+ &ajax_output_attributes;
</component>
<component>
@@ -513,6 +514,7 @@
</property>
&ui_component_attributes;
+ &ajax_output_attributes;
</component>
</components>
\ No newline at end of file
Modified: trunk/ui/tree/src/main/config/component/tree.xml
===================================================================
--- trunk/ui/tree/src/main/config/component/tree.xml 2007-09-07 12:00:57 UTC (rev 2809)
+++ trunk/ui/tree/src/main/config/component/tree.xml 2007-09-07 13:12:27 UTC (rev 2810)
@@ -193,12 +193,18 @@
<property>
<name>dragValue</name>
<classname>java.lang.Object</classname>
+ <description>
+ Data to be sent to the drop zone after a drop event
+ </description>
<defaultvalue>getRowKey()</defaultvalue>
</property>
<property>
<name>dropValue</name>
<classname>java.lang.Object</classname>
+ <description>
+ Data to be processed after a drop event
+ </description>
<defaultvalue>getRowKey()</defaultvalue>
</property>
Modified: trunk/ui/tree/src/main/config/component/treeNode.xml
===================================================================
--- trunk/ui/tree/src/main/config/component/treeNode.xml 2007-09-07 12:00:57 UTC (rev 2809)
+++ trunk/ui/tree/src/main/config/component/treeNode.xml 2007-09-07 13:12:27 UTC (rev 2810)
@@ -131,12 +131,18 @@
<property>
<name>dragValue</name>
<classname>java.lang.Object</classname>
+ <description>
+ Data to be sent to the drop zone after a drop event
+ </description>
<defaultvalue>getUITree().getDragValue()</defaultvalue>
</property>
<property>
<name>dropValue</name>
<classname>java.lang.Object</classname>
+ <description>
+ Data to be processed after a drop event
+ </description>
<defaultvalue>getUITree().getDropValue()</defaultvalue>
</property>
18 years, 8 months
JBoss Rich Faces SVN: r2809 - trunk/ui/scrollableDataTable/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-09-07 08:00:57 -0400 (Fri, 07 Sep 2007)
New Revision: 2809
Modified:
trunk/ui/scrollableDataTable/src/main/resources/org/richfaces/renderkit/html/css/scrollable-data-table.xcss
Log:
RF-852
Modified: trunk/ui/scrollableDataTable/src/main/resources/org/richfaces/renderkit/html/css/scrollable-data-table.xcss
===================================================================
--- trunk/ui/scrollableDataTable/src/main/resources/org/richfaces/renderkit/html/css/scrollable-data-table.xcss 2007-09-07 11:58:09 UTC (rev 2808)
+++ trunk/ui/scrollableDataTable/src/main/resources/org/richfaces/renderkit/html/css/scrollable-data-table.xcss 2007-09-07 12:00:57 UTC (rev 2809)
@@ -76,7 +76,7 @@
font-size: 1px;
top: 15%;
width: 6px;
- height: 70%;
+ height: 13px;
overflow: hidden;
position: absolute;
display: block;
18 years, 8 months
JBoss Rich Faces SVN: r2808 - trunk/ui/core/src/test/java/org/ajax4jsf/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-09-07 07:58:09 -0400 (Fri, 07 Sep 2007)
New Revision: 2808
Modified:
trunk/ui/core/src/test/java/org/ajax4jsf/renderkit/html/AjaxStatusRendererTest.java
Log:
JUnit test for AjaxStatusRenderer class.
Modified: trunk/ui/core/src/test/java/org/ajax4jsf/renderkit/html/AjaxStatusRendererTest.java
===================================================================
--- trunk/ui/core/src/test/java/org/ajax4jsf/renderkit/html/AjaxStatusRendererTest.java 2007-09-07 10:32:49 UTC (rev 2807)
+++ trunk/ui/core/src/test/java/org/ajax4jsf/renderkit/html/AjaxStatusRendererTest.java 2007-09-07 11:58:09 UTC (rev 2808)
@@ -21,8 +21,10 @@
package org.ajax4jsf.renderkit.html;
+import java.util.Iterator;
+
import javax.faces.component.UIForm;
-import javax.faces.component.UIOutput;
+import javax.faces.component.UIGraphic;
import javax.faces.component.html.HtmlForm;
import org.ajax4jsf.component.UIAjaxStatus;
@@ -67,13 +69,13 @@
status2.setStopStyleClass("X Y Z");
status2.getAttributes().put("layout", "inline");
- UIOutput startOutput = new UIOutput();
- startOutput.setValue("startOutput");
- status2.getFacets().put("start", startOutput);
+ UIGraphic startImage = new UIGraphic();
+ startImage.setValue("start.png");
+ status2.getFacets().put("start", startImage);
- UIOutput stopOutput = new UIOutput();
- stopOutput.setValue("stopOutput");
- status2.getFacets().put("stop", startOutput);
+ UIGraphic stopGraphic = new UIGraphic();
+ stopGraphic.setValue("stop.png");
+ status2.getFacets().put("stop", stopGraphic);
form.getChildren().add(status1);
form.getChildren().add(status2);
@@ -95,11 +97,55 @@
public void testRender() throws Exception {
HtmlPage page = renderView();
assertNotNull(page);
- System.out.println(page.asXml());
HtmlElement div = page.getHtmlElementById(status1.getClientId(facesContext));
assertNotNull(div);
assertEquals("div", div.getNodeName());
+
+ Iterator childIterator = div.getChildIterator();
+ int i = 0;
+ while (childIterator.hasNext()) {
+ i++;
+ HtmlElement element = (HtmlElement) childIterator.next();
+ assertEquals("div", element.getNodeName());
+ }
+ assertEquals(2, i);
+
+ HtmlElement div1 = page.getHtmlElementById(status1.getClientId(facesContext) + ".start");
+ assertNotNull(div1);
+ String style1 = div1.getAttributeValue("style");
+ assertNotNull(style1);
+ assertTrue(style1.contains("color: red;"));
+ String class1 = div1.getAttributeValue("class");
+ assertNotNull(class1);
+ assertEquals(class1, "A B C D");
+
+ HtmlElement div2 = page.getHtmlElementById(status1.getClientId(facesContext) + ".stop");
+ assertNotNull(div2);
+ String style2 = div2.getAttributeValue("style");
+ assertNotNull(style2);
+ assertTrue(style2.contains("color: green;"));
+ String class2 = div2.getAttributeValue("class");
+ assertNotNull(class2);
+ assertEquals(class2, "X Y Z");
+
+ form.getChildren().remove(0);
+ page = renderView();
+ System.out.println(page.asXml());
+
+ HtmlElement span = (HtmlElement) div.getNextSibling();
+ assertNotNull(span);
+ assertEquals("span", span.getNodeName());
+
+ childIterator = span.getChildIterator();
+ i = 0;
+ while (childIterator.hasNext()) {
+ i++;
+ HtmlElement element = (HtmlElement) childIterator.next();
+ assertEquals("span", element.getNodeName());
+ assertEquals("img", element.getFirstChild().getNodeName());
+ }
+ assertEquals(2, i);
}
}
18 years, 8 months
JBoss Rich Faces SVN: r2807 - trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2007-09-07 06:32:49 -0400 (Fri, 07 Sep 2007)
New Revision: 2807
Modified:
trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
Log:
RF-783 fixed
Modified: trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
===================================================================
--- trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2007-09-07 10:18:58 UTC (rev 2806)
+++ trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2007-09-07 10:32:49 UTC (rev 2807)
@@ -276,6 +276,7 @@
var coords = this.fitToolTip(e.clientX, e.clientY, {'x':toolTipX , 'y':toolTipY},elementDim, horizontalDirection, verticalDirection, {'x':this.horizontalOffset, 'y':this.verticalOffset});
Element.setStyle(this.toolTip, {"left": coords.x + "px", "top": coords.y + "px"});
+ this.eventCopy = null;
if (this.delay>0)
{
this.eventCopy = A4J.AJAX.CloneObject(e, false);
18 years, 8 months
JBoss Rich Faces SVN: r2806 - trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2007-09-07 06:18:58 -0400 (Fri, 07 Sep 2007)
New Revision: 2806
Modified:
trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
Log:
RF-783 fix
Modified: trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
===================================================================
--- trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2007-09-06 23:57:14 UTC (rev 2805)
+++ trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2007-09-07 10:18:58 UTC (rev 2806)
@@ -85,10 +85,10 @@
return ;
}
- var eventCopy = A4J.AJAX.CloneObject(event, false);
+ this.eventCopy = A4J.AJAX.CloneObject(event, false);
this.activationTimerHandle = setTimeout(function() {
- this.doShow(eventCopy);
+ this.doShow(this.eventCopy);
}.bind(this), this.delay);
}.bindAsEventListener(this);
} else {
@@ -276,6 +276,10 @@
var coords = this.fitToolTip(e.clientX, e.clientY, {'x':toolTipX , 'y':toolTipY},elementDim, horizontalDirection, verticalDirection, {'x':this.horizontalOffset, 'y':this.verticalOffset});
Element.setStyle(this.toolTip, {"left": coords.x + "px", "top": coords.y + "px"});
+ if (this.delay>0)
+ {
+ this.eventCopy = A4J.AJAX.CloneObject(e, false);
+ }
},
prePosition: function(basePoint, elementDim, horizontalDirection, verticalDirection, offset){
18 years, 8 months