JBoss Rich Faces SVN: r12190 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2009-01-10 08:00:32 -0500 (Sat, 10 Jan 2009)
New Revision: 12190
Modified:
trunk/docs/userguide/en/src/main/docbook/included/editor.xml
Log:
https://jira.jboss.org/jira/browse/RF-5042
The chapter is updated
Modified: trunk/docs/userguide/en/src/main/docbook/included/editor.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/editor.xml 2009-01-10 12:59:24 UTC (rev 12189)
+++ trunk/docs/userguide/en/src/main/docbook/included/editor.xml 2009-01-10 13:00:32 UTC (rev 12190)
@@ -1168,7 +1168,7 @@
</section>
- <section>
+ <section id="EditorDefinitionofCustomStyleSelectors">
<title>Definition of Custom Style Selectors</title>
<para>On the screenshot there are CSS selectors that define styles for component elements.</para>
@@ -1267,9 +1267,51 @@
</tbody>
</tgroup>
</table>
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:editor></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names (possible classes could be found in the tables <link linkend="EditorDefinitionofCustomStyleSelectors">above</link>) and define necessary properties in them.
+ </para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="CSS"><![CDATA[...
+.rich-progress-bar-remained{
+ background-color: #ebf3fd;
+}
+...]]></programlisting>
+
+ <para>This is the result:</para>
+
+ <figure>
+ <title>Redefinition styles with predefined selectors</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/editor4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
-
+ <para>It's also possible to change styles of a particular
+ <emphasis role="bold"> <property><rich:editor></property></emphasis> component. In this case you should create own style classes and use them in corresponding
+ <emphasis role="bold"><property><rich:editor></property></emphasis> <emphasis><property>styleClass</property></emphasis> attributes. An example is placed below:</para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="CSS"><![CDATA[...
+.myClass{
+margin-top: 20px;
+}
+...]]></programlisting>
+ <para>The <emphasis><property>"styleClass"</property></emphasis> attribute for <emphasis role="bold"
+ ><property><rich:editor> </property></emphasis> is defined as it's shown in the example below:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[<rich:editor value="#{bean.text}" styleClass="myClass"/>
+]]></programlisting>
17 years
JBoss Rich Faces SVN: r12189 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2009-01-10 07:59:24 -0500 (Sat, 10 Jan 2009)
New Revision: 12189
Modified:
trunk/docs/userguide/en/src/main/docbook/included/queue.desc.xml
Log:
https://jira.jboss.org/jira/browse/RF-4664
Chapter about the component is corrected and more code snippets, attributes and js api descriptions are added.
Modified: trunk/docs/userguide/en/src/main/docbook/included/queue.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/queue.desc.xml 2009-01-10 12:59:06 UTC (rev 12188)
+++ trunk/docs/userguide/en/src/main/docbook/included/queue.desc.xml 2009-01-10 12:59:24 UTC (rev 12189)
@@ -7,8 +7,7 @@
</keywordset>
</sectioninfo>
<title>Description</title>
- <para>The <emphasis role="bold"><property><a4j:queue></property></emphasis> component creates queues of the Ajax requests.
- With the help of this component other Ajax4JSF or RichFaces components can reference and use it.</para>
- <para>By means of the attributes of this component you can manage server requests of the components, which refered to it.</para>
- </section>
+ <para>The <emphasis role="bold"><property><a4j:queue></property></emphasis> component creates a queue of the Ajax requests. The Ajax4JSF or RichFaces with built-in Ajax can reference the queue to optimize Ajax requests.</para>
+ <para>You can find more information about the <emphasis role="bold"><property><a4j:queue></property></emphasis> in the "<link linkend="QueuePrinciples">Queue Principles</link>" section.</para>
+ </section>
</chapter>
\ No newline at end of file
17 years
JBoss Rich Faces SVN: r12188 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2009-01-10 07:59:06 -0500 (Sat, 10 Jan 2009)
New Revision: 12188
Modified:
trunk/docs/userguide/en/src/main/docbook/included/queue.xml
Log:
https://jira.jboss.org/jira/browse/RF-4664
Chapter about the component is corrected and more code snippets, attributes and js api descriptions are added.
Modified: trunk/docs/userguide/en/src/main/docbook/included/queue.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/queue.xml 2009-01-10 11:55:30 UTC (rev 12187)
+++ trunk/docs/userguide/en/src/main/docbook/included/queue.xml 2009-01-10 12:59:06 UTC (rev 12188)
@@ -34,13 +34,14 @@
</tbody>
</tgroup>
</table>
-
<section>
<title>Creating on a page</title>
- <para>There is possibility of the creation several types of the queue. The additional information about them you can find <link linkend="QueuePrinciples">here</link>.
- You can reference the named queue only from such components which have <emphasis><property>"eventsQueue"</property></emphasis> attribute.</para>
- <para>So, the following example is the easiest example of the queue's creation .</para>
+
+
<para>
+ This is how you can create a form based queue. All other types of the queue are described in the "<link linkend="QueuePrinciples">Queue Principles</link>" section.
+ </para>
+ <para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[<h:form>
@@ -53,92 +54,192 @@
<section>
<title>Creating the Component Dynamically Using Java</title>
<para>
- <emphasis role="bold">
- Example:
- </emphasis>
+ <emphasis role="bold"> Example: </emphasis>
</para>
<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>It's possible by means of the <emphasis role="bold"><property><a4j:queue></property></emphasis> component to create the several types of the queues. The information about it you can find here.</para>
- <para>In order to disable or enable the <emphasis role="bold"><property><a4j:queue></property></emphasis> component on the page you can use the <emphasis><property>"disabled"</property></emphasis> attribute.</para>
+ <para>As it was said earlier the queue implemented in Richfaces has 4 types.
+ In this section we will take a closer look at the form based queue. All other types of queue are similar is usage(except for the "global queue") but different is their scope.</para>
+
+
+ <para>In order to disable or enable the <emphasis role="bold"><property
+ ><a4j:queue></property></emphasis> component on the page you can use the
+ <emphasis><property>"disabled"</property></emphasis> attribute.</para>
+
+ <para> The <emphasis><property>"requestDelay"</property></emphasis> attribute
+ defines delay time for all the requests fired by the action components. </para>
<para>
- The <emphasis><property>"size"</property></emphasis> attribute helps you to set the number of requests allowed in the queue at one time.
- </para>
- <para>
- The <emphasis><property>"sizeExceededBehavior"</property></emphasis> attribute defines the strategies of the queue's behavior if the number of the requests waiting in the queue is exceeded:
- </para>
+
+ The <emphasis><property>"size"</property></emphasis> attribute specifies the number of request that can be stored in the queue at a time.
+ The attribute can help you prevent overloading of a sever with requests. You can also determine the type of behaviour when the size of the queue is exceeded.
+ </para>
+ <para>You should use the <emphasis><property>"sizeExceededBehavior"</property></emphasis> for the purpose.</para>
+ <para> The <emphasis><property>"sizeExceededBehavior"</property></emphasis>
+ attribute can set 4 the strategies of the queue's behavior if the number of the
+ requests waiting in the queue is exceeded: </para>
<itemizedlist>
<listitem>
- <para>dropNext - drops next request that should be fired</para>
+ <para>"dropNext" drops next request that should be fired</para>
</listitem>
<listitem>
- <para>dropNew - drops the incoming request</para>
+ <para>"dropNew" drops the incoming request</para>
</listitem>
<listitem>
- <para>fireNext - immediately fires the next request in line to be fired</para>
+ <para>"fireNext" immediately fires the next request in line to be fired</para>
</listitem>
<listitem>
- <para>fireNew - immediately fires the incoming request.</para>
+ <para>"fireNew" immediately fires the incoming request.</para>
</listitem>
- </itemizedlist>
- <para>You can use this attribute only if the <emphasis><property>"size"</property></emphasis> attribute's value has been set.</para>
+ </itemizedlist>
<para>
- The example of the usage this attribute you can find below.
+ <emphasis role="bold"> Example: </emphasis>
</para>
+ <programlisting role="XML"><![CDATA[...
+<h:form>
+<a4j:queue size="2" requestDelay="20000" sizeExceededBehavior="dropNext" onsizeexceeded="alert('The size of the queue is exceeded')" />
+<h:inputText value="#{queue.a}" >
+<a4j:support event="onkeyup" />
+</h:inputText>
+<h:inputText value="#{queue.b}" >
+<a4j:support event="onblur" />
+<h:selectBooleanCheckbox value="#{queue.check}" id="checkboxID" >
+<a4j:support id="checkboxSupport" event="onchange" />
+</h:selectBooleanCheckbox>
+</h:form>
+...]]></programlisting>
+
<para>
- <emphasis role="bold">
- Example:
- </emphasis>
+ In this example if the queue has more than 2 requests waiting to be processed the next event will be dropped and a message (the <emphasis><property>"onsizeexceeded"</property></emphasis> attribute fires a JavaScript function ) saying that the queues is exceeded will be displayed.
</para>
- <programlisting role="XML"><![CDATA[...
- <a4j:queue size="4" sizeExceededBehavior="dropNext" ... />
- ...]]></programlisting>
+
<para>
- The <emphasis><property>"requestDelay"</property></emphasis> attribute defines delay time for all the requests which fired using this queue.
+ The <emphasis><property>"ignoreDupResponses"</property></emphasis> attribute that takes a boolean value can also help optimize your Ajax requests. The idea of the attribute is to cancel
+ similar events and send the latest one to the server. This works only if similar events come sequentially.
</para>
+
<para>
- <emphasis role="bold">
- Example:
- </emphasis>
+ <emphasis role="bold"> Example: </emphasis>
</para>
- <programlisting role="XML"><![CDATA[<a4j:queue requestDelay="2000" ... />]]></programlisting>
+ <programlisting role="XML"><![CDATA[...
+<h:form>
+<a4j:queue requestDelay="20000" ignoreDupResponses="true" />
+<h:inputText value="#{queue.a}" >
+<a4j:support event="onkeyup" />
+</h:form>
+...]]></programlisting>
+
+
+
+ <para>In this example, the requests are glued together and only the last one is submitted.</para>
+
+
+
+ <para>Another key attribute that easies revers load is <emphasis><property
+ >"timeout"</property></emphasis>.
+ The attribute specifies the amount of time an item can be in the queue before the sent event is be aborted and dropped from the queue.
+ </para>
+ <para>
+ <emphasis role="bold"> Example: </emphasis>
+ </para>
+ <para>If the request is sent and response is not returned within the
+ time frame defined in this attribute - the request is aborted, and the next one is sent.
+ </para>
+
+ <programlisting role="XML"><![CDATA[...
+<h:form>
+<a4j:queue timeout="10000" />
+<h:inputText value="#{queue.a}" >
+<a4j:support event="onkeyup" />
+</h:form>
+...]]></programlisting>
+
<para>
- As a result all the requests are fired with to 2 sec delay.
+ In this case if the sever doesn't respond within a second the request will be aborted.
</para>
+
<para>
- The requests collected in the queue, combining similar ones, during request delay.
- Note, that such requests can combine, if they are raised sequentially, in order to not block the queue and not to change the requests order.
+ As you can see the implementation of the queue provides some custom event handlers that you may use to call JavaScript functions.</para>
+ <para>
+ The <emphasis><property>"oncomplete"</property></emphasis>is fired after request completed.
</para>
<para>
- You can define the JavaScript code for call after Ajax response receiving and before updating DOM on a client side via the <emphasis><property>"onbeforedomupdate"</property></emphasis> attribute.
+ In this event handler request object is be passed as a parameter.
+ Thus queue is be accessible using request.queue.
+ And the element which was a source of the request is available using "this".
+
</para>
<para>
- The <emphasis><property>"onrequestqueue"</property></emphasis> attribute is a JavaScript code for call which fired after the new request has been added to queue.
- And the <emphasis><property>"onrequestdequeue"</property></emphasis> attribute is the code for call which fired after the request has been removed from queue.
+ <emphasis role="bold"> Example: </emphasis>
</para>
+ <programlisting role="XML"><![CDATA[...
+<h:form >
+<a4j:queue oncomplete="alert(request.queue.getSize())" requestDelay="1000" />
+
+<h:inputText value="#{queue.a}" >
+<a4j:support event="onkeyup" />
+<h:selectBooleanCheckbox value="#{queue.check}" >
+<a4j:support event="onchange"/>
+</h:selectBooleanCheckbox>
+</h:form>
+...]]></programlisting>
- <para>
- The <emphasis><property>"onsubmit"</property></emphasis> attribute is fired after request is completed. This attribute allows to invoke JavaScript code before an Ajax request is sent.
- </para>
- <para>The additional information about the <emphasis><property>"requestDelay"</property></emphasis>, <emphasis><property>"timeout"</property></emphasis> and <emphasis><property>"ignoreDupResponses"</property></emphasis>
- you can find in <link linkend="QueueandTrafficFloodProtection">this</link> section.
- </para>
+ <para>In this example you can see how the number of requests waiting in the queue change. You will get a message with the number of the requests in the queue.</para>
+
+ <para>The <emphasis><property>"onbeforedomupdate"</property></emphasis> event handler called before
+ updating DOM on a client side.</para>
+
+ <para> The <emphasis><property>"onrequestqueue"</property></emphasis> event handler called after the new request has been added to queue.
+ And the <emphasis><property>"onrequestdequeue"</property></emphasis> event handler called after the request has been removed from queue. </para>
+ <para> The <emphasis><property>"onsubmit"</property></emphasis> event handler called
+ after request is completed. This attribute allows to invoke JavaScript code before an
+ Ajax request is sent. </para>
+
</section>
<section>
+ <title>JavaScript API</title>
+ <table>
+ <title>JavaScript API</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Function</entry>
+ <entry>Description</entry>
+
+ </row>
+ </thead>
+ <tbody>
+ <!--Sorting API -->
+ <row>
+ <entry>getSize()</entry>
+ <entry>Returns the current size to the queue</entry>
+
+ </row>
+ <row>
+ <entry>getMaximumSize()</entry>
+ <entry>Returns the maximum size to the queue, specified in the "size" attribute</entry>
+
+ </row>
+
+
+
+
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+ <section>
<title>Relevant resources links</title>
<para>
- <ulink
- url="http://livedemo.exadel.com/richfaces-demo/richfaces/queue.jsf?c=queue"
- >Here</ulink> you can see the example of <emphasis
- role="bold">
- <property><a4j:queue></property>
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/queue.jsf?c=queue"
+ >Here</ulink> you can see the example of <emphasis role="bold">
+ <property><a4j:queue></property>
</emphasis> usage and sources for the given example. </para>
+ <para>General queue principals are documented in the "<link linkend="QueuePrinciples">Queue Principles</link>" section.</para>
</section>
-</chapter>
\ No newline at end of file
+</chapter>
17 years
JBoss Rich Faces SVN: r12187 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2009-01-10 06:55:30 -0500 (Sat, 10 Jan 2009)
New Revision: 12187
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/usage.xhtml
Log:
java source link added.
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/usage.xhtml 2009-01-10 11:29:14 UTC (rev 12186)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/usage.xhtml 2009-01-10 11:55:30 UTC (rev 12187)
@@ -27,7 +27,13 @@
<ui:include src="/richfaces/suggestionBox/examples/custom.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath" value="/richfaces/suggestionBox/examples/custom.xhtml"/>
+ <ui:param name="openlabel" value="View Page Source" />
</ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/WEB-INF/src/org/richfaces/demo/capitals/CapitalsBean.java"/>
+ <ui:param name="sourcetype" value="java" />
+ <ui:param name="openlabel" value="View CapitalsBean.java Source" />
+ </ui:include>
</div>
</fieldset>
17 years
JBoss Rich Faces SVN: r12186 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2009-01-10 06:29:14 -0500 (Sat, 10 Jan 2009)
New Revision: 12186
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples/editor.xhtml
Log:
minor text changes.
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples/editor.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples/editor.xhtml 2009-01-10 09:56:06 UTC (rev 12185)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples/editor.xhtml 2009-01-10 11:29:14 UTC (rev 12186)
@@ -34,7 +34,7 @@
<a4j:support event="onclick" reRender="editor" requestDelay="500"
eventsQueue="settingsQueue" similarityGroupingId="settings" />
</h:selectOneRadio>
- <h:outputText value="Toggle Modes" />
+ <h:outputText value="Toggle Modes(Disables Preview)" escape="false"/>
<h:selectOneRadio value="#{editorBean.viewMode}"
layout="pageDirection">
<f:selectItem itemLabel="WYSIWYG mode" itemValue="visual" />
17 years
JBoss Rich Faces SVN: r12185 - in trunk/test-applications/seleniumTest/richfaces/src: test/java/org/richfaces and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2009-01-10 04:56:06 -0500 (Sat, 10 Jan 2009)
New Revision: 12185
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxCommandButton/autoTestCommandButton.xhtml
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumEvent.java
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxCommandButtonTest.java
Log:
RF-5542
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxCommandButton/autoTestCommandButton.xhtml
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxCommandButton/autoTestCommandButton.xhtml 2009-01-09 20:29:30 UTC (rev 12184)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxCommandButton/autoTestCommandButton.xhtml 2009-01-10 09:56:06 UTC (rev 12185)
@@ -9,6 +9,20 @@
<ui:composition template="#{templateBean.autoTestTemplate}">
<ui:define name="component">
<a4j:commandButton id="componentId" value="Button"
+ style="font-weight: bold; color: green;"
+ tabindex="1"
+ alt="Command Button alt"
+ title="Command Button title"
+ styleClass="commandStyle"
+ onclick="EventQueue.fire('onclick')"
+ onmousedown="EventQueue.fire('onmousedown')"
+ onmousemove="EventQueue.fire('onmousemove')"
+ onmouseup="EventQueue.fire('onmouseup')"
+ onmouseout="EventQueue.fire('onmouseout')"
+ onmouseover="EventQueue.fire('onmouseover')"
+ onkeydown="EventQueue.fire('onkeydown')"
+ onkeypress="EventQueue.fire('onkeypress')"
+ onkeyup="EventQueue.fire('onkeyup')"
actionListener="#{autoTestBean.actionListener}"
reRender="#{autoTestBean.reRender}"
limitToList="#{autoTestBean.limitToList}"
@@ -16,6 +30,7 @@
rendered="#{autoTestBean.rendered}"
>
</a4j:commandButton>
+ <rich:effect></rich:effect>
</ui:define>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumEvent.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumEvent.java 2009-01-09 20:29:30 UTC (rev 12184)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumEvent.java 2009-01-10 09:56:06 UTC (rev 12185)
@@ -62,8 +62,8 @@
STANDARD_HTML_EVENTS.add(ONKEYUP);
STANDARD_HTML_EVENTS.add(ONKEYPRESS);
//STANDARD_HTML_EVENTS.add(ONBLUR);
- STANDARD_HTML_EVENTS.add(ONFOCUS);
- STANDARD_HTML_EVENTS.add(ONCHANGE);
+ //STANDARD_HTML_EVENTS.add(ONFOCUS);
+ //STANDARD_HTML_EVENTS.add(ONCHANGE);
}
private SeleniumEvent(String name) {
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxCommandButtonTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxCommandButtonTest.java 2009-01-09 20:29:30 UTC (rev 12184)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxCommandButtonTest.java 2009-01-10 09:56:06 UTC (rev 12185)
@@ -20,6 +20,9 @@
*/
package org.richfaces.testng;
+import java.util.HashMap;
+import java.util.Map;
+
import org.ajax4jsf.template.Template;
import org.richfaces.AutoTester;
import org.richfaces.SeleniumTestBase;
@@ -29,7 +32,32 @@
public class AjaxCommandButtonTest extends SeleniumTestBase {
+ static final String [] CSS_CLASSES = new String [] {"commandStyle"};
+ static final Map<String, String> CSS_STYLES = new HashMap<String, String>();
+
+ static {
+ CSS_STYLES.put("font-weight", "bold");
+ CSS_STYLES.put("color", "green");
+ }
+
+
@Test
+ public void testStylesClassesAndEvents(Template template) {
+ AutoTester tester = getAutoTester(this);
+ tester.renderPage(template, null);
+
+ tester.testStyleAndClasses(CSS_CLASSES, CSS_STYLES);
+
+ String componentId = tester.getClientId(AutoTester.COMPONENT_ID, template);
+ assertAttributeContains(componentId, "title", "Command Button title", "");
+ assertAttributeContains(componentId, "alt", "Command Button alt", "");
+ assertAttributeContains(componentId, "tabIndex", "1", "");
+
+ tester.testHTMLEvents();
+
+ }
+
+ @Test
public void testLimit2ListAttribute(Template template) {
AutoTester tester = getAutoTester(this);
tester.renderPage(template, null);
17 years
JBoss Rich Faces SVN: r12184 - trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-01-09 15:29:30 -0500 (Fri, 09 Jan 2009)
New Revision: 12184
Modified:
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
Log:
https://jira.jboss.org/jira/browse/RF-5620
Modified: trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
===================================================================
--- trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2009-01-09 19:40:26 UTC (rev 12183)
+++ trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2009-01-09 20:29:30 UTC (rev 12184)
@@ -412,9 +412,14 @@
formElements: "|a|input|select|button|textarea|",
processAllFocusElements: function(root, callback) {
- if (root.focus && root.nodeType == 1 && root.tagName &&
+ var idx = -1;
+ var tagName;
+
+ if (root.focus && root.nodeType == 1 && (tagName = root.tagName) &&
// Many not visible elements have focus method, we is had to avoid processing them.
- this.formElements.indexOf(root.tagName.toLowerCase())!=-1 &&
+ (idx = this.formElements.indexOf(tagName.toLowerCase())) != -1 &&
+ this.formElements.charAt(idx - 1) === '|' &&
+ this.formElements.charAt(idx + tagName.length) === '|' &&
!root.disabled && root.type!="hidden") {
callback.call(this, root);
} else {
17 years
JBoss Rich Faces SVN: r12183 - trunk/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advlink/js.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-01-09 14:40:26 -0500 (Fri, 09 Jan 2009)
New Revision: 12183
Modified:
trunk/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advlink/js/advlink.js
Log:
https://jira.jboss.org/jira/browse/RF-5619
Modified: trunk/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advlink/js/advlink.js
===================================================================
--- trunk/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advlink/js/advlink.js 2009-01-09 19:05:09 UTC (rev 12182)
+++ trunk/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advlink/js/advlink.js 2009-01-09 19:40:26 UTC (rev 12183)
@@ -113,9 +113,13 @@
}
function checkPrefix(n) {
- if (n.value && Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_email')))
+ // RF: variable added with regexp to avoid error in JSMin.java
+ var re = /^\s*mailto:/i;
+
+ if (n.value && Validator.isEmail(n) && !re.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_email')))
n.value = 'mailto:' + n.value;
-
+ // RF: end
+
if (/^\s*www./i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_external')))
n.value = 'http://' + n.value;
}
17 years
JBoss Rich Faces SVN: r12182 - in trunk/samples/richfaces-demo/src/main/webapp: richfaces/calendar/examples and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2009-01-09 14:05:09 -0500 (Fri, 09 Jan 2009)
New Revision: 12182
Modified:
trunk/samples/richfaces-demo/src/main/webapp/css/common.css
trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/examples/organiser.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/mpusage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/editTable.xhtml
Log:
modals markup corrected. "X" control position.
Modified: trunk/samples/richfaces-demo/src/main/webapp/css/common.css
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/css/common.css 2009-01-09 18:19:22 UTC (rev 12181)
+++ trunk/samples/richfaces-demo/src/main/webapp/css/common.css 2009-01-09 19:05:09 UTC (rev 12182)
@@ -1,4 +1,8 @@
-
+.hidelink{
+ padding-top:2px;
+ padding-right:1px;
+ cursor:pointer;
+}
.demo_fieldset {
margin : 20px;
border : 1px solid #ACBECE;
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/examples/organiser.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/examples/organiser.xhtml 2009-01-09 18:19:22 UTC (rev 12181)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/examples/organiser.xhtml 2009-01-09 19:05:09 UTC (rev 12182)
@@ -39,7 +39,7 @@
<f:facet name="header">Edit Day:</f:facet>
<f:facet name="controls">
<h:panelGroup>
- <h:graphicImage value="/images/modal/close.png" style="cursor:pointer" id="hidelink"/>
+ <h:graphicImage value="/images/modal/close.png" id="hidelink" styleClass="hidelink"/>
<rich:componentControl for="panel" attachTo="hidelink" operation="hide" event="onclick"/>
</h:panelGroup>
</f:facet>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/mpusage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/mpusage.xhtml 2009-01-09 18:19:22 UTC (rev 12181)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/mpusage.xhtml 2009-01-09 19:05:09 UTC (rev 12182)
@@ -12,7 +12,7 @@
</f:facet>
<f:facet name="controls">
<h:panelGroup>
- <h:graphicImage value="/images/modal/close.png" style="cursor:pointer" id="hidelink"/>
+ <h:graphicImage value="/images/modal/close.png" styleClass="hidelink" id="hidelink"/>
<rich:componentControl for="panel" attachTo="hidelink" operation="hide" event="onclick"/>
</h:panelGroup>
</f:facet>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/editTable.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/editTable.xhtml 2009-01-09 18:19:22 UTC (rev 12181)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/editTable.xhtml 2009-01-09 19:05:09 UTC (rev 12182)
@@ -84,7 +84,7 @@
<f:facet name="controls">
<h:panelGroup>
<h:graphicImage value="/images/modal/close.png"
- style="cursor:pointer" id="hidelink" />
+ id="hidelink" styleClass="hidelink"/>
<rich:componentControl for="editPanel" attachTo="hidelink"
operation="hide" event="onclick" />
</h:panelGroup>
@@ -110,7 +110,7 @@
</h:panelGrid>
</h:form>
</rich:modalPanel>
- <rich:modalPanel id="deletePanel" autosized="true">
+ <rich:modalPanel id="deletePanel" autosized="true" width="200">
<f:facet name="header">
<h:outputText value="Delete this car from list?"
style="padding-right:15px;" />
@@ -118,20 +118,28 @@
<f:facet name="controls">
<h:panelGroup>
<h:graphicImage value="/images/modal/close.png"
- style="cursor:pointer" id="hidelink2" />
+ styleClass="hidelink" id="hidelink2" />
<rich:componentControl for="deletePanel" attachTo="hidelink2"
operation="hide" event="onclick" />
</h:panelGroup>
</f:facet>
<h:form>
- <h:panelGrid columns="2" width="100%">
+ <table width="100%">
+ <tbody>
+ <tr>
+ <td align="center" width="50%">
<a4j:commandButton value="Yes" ajaxSingle="true"
action="#{dataTableScrollerBean.delete}"
oncomplete="#{rich:component('deletePanel')}.hide();"
reRender="table" />
+ </td>
+ <td align="center" width="50%">
<a4j:commandButton value="Cancel"
onclick="#{rich:component('deletePanel')}.hide();return false;" />
- </h:panelGrid>
+ </td>
+ </tr>
+ </tbody>
+ </table>
</h:form>
</rich:modalPanel>
<a4j:status onstart="#{rich:component('wait')}.show()" onstop="#{rich:component('wait')}.hide()"/>
17 years
JBoss Rich Faces SVN: r12181 - in trunk/samples/richfaces-demo/src/main/webapp: richfaces/dataTable and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2009-01-09 13:19:22 -0500 (Fri, 09 Jan 2009)
New Revision: 12181
Modified:
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/editDataTable.xhtml
Log:
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200480#4200480
Modified: trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2009-01-09 15:01:47 UTC (rev 12180)
+++ trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2009-01-09 18:19:22 UTC (rev 12181)
@@ -405,7 +405,7 @@
<managed-bean>
<managed-bean-name>extendedTableBean</managed-bean-name>
<managed-bean-class>org.richfaces.demo.extendedDataTable.ExtendedTableBean</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
+ <managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>capitals</property-name>
<value>#{capitalsBean.capitals}</value>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/editDataTable.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/editDataTable.xhtml 2009-01-09 15:01:47 UTC (rev 12180)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/editDataTable.xhtml 2009-01-09 18:19:22 UTC (rev 12181)
@@ -12,7 +12,7 @@
<p>
In this example you could see two basic and frequently asked use-cases
- implemented. TBD description.
+ implemented. It's a editing and deletion of the table cells via modal panel component.
</p>
<fieldset class="demo_fieldset">
17 years