JBoss Rich Faces SVN: r15522 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2009-09-10 07:19:50 -0400 (Thu, 10 Sep 2009)
New Revision: 15522
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_actionparam.xml
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_ajaxListener.xml
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_form.xml
Log:
https://jira.jboss.org/jira/browse/RF-7275 - <a4j:actionparam> was fixed
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_actionparam.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_actionparam.xml 2009-09-10 08:21:49 UTC (rev 15521)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_actionparam.xml 2009-09-10 11:19:50 UTC (rev 15522)
@@ -1,109 +1,160 @@
<section role="NotInToc" id="a4j_actionparam">
- <title>
- <
- a4j:actionparam
- >
- <emphasis role="since">
- <superscript> available since <emphasis role="version">3.0.0</emphasis>
- </superscript>
- </emphasis>
- </title>
- <section role="NotInToc">
- <sectioninfo>
+ <title>
+ <
+ a4j:actionparam
+ >
+ <emphasis role="since">
+ <superscript>available since
+ <emphasis role="version">3.0.0</emphasis>
+ </superscript>
+ </emphasis>
+ </title>
+ <section role="NotInToc">
+ <sectioninfo>
<keywordset>
- <keyword>a4j:actionparam</keyword>
+ <keyword>a4j:actionparam</keyword>
</keywordset>
- </sectioninfo>
- <title>Description</title>
- <para>
- The <emphasis role="bold">
- <property><a4j:actionparam></property>
- </emphasis> component combines the functionality of both JSF <emphasis role="bold">
- <property><f:param></property>
- </emphasis> and <emphasis role="bold">
- <property><f:actionListener></property>
- </emphasis>
- and allows to assign the value to the property of the manager bean directly using the <emphasis>
- <property>assignTo</property>
- </emphasis> attribute.
- </para>
+ </sectioninfo>
+ <title>Description</title>
+ <para>
+ The
+ <emphasis role="bold">
+ <property><a4j:actionparam></property>
+ </emphasis>
+ component combines the functionality of
+ <emphasis role="bold">
+ <property><f:param></property>
+ </emphasis>
+ and
+ <emphasis role="bold">
+ <property><f:actionListener></property>
+ </emphasis>
+ and allows to assign the value to the property of the managed bean directly using the
+ <emphasis>
+ <property>"assignTo"</property>
+ </emphasis>
+ attribute.
+ </para>
- </section>
- <section>
+ </section>
+ <section>
<title>Details of Usage</title>
- <para>
- The component <emphasis role="bold">
- <property><a4j:actionparam></property>
- </emphasis> is a combination of the functionality of two JSF tags:
- <emphasis role="bold">
- <property><f:param></property>
- </emphasis> and <emphasis role="bold">
- <property><f:actionListener></property>
- </emphasis>.
- </para>
- <para>At the render phase, it's decoded by parent component (<emphasis role="bold">
- <property><h:commandLink></property>
- </emphasis> or like) as usual.
- At the process request phase, if the parent component performs an action event, update the <emphasis>
- <property>"value"</property>
- </emphasis> specified in the
- <emphasis>
- <property>"assignTo"</property>
- </emphasis>attribute as its <emphasis>
- <property>"value"</property>
- </emphasis>.
- If a <emphasis>
- <property>"converter"</property>
- </emphasis> attribute is specified, use it to encode and decode the <emphasis>
- <property>"value"</property>
- </emphasis> to a string stored in the html parameter.
- To make the <emphasis>
- <property>"assignTo"</property>
- </emphasis> attribute usable add the <code>actionParam</code> instance to the parent component as an action listener.
+ <para>
+ The
+ <emphasis role="bold">
+ <property><a4j:actionparam></property>
+ </emphasis>
+ component has 3 main attributes:
</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <emphasis>
+ <property>"name"</property>
+ </emphasis>
+ defines a name of this parameter
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <emphasis>
+ <property>"value"</property>
+ </emphasis>
+ defines initial value of this parameter or a value binding
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <emphasis>
+ <property>"assignTo"</property>
+ </emphasis>
+ defines updatable bean property. This property will be updated if the parent
+ command component performs an actionEvent during the "Process Request" phase.
+ </para>
+ </listitem>
+ </itemizedlist>
<para>
- <emphasis role="bold">
- <property><a4j:actionparam></property>
- </emphasis>has a <emphasis>
- <property>"noEscape"</property>
- </emphasis> attribute.
- If it is set to <property>"true"</property>, the <emphasis>
- <property>"value"</property>
- </emphasis> is evaluated as a JavaScript code. </para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<h:form id="form">
+ <a4j:commandButton value="Set Name to Alex" reRender="rep">
+ <a4j:actionparam name="username" value="Alex" assignTo="#{actionparamBean.name}"/>
+ </a4j:commandButton>
+ <br/>
+ <h:outputText id="rep" value="Name: #{actionparamBean.name}"/>
+</h:form>
+...]]></programlisting>
<para>
- <emphasis role="bold">Example:</emphasis>
+ There is a managed bean:
</para>
- <programlisting role="XML"><![CDATA[...
-<script>
- ...
- var foo = "bar";
- ...
-</script>
-...
-<a4j:actionparam noEscape="true" name="param1" value="foo" assignTo="#{bean.prop1}" />
+ <programlisting role="JAVA"><![CDATA[...
+public class ActionparamBean {
+ private String name = "John";
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+}
...]]></programlisting>
- <para>
- The <emphasis role="bold">
- <property><a4j:param></property>
- </emphasis> extends <emphasis role="bold">
- <property><f:param></property>
- </emphasis>,
- so the <emphasis>
- <property>"name"</property>
- </emphasis> attribute is mandatory.
- Otherwise, the <emphasis>
- <property>"value"</property>
- </emphasis> misses due missing the request parameter name for it.
- </para>
+ <para>
+ You can use
+ <emphasis role="bold">
+ <property><a4j:actionparam></property>
+ </emphasis>
+ not only with Ajax components, but with non-ajax command component also.
+ This feature allows to update model values without invoking even a single line of Java code on the
+ server side. The usage of this feature you can find at
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/actionparam.jsf?c=act...">
+ ActionParameter Usage
+ </ulink>
+ page of RichFaces LiveDemo.
+ </para>
+ <para>
+ If you need to convert the value before the "Update Model" phase
+ you can specify the converter in the
+ <emphasis>
+ <property>"converter"</property>
+ </emphasis>
+ attribute.
+ </para>
+ <note>
+ <title>Note:</title>
+ <para>
+ The property is assigned with a parameter value on the "Update Model" phase. Therefore if the
+ validation of the form is failed, this phase will be skipped and the property won't be updated.
+ </para>
+ </note>
+ <para>
+ It is possible to use JavaScript expression or function in the
+ <emphasis>
+ <property>"value"</property>
+ </emphasis>
+ attribute.
+ In this case the
+ <emphasis>
+ <property>"noEscape"</property>
+ </emphasis>
+ attribute should be set to "true".
+ The result of this JavaScript invocation is sent to the server as a value of
+ <emphasis role="bold">
+ <property><a4j:actionparam></property>
+ </emphasis>
+ .
+ </para>
</section>
- <section>
- <title>Reference Data</title>
- <para>
- <ulink url="&tlddoc;a4j/actionparam.html">Table of
- <a4j:actionparam>
- attributes</ulink>.
- </para>
- <table frame="all">
+ <section>
+ <title>Reference Data</title>
+ <para>
+ <ulink url="&tlddoc;a4j/actionparam.html">Table of
+ <a4j:actionparam>
+ attributes</ulink>.
+ </para>
+ <table frame="all">
<title>Component Identification Parameters</title>
<tgroup cols="2">
<thead>
@@ -117,31 +168,42 @@
<entry>component-type</entry>
<entry>org.ajax4jsf.ActionParameter</entry>
</row>
-
+
<row>
<entry>component-class</entry>
<entry>org.ajax4jsf.component.html.HtmlActionParameter</entry>
</row>
-
+
</tbody>
</tgroup>
</table>
- </section>
- <section>
- <title>Relevant Resources Links</title>
+ </section>
+ <section>
+ <title>Relevant Resources Links</title>
<para>
- Visit the <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/actionparam.jsf?c=act...">ActionParamter page</ulink> at RichFaces LiveDemo for examples of component usage abd their sources.
+ Visit the
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/actionparam.jsf?c=act...">
+ ActionParameter</ulink>
+ page at RichFaces LiveDemo for examples of component usage and their sources.
</para>
<para>
- More information can be found on the <ulink url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063764">Ajax4jsf Users Forum</ulink>.
- </para>
+ More information can be found on the
+ <ulink
+ url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063764">Ajax4jsf Users
+ Forum</ulink>.
+ </para>
<para>
- More information about <emphasis role="bold">
- <property><f:param></property>
- </emphasis> and <emphasis role="bold">
- <property><f:actionListener></property>
- </emphasis>can be found <ulink url="http://java.sun.com/javaee/javaserverfaces/1.2/docs/tlddocs/index.html">in Sun JSF TLD documentation</ulink>.
+ More information about
+ <emphasis role="bold">
+ <property><f:param></property>
+ </emphasis>
+ and
+ <emphasis role="bold">
+ <property><f:actionListener></property>
+ </emphasis>
+ can be found in
+ <ulink url="http://java.sun.com/javaee/javaserverfaces/1.2/docs/tlddocs/index.html">Sun JSF
+ TLD documentation</ulink>.
</para>
-
- </section>
+ </section>
</section>
\ No newline at end of file
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_ajaxListener.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_ajaxListener.xml 2009-09-10 08:21:49 UTC (rev 15521)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_ajaxListener.xml 2009-09-10 11:19:50 UTC (rev 15522)
@@ -70,9 +70,7 @@
The object on which the Event initially occurred could be accessed using the
<code>
<ulink url="http://java.sun.com/j2se/1.4.2/docs/api/java/util/EventObject.html">
- <property>java.util.EventObject.getSource()</property>
- </ulink>
- </code>
+ <property>java.util.EventObject.getSource()</property></ulink></code>
method.
</para>
<para>
@@ -95,7 +93,7 @@
<programlisting role="XML"><![CDATA[...
<rich:messages/>
-<h:form id="form" ajaxSubmit="true">
+<h:form id="form">
<a4j:commandLink value="Click to send Ajax request">
<a4j:ajaxListener type="org.docs.richfaces.actionListenerBean"/>
</a4j:commandLink>
@@ -172,12 +170,12 @@
<para>
Visit
<ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/ajaxListener.jsf?c=aj...">
- AjaxListener
- </ulink>
+ AjaxListener</ulink>
page at RichFaces Livedemo for examples of component usage and their sources.
</para>
<para>
- Check Sun JSF TLD documentation for more information on<ulink
+ Check Sun JSF TLD documentation for more information on
+ <ulink
url="http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/tlddocs/f/valueCha..."><f:valueChangeListener>
tag</ulink>.
</para>
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_form.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_form.xml 2009-09-10 08:21:49 UTC (rev 15521)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_form.xml 2009-09-10 11:19:50 UTC (rev 15522)
@@ -206,9 +206,10 @@
at RichFaces Livedemo for examples of component usage and their sources.
</para>
<para>
- For additional information about attributes of this component read<ulink
+ For additional information about attributes of this component read
+ <ulink
url="http://livedemo.exadel.com/richfaces-demo/richfaces/ajaxAttributes.jsf?c=...">'Ajax
- Attribute' section</ulink>.
+ Attribute</ulink> section.
</para>
</section>
</section>
\ No newline at end of file
14 years, 6 months
JBoss Rich Faces SVN: r15521 - branches/community/3.3.X/ui/tree/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2009-09-10 04:21:49 -0400 (Thu, 10 Sep 2009)
New Revision: 15521
Modified:
branches/community/3.3.X/ui/tree/src/main/java/org/richfaces/component/UITreeNode.java
Log:
Tree/TreeNode: process attribute doesn't work
https://jira.jboss.org/jira/browse/RF-7323
Modified: branches/community/3.3.X/ui/tree/src/main/java/org/richfaces/component/UITreeNode.java
===================================================================
--- branches/community/3.3.X/ui/tree/src/main/java/org/richfaces/component/UITreeNode.java 2009-09-10 08:09:00 UTC (rev 15520)
+++ branches/community/3.3.X/ui/tree/src/main/java/org/richfaces/component/UITreeNode.java 2009-09-10 08:21:49 UTC (rev 15521)
@@ -20,7 +20,9 @@
*/
package org.richfaces.component;
+import javax.el.ELException;
import javax.el.ValueExpression;
+import javax.faces.FacesException;
import javax.faces.component.UIComponent;
import javax.faces.component.UIComponentBase;
import javax.faces.component.UIViewRoot;
@@ -77,6 +79,9 @@
private boolean ignoreDupResponsesSet = false;
private boolean timeoutSet = false;
+ private Object process = null;
+ private boolean processSet = false;
+
public static final String COMPONENT_TYPE = "org.richfaces.TreeNode";
public static final String COMPONENT_FAMILY = "org.richfaces.TreeNode";
@@ -348,7 +353,7 @@
}
public Object saveState(FacesContext context) {
- Object[] state = new Object[18];
+ Object[] state = new Object[20];
state[0] = super.saveState(context);
state[1] = this.dragType;
state[2] = this.acceptedTypes;
@@ -367,6 +372,8 @@
state[15] = new Integer(this.timeout);
state[16] = this.similarityGroupingId;
state[17] = new Boolean(this.bypassUpdates);
+ state[18] = this.process;
+ state[19] = Boolean.valueOf(this.processSet);
return state;
}
@@ -391,6 +398,8 @@
this.timeout = ((Integer)_state[15]).intValue();
this.similarityGroupingId = (String) _state[16];
this.bypassUpdates = ((Boolean)_state[17]).booleanValue();
+ this.process = _state[18];
+ this.processSet = ((Boolean)_state[19]).booleanValue();
}
public void setDragIndicator(String dragIndicator) {
@@ -549,6 +558,37 @@
}
}
+ public Object getProcess() {
+ if (this.process != null) {
+ return this.process;
+ }
+
+ ValueExpression ve = getValueExpression("process");
+ if (ve != null) {
+ Object value = null;
+
+ try {
+ value = (Object) ve.getValue(getFacesContext().getELContext());
+ } catch (ELException e) {
+ throw new FacesException(e);
+ }
+
+ return value;
+ } else {
+ UITree tree = getUITree();
+ if (tree != null) {
+ return tree.getProcess();
+ }
+ }
+
+ return null;
+ }
+
+ public void setProcess(Object process) {
+ this.process = process;
+ this.processSet = true;
+ }
+
/**
* If "true", after process validations phase it skips updates of model beans on a force render response. It can be used for validating components input
* Setter for bypassUpdates
14 years, 6 months
JBoss Rich Faces SVN: r15520 - in branches/community/3.3.X/test-applications/richfaces-docs/src/main: webapp/WEB-INF and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2009-09-10 04:09:00 -0400 (Thu, 10 Sep 2009)
New Revision: 15520
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/ActionListenerBean.java
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/a4j/ajaxListener.xhtml
Modified:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/WEB-INF/faces-config.xml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/mainMenu.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-7275 - ajaxListener sample is added
Added: branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/ActionListenerBean.java
===================================================================
--- branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/ActionListenerBean.java (rev 0)
+++ branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/ActionListenerBean.java 2009-09-10 08:09:00 UTC (rev 15520)
@@ -0,0 +1,11 @@
+package org.docs.richfaces;
+
+import org.ajax4jsf.event.AjaxEvent;
+import javax.faces.context.FacesContext;
+import javax.faces.application.FacesMessage;
+
+public class ActionListenerBean implements org.ajax4jsf.event.AjaxListener {
+ public void processAjax(AjaxEvent event) {
+ FacesContext.getCurrentInstance().addMessage("form", new FacesMessage("Ajax request is sent"));
+ }
+}
Modified: branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/WEB-INF/faces-config.xml 2009-09-09 19:18:58 UTC (rev 15519)
+++ branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/WEB-INF/faces-config.xml 2009-09-10 08:09:00 UTC (rev 15520)
@@ -1,178 +1,183 @@
<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
- "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config>
- <managed-bean>
- <managed-bean-name>editor</managed-bean-name>
- <managed-bean-class>org.docs.richfaces.Editor</managed-bean-class>
- <managed-bean-scope>application</managed-bean-scope>
- <managed-property>
- <property-name>edit</property-name>
- <property-class>java.lang.String</property-class>
- <value/>
- </managed-property>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>colorPicker</managed-bean-name>
- <managed-bean-class>org.docs.richfaces.ColorPicker</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- <managed-property>
- <property-name>colorMode</property-name>
- <property-class>java.lang.String</property-class>
- <value/>
- </managed-property>
- <managed-property>
- <property-name>flat</property-name>
- <property-class>java.lang.String</property-class>
- <value/>
- </managed-property>
- <managed-property>
- <property-name>showEvent</property-name>
- <property-class>java.lang.String</property-class>
- <value/>
- </managed-property>
- <managed-property>
- <property-name>value</property-name>
- <property-class>java.lang.String</property-class>
- <value/>
- </managed-property>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>queue</managed-bean-name>
- <managed-bean-class>org.docs.richfaces.Queue</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>support</managed-bean-name>
- <managed-bean-class>org.docs.richfaces.Support</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>media</managed-bean-name>
- <managed-bean-class>org.docs.richfaces.MediaBean</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>mediaData</managed-bean-name>
- <managed-bean-class>org.docs.richfaces.MediaData</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>skin</managed-bean-name>
- <managed-bean-class>org.docs.richfaces.util.Skin</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- <managed-property>
- <property-name>skin</property-name>
- <property-class>java.lang.String</property-class>
- <value>blueSky</value>
- </managed-property>
- <managed-property>
- <property-name>standardSkinning</property-name>
- <property-class>java.lang.String</property-class>
- <value>enable</value>
- </managed-property>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>menuState</managed-bean-name>
- <managed-bean-class>org.docs.richfaces.util.MenuState</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- <managed-property>
- <property-name>menu</property-name>
- <property-class>java.util.Map</property-class>
- <value/>
- </managed-property>
- <managed-property>
- <property-name>selectedMenuItem</property-name>
- <property-class>java.lang.String</property-class>
- <value/>
- </managed-property>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>menuBean</managed-bean-name>
- <managed-bean-class>org.docs.richfaces.util.MenuBean</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- <managed-property>
- <property-name>menuState</property-name>
- <property-class>org.docs.richfaces.util.MenuState</property-class>
- <value>#{menuState}</value>
- </managed-property>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>tree</managed-bean-name>
- <managed-bean-class>org.docs.richfaces.tree.Tree</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>nodes</managed-bean-name>
- <managed-bean-class>org.docs.richfaces.tree.Nodes</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- <managed-property>
- <property-name>node</property-name>
- <property-class>java.lang.String</property-class>
- <value/>
- </managed-property>
- <managed-property>
- <property-name>root</property-name>
- <property-class>java.lang.String</property-class>
- <value/>
- </managed-property>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>globalQueue</managed-bean-name>
- <managed-bean-class>org.docs.richfaces.util.GlobalQueue</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- <managed-property>
- <property-name>globalQueue</property-name>
- <property-class>boolean</property-class>
- <value>false</value>
- </managed-property>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>fileUpload</managed-bean-name>
- <managed-bean-class>org.docs.richfaces.fileUpload.FileUpload</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>layout</managed-bean-name>
- <managed-bean-class>org.docs.richfaces.Layout</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- <managed-property>
- <property-name>theme</property-name>
- <property-class>java.lang.String</property-class>
- <value/>
- </managed-property>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>shelf</managed-bean-name>
- <managed-bean-class>org.docs.richfaces.tree.Shelf</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>hujations</managed-bean-name>
- <managed-bean-class>org.docs.richfaces.tree.Hujations</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>authentification</managed-bean-name>
- <managed-bean-class>org.docs.richfaces.authentification.Authentification</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>bean</managed-bean-name>
- <managed-bean-class>org.docs.richfaces.tree.Bean</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>treeBean</managed-bean-name>
- <managed-bean-class>org.docs.richfaces.tree.TreeBean</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>caledar</managed-bean-name>
- <managed-bean-class>org.docs.richfaces.Caledar</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <application>
- <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
- </application>
+ <managed-bean>
+ <managed-bean-name>editor</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.Editor</managed-bean-class>
+ <managed-bean-scope>application</managed-bean-scope>
+ <managed-property>
+ <property-name>edit</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>colorPicker</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.ColorPicker</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ <managed-property>
+ <property-name>colorMode</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ <managed-property>
+ <property-name>flat</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ <managed-property>
+ <property-name>showEvent</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ <managed-property>
+ <property-name>value</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>queue</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.Queue</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>support</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.Support</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>media</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.MediaBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>mediaData</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.MediaData</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>skin</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.util.Skin</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>skin</property-name>
+ <property-class>java.lang.String</property-class>
+ <value>blueSky</value>
+ </managed-property>
+ <managed-property>
+ <property-name>standardSkinning</property-name>
+ <property-class>java.lang.String</property-class>
+ <value>enable</value>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>menuState</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.util.MenuState</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>menu</property-name>
+ <property-class>java.util.Map</property-class>
+ <value/>
+ </managed-property>
+ <managed-property>
+ <property-name>selectedMenuItem</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>menuBean</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.util.MenuBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ <managed-property>
+ <property-name>menuState</property-name>
+ <property-class>org.docs.richfaces.util.MenuState</property-class>
+ <value>#{menuState}</value>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>tree</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.tree.Tree</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>nodes</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.tree.Nodes</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>node</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ <managed-property>
+ <property-name>root</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>globalQueue</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.util.GlobalQueue</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ <managed-property>
+ <property-name>globalQueue</property-name>
+ <property-class>boolean</property-class>
+ <value>false</value>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>fileUpload</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.fileUpload.FileUpload</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>layout</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.Layout</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ <managed-property>
+ <property-name>theme</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>shelf</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.tree.Shelf</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>hujations</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.tree.Hujations</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>authentification</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.authentification.Authentification</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>bean</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.tree.Bean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>treeBean</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.tree.TreeBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>actionListenerBean</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.ActionListenerBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>caledar</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.Caledar</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <application>
+ <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
+ </application>
</faces-config>
Copied: branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/a4j/ajaxListener.xhtml (from rev 15503, branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/a4j/media.xhtml)
===================================================================
--- branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/a4j/ajaxListener.xhtml (rev 0)
+++ branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/a4j/ajaxListener.xhtml 2009-09-10 08:09:00 UTC (rev 15520)
@@ -0,0 +1,22 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ template="../layout/template.xhtml"
+ xmlns:a4j="http://richfaces.org/a4j">
+
+ <ui:define name="body">
+ <rich:panel>
+ <rich:messages/>
+ <h:form id="form" ajaxSubmit="true">
+ <a4j:commandLink value="Click to send Ajax request">
+ <a4j:ajaxListener type="org.docs.richfaces.ActionListenerBean"/>
+ </a4j:commandLink>
+ </h:form>
+ </rich:panel>
+ </ui:define>
+</ui:composition>
Modified: branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/mainMenu.xhtml
===================================================================
--- branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/mainMenu.xhtml 2009-09-09 19:18:58 UTC (rev 15519)
+++ branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/mainMenu.xhtml 2009-09-10 08:09:00 UTC (rev 15520)
@@ -77,8 +77,10 @@
</rich:panelMenuGroup>
<rich:panelMenuGroup label="A4J Components" id="group2" value="#{menuState.menu['group2']}">
-
<rich:panelMenuItem actionListener="#{menuBean.select}" mode="server">
+ <h:outputLink value="#{facesContext.externalContext.requestContextPath}/a4j/ajaxListener.xhtml" >a4j:ajaxListener</h:outputLink>
+</rich:panelMenuItem>
+<rich:panelMenuItem actionListener="#{menuBean.select}" mode="server">
<h:outputLink value="#{facesContext.externalContext.requestContextPath}/a4j/queue.xhtml" >a4j:queue</h:outputLink>
</rich:panelMenuItem>
14 years, 6 months
JBoss Rich Faces SVN: r15519 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2009-09-09 15:18:58 -0400 (Wed, 09 Sep 2009)
New Revision: 15519
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_ajaxListener.xml
Log:
https://jira.jboss.org/jira/browse/RF-7275 - a4j:actionListener is fixed
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_ajaxListener.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_ajaxListener.xml 2009-09-09 19:16:39 UTC (rev 15518)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_ajaxListener.xml 2009-09-09 19:18:58 UTC (rev 15519)
@@ -107,7 +107,7 @@
</para>
<programlisting role="JAVA"><![CDATA[...
-public class actionListenerBean implements org.ajax4jsf.event.AjaxListener {
+public class ActionListenerBean implements org.ajax4jsf.event.AjaxListener {
public void processAjax(AjaxEvent event) {
FacesContext.getCurrentInstance().addMessage("form", new FacesMessage("Ajax request is sent"));
}
14 years, 6 months
JBoss Rich Faces SVN: r15518 - in branches/community/3.3.X/docs/userguide/en/src/main: resources/images and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2009-09-09 15:16:39 -0400 (Wed, 09 Sep 2009)
New Revision: 15518
Added:
branches/community/3.3.X/docs/userguide/en/src/main/resources/images/ajaxListener.png
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_ajaxListener.xml
Log:
https://jira.jboss.org/jira/browse/RF-7275 - a4j:actionListener is fixed
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_ajaxListener.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_ajaxListener.xml 2009-09-09 18:10:47 UTC (rev 15517)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_ajaxListener.xml 2009-09-09 19:16:39 UTC (rev 15518)
@@ -1,152 +1,185 @@
<section role="NotInToc" id="a4j_ajaxListener">
- <title>
- <
- a4j:ajaxListener
- >
- <emphasis role="since">
- <superscript> available since <emphasis role="version">3.0.0</emphasis>
- </superscript>
- </emphasis>
- </title>
- <section>
- <title>Description</title>
- <para>The component adds an action listener to a parent component to provide possibility of Ajax update.
- It works like the <emphasis role="bold">
- <property><f:actionListener></property>
- </emphasis> or <emphasis role="bold">
- <property><f:valueChangeListener></property>
- </emphasis> JSF components
- but for the whole Ajax container.
- </para>
- </section>
- <section>
- <title>Key Features</title>
- <itemizedlist>
- <listitem>
- <para>The listener is invoked for Ajax requests only</para>
- </listitem>
- <listitem>
- <para>The listener is always guaranteed to be invoked</para>
- </listitem>
- </itemizedlist>
+ <title>
+ <
+ a4j:ajaxListener
+ >
+ <emphasis role="since">
+ <superscript>available since
+ <emphasis role="version">3.0.0</emphasis>
+ </superscript>
+ </emphasis>
+ </title>
+ <section>
+ <title>Description</title>
+ <para>The
+ <emphasis role="bold">
+ <property><a4j:ajaxListener></property>
+ </emphasis>
+ component adds an action listener to a parent component and works like the
+ <emphasis role="bold">
+ <property><f:actionListener></property>
+ </emphasis>
+ or
+ <emphasis role="bold">
+ <property><f:valueChangeListener></property>
+ </emphasis>
+ JSF components
+ but for the whole Ajax container.
+ </para>
</section>
- <section>
- <title>Details of Usage</title>
- <para>The <emphasis role="bold">
- <property><a4j:ajaxListener></property>
- </emphasis> component adds an action listener to a parent component, which needs to be provided with Ajax support.
- That listener is invoked on each Ajax request during the "Render Response" JSF phase.
- In comparison with JSF <emphasis role="bold">
- <property><f:actionListener></property>
- </emphasis> and <emphasis role="bold">
- <property><f:valueChangeListener></property>
- </emphasis>
- the invocation of the <emphasis role="bold">
- <property><a4j:ajaxListener></property>
- </emphasis> is not skipped in case when validation of Update Model fails.
- The <emphasis role="bold">
- <property><a4j:ajaxListener></property>
- </emphasis> is guarantied to be invoked for each Ajax response.
- </para>
-
- <note>
- <para>
- Ajax listener is not invoked for non-Ajax requests and when RichFaces works in the "Ajax Request generates Non-Ajax Response" mode.
- </para>
- </note>
+ <section>
+ <title>Details of Usage</title>
+ <para>The
+ <emphasis role="bold">
+ <property><a4j:ajaxListener></property>
+ </emphasis>
+ component adds an action listener to a parent component.
+ That listener is invoked on each Ajax request during the "Render Response" JSF phase.
+ In comparison with standard JSF
+ <emphasis role="bold">
+ <property><f:actionListener></property>
+ </emphasis>
+ and
+ <emphasis role="bold">
+ <property><f:valueChangeListener></property>
+ </emphasis>
+ components the invocation of the
+ <emphasis role="bold">
+ <property><a4j:ajaxListener></property>
+ </emphasis>
+ is not skipped in case when validation of "Update Model" fails.
+ The
+ <emphasis role="bold">
+ <property><a4j:ajaxListener></property>
+ </emphasis>
+ is guarantied to be invoked for each Ajax response.
+ </para>
+ <para>
+ The
+ <emphasis>
+ <property>"type"</property>
+ </emphasis>
+ attribute defines the fully qualified Java class name for the listener.
+ This Java class should implement
+ <code>
+ <ulink url="&apidoc_framework;org/ajax4jsf/event/AjaxListener.html">
+ <property>org.ajax4jsf.event.AjaxListener</property>
+ </ulink>
+ </code>
+ interface which is base interface for all listeners, capable for receiving Ajax events.
+ The object on which the Event initially occurred could be accessed using the
+ <code>
+ <ulink url="http://java.sun.com/j2se/1.4.2/docs/api/java/util/EventObject.html">
+ <property>java.util.EventObject.getSource()</property>
+ </ulink>
+ </code>
+ method.
+ </para>
+ <para>
+ The
+ <emphasis role="bold">
+ <property><a4j:ajaxListener></property>
+ </emphasis>
+ is not invoked for non-Ajax requests and when RichFaces works in the "Ajax Request
+ generates Non-Ajax Response" mode, so
+ <emphasis role="bold">
+ <property><a4j:ajaxListener></property>
+ </emphasis>
+ invocation is a good indicator that Ajax
+ Response is going to be processed. Let's check it in the following example.
+ </para>
- <para>
- As example of the <emphasis role="bold">
- <property><a4j:ajaxListener></property>
- </emphasis> component usage one can cite an updating the list of re-rendered components.
-</para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
- <para>
- The <emphasis>
- <property>"type"</property>
- </emphasis> attribute defines the fully qualified Java class name for the listener.
- This Java class implements <code>
- <ulink url="&apidoc_framework;org/ajax4jsf/event/AjaxListener.html">
- <property>org.ajax4jsf.event.AjaxListener</property>
- </ulink>
- </code>interface, which is base interface for all listeners, capable for receiving Ajax events.
- The source of the event could be accessed using the <code>
- <ulink url="http://java.sun.com/j2se/1.4.2/docs/api/java/util/EventObject.html">
- <property>java.util.EventObject.getSource()</property>
- </ulink>
- </code> call.
-</para>
+ <programlisting role="XML"><![CDATA[...
+<rich:messages/>
+<h:form id="form" ajaxSubmit="true">
+ <a4j:commandLink value="Click to send Ajax request">
+ <a4j:ajaxListener type="org.docs.richfaces.actionListenerBean"/>
+ </a4j:commandLink>
+</h:form>
+...]]></programlisting>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
+ <programlisting role="JAVA"><![CDATA[...
+public class actionListenerBean implements org.ajax4jsf.event.AjaxListener {
+ public void processAjax(AjaxEvent event) {
+ FacesContext.getCurrentInstance().addMessage("form", new FacesMessage("Ajax request is sent"));
+ }
+}
+...]]></programlisting>
+ <para>
+ There is a result:
+ </para>
+ <figure>
+ <title>
+ Usage of the
+ <emphasis role="bold">
+ <property><a4j:ajaxListener></property>
+ </emphasis>
+ </title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/ajaxListener.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <programlisting role="XML"><![CDATA[...
-<a4j:commandLink id="cLink" value="Click it To Send Ajax Request">
- <a4j:ajaxListener type="demo.Bean"/>
-</a4j:commandLink>
-...]]></programlisting>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
+ </section>
+ <section>
+ <title>Reference Data</title>
+ <para>
+ <ulink url="&tlddoc;a4j/ajaxListener.html">Table of
+ <a4j:ajaxListener>
+ attributes</ulink>.
+ </para>
+ <table>
+ <title>Component Identification Parameters</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Name</entry>
+ <entry>Value</entry>
+ </row>
+ </thead>
+ <tbody>
- <programlisting role="JAVA"><![CDATA[package demo;
+ <row>
+ <entry>listener-class</entry>
+ <entry>org.ajax4jsf.event.AjaxListener</entry>
+ </row>
+ <row>
+ <entry>event-class</entry>
+ <entry>org.ajax4jsf.event.AjaxEvent</entry>
+ </row>
-import org.ajax4jsf.event.AjaxEvent;
-
-public class Bean implements org.ajax4jsf.event.AjaxListener{
- ...
- public void processAjax(AjaxEvent arg){
- //Custom Developer Code
- }
- ...
-}]]></programlisting>
- </section>
- <section>
- <title>Reference Data</title>
- <para>
- <ulink url="&tlddoc;a4j/ajaxListener.html">Table of
- <a4j:ajaxListener>
- attributes</ulink>.
- </para>
- <table>
- <title>Component Identification Parameters </title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Name</entry>
- <entry>Value</entry>
- </row>
- </thead>
- <tbody>
-
- <row>
- <entry>listener-class</entry>
- <entry>org.ajax4jsf.event.AjaxListener</entry>
- </row>
- <row>
- <entry>event-class</entry>
- <entry>org.ajax4jsf.event.AjaxEvent</entry>
- </row>
-
- <row>
- <entry>tag-class</entry>
- <entry>org.ajax4jsf.taglib.html.jsp.AjaxListenerTag</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- </section>
- <section>
- <title>Relevant Resources Links</title>
- <para>
- Visit <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/ajaxListener.jsf?c=aj...">AjaxListener</ulink> page at RichFaces Livedemo for examples of component usage and their sources.
- </para>
+ <row>
+ <entry>tag-class</entry>
+ <entry>org.ajax4jsf.taglib.html.jsp.AjaxListenerTag</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+ <section>
+ <title>Relevant Resources Links</title>
<para>
- Check Sun JSF TLD documentation for more information on <ulink url="http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/tlddocs/f/valueCha..."><f:valueChangeListener> tag</ulink>.
+ Visit
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/ajaxListener.jsf?c=aj...">
+ AjaxListener
+ </ulink>
+ page at RichFaces Livedemo for examples of component usage and their sources.
</para>
- </section>
+ <para>
+ Check Sun JSF TLD documentation for more information on<ulink
+ url="http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/tlddocs/f/valueCha..."><f:valueChangeListener>
+ tag</ulink>.
+ </para>
+ </section>
</section>
Added: branches/community/3.3.X/docs/userguide/en/src/main/resources/images/ajaxListener.png
===================================================================
(Binary files differ)
Property changes on: branches/community/3.3.X/docs/userguide/en/src/main/resources/images/ajaxListener.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
14 years, 6 months
JBoss Rich Faces SVN: r15517 - in branches/community/3.3.X/test-applications/seleniumTest/richfaces/src: main/webapp/pages/contextMenu and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2009-09-09 14:10:47 -0400 (Wed, 09 Sep 2009)
New Revision: 15517
Modified:
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/main/webapp/layout/autotest/autoTestHiddens.xhtml
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/main/webapp/pages/contextMenu/contextMenu.xhtml
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ContextMenuTest.java
Log:
RFPL-143
Modified: branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/main/webapp/layout/autotest/autoTestHiddens.xhtml
===================================================================
--- branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/main/webapp/layout/autotest/autoTestHiddens.xhtml 2009-09-09 17:57:01 UTC (rev 15516)
+++ branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/main/webapp/layout/autotest/autoTestHiddens.xhtml 2009-09-09 18:10:47 UTC (rev 15517)
@@ -8,9 +8,9 @@
<h:outputText id="_auto_request_params" style="display: none;" value="#{requestBean.paramString}" />
<h:inputHidden id="_auto_process_input" value="#{autoTestBean.processInput}" valueChangeListener="#{autoTestBean.processInputChangeListener}"></h:inputHidden>
<a4j:outputPanel ajaxRendered="true">
- <h:outputText id="_auto_status" style="display: none;" value="#{autoTestBean.status}"></h:outputText>
+ <h:outputText id="_auto_status" value="#{autoTestBean.status}"></h:outputText>
</a4j:outputPanel>
- <h:outputText id="_auto_time" style="display: none;" value="#{autoTestBean.text}"></h:outputText>
+ <h:outputText id="_auto_time" value="#{autoTestBean.text}"></h:outputText>
<h:outputText id="_auto_value" style="display: none;" value="#{autoTestBean.value}"></h:outputText>
<h:commandButton id="_auto_simple_submit" value="Simple submit" immediate="#{autoTestBean.immediate}" style="display: none;" />
<a4j:commandButton id="_auto_ajax_submit" value="Ajax submit" reRender="componentId" immediate="#{autoTestBean.immediate}" style="display: none;" />
Modified: branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/main/webapp/pages/contextMenu/contextMenu.xhtml
===================================================================
(Binary files differ)
Modified: branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ContextMenuTest.java
===================================================================
--- branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ContextMenuTest.java 2009-09-09 17:57:01 UTC (rev 15516)
+++ branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ContextMenuTest.java 2009-09-09 18:10:47 UTC (rev 15517)
@@ -288,7 +288,7 @@
.getXpathCount(
"//div[@id='"
+ menuBody
- + "']/div/div[@class='dr-menu-separator rich-menu-separator']")
+ + "']/div/div[@class='rich-menu-separator']")
.intValue();
Assert.assertTrue(separatorCount == 1, "Separators count is invalid");
@@ -311,7 +311,7 @@
.getXpathCount(
"//div[@id='"
+ menuBody
- + "']/div/div[@class='dr-menu-separator rich-menu-separator']")
+ + "']/div/div[@class='rich-menu-separator']")
.intValue();
Assert.assertTrue(separatorCount == 1, "Separators count is invalid");
14 years, 6 months
JBoss Rich Faces SVN: r15516 - branches/community/3.3.X/docs/userguide/en/src/main/resources/images.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-09-09 13:57:01 -0400 (Wed, 09 Sep 2009)
New Revision: 15516
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/resources/images/modalPanel2.png
branches/community/3.3.X/docs/userguide/en/src/main/resources/images/modalPanel3.png
Log:
RF-7804: Rich Output component group description review --> rich:modalPanel
Modified: branches/community/3.3.X/docs/userguide/en/src/main/resources/images/modalPanel2.png
===================================================================
(Binary files differ)
Modified: branches/community/3.3.X/docs/userguide/en/src/main/resources/images/modalPanel3.png
===================================================================
(Binary files differ)
14 years, 6 months
JBoss Rich Faces SVN: r15515 - branches/community/3.3.X/examples/photoalbum/tests/src/test/resources.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2009-09-09 13:34:20 -0400 (Wed, 09 Sep 2009)
New Revision: 15515
Modified:
branches/community/3.3.X/examples/photoalbum/tests/src/test/resources/testng.xml
Log:
Investigate and fix photoalbum tests
https://jira.jboss.org/jira/browse/RFPL-86
Modified: branches/community/3.3.X/examples/photoalbum/tests/src/test/resources/testng.xml
===================================================================
--- branches/community/3.3.X/examples/photoalbum/tests/src/test/resources/testng.xml 2009-09-09 17:25:37 UTC (rev 15514)
+++ branches/community/3.3.X/examples/photoalbum/tests/src/test/resources/testng.xml 2009-09-09 17:34:20 UTC (rev 15515)
@@ -1,29 +1,76 @@
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
-<suite name="seleniumTestDANe">
- <!-- test name="IEFunctionalTests">
- <parameter name="browser" value="*iexplore"/>
- </test-->
- <test name="FireFoxFunctionalTestsDANe1">
- <parameter name="browser" value="*firefox"/>
- <classes>
- <class name="org.richfaces.photoalbum.testng.SearchTest" />
- <class name="org.richfaces.photoalbum.testng.ScrollerUseCasesTest" />
- </classes>
- </test>
- <test name="FireFoxFunctionalTestsDANe2">
- <parameter name="browser" value="*firefox"/>
- <classes>
- <class name="org.richfaces.photoalbum.testng.DnDUseCasesTest" />
- </classes>
- </test>
- <test name="FireFoxFunctionalTestsDANe3">
- <parameter name="browser" value="*firefox"/>
- <packages>
- <package name="org.richfaces.photoalbum.testng" >
- <exclude name="SearchTest"></exclude>
- <exclude name="DnDUseCasesTest"></exclude>
- <exclude name="ScrollerUseCasesTest"></exclude>
- </package>
- </packages>
- </test>
+<suite name="seleniumTestDANe" thread-count="1">
+ <!-- test name="IEFunctionalTests">
+ <parameter name="browser" value="*iexplore"/>
+ </test-->
+ <test name="FireFoxFunctionalTestsDANe1">
+ <parameter name="browser" value="*firefox"/>
+ <classes>
+ <class name="org.richfaces.photoalbum.testng.AddUseCasesTest"/>
+ <class name="org.richfaces.photoalbum.testng.DeleteUseCasesTest"/>
+ <class name="org.richfaces.photoalbum.testng.DnDUseCasesTest"/>
+ <class name="org.richfaces.photoalbum.testng.EditUseCasesTest"/>
+ <class name="org.richfaces.photoalbum.testng.ImageResizerTest"/>
+ <class name="org.richfaces.photoalbum.testng.LoginTest"/>
+ <class name="org.richfaces.photoalbum.testng.OpenAreasUseCasesTest"/>
+ <class name="org.richfaces.photoalbum.testng.ScrollerUseCasesTest"/>
+ <class name="org.richfaces.photoalbum.testng.SearchTest"/>
+ </classes>
+ </test>
</suite>
+
+ <!--suite thread-count="1" verbose="0" name="seleniumTestDANe" annotations="JDK">
+ <test name="FireFoxFunctionalTestsDANe1" junit="false">
+ <parameter name="browser" value="*firefox"/>
+ <classes>
+ <class name="org.richfaces.photoalbum.testng.AddUseCasesTest"/>
+ <class name="org.richfaces.photoalbum.testng.DeleteUseCasesTest"/>
+ <class name="org.richfaces.photoalbum.testng.DnDUseCasesTest"/>
+ <class name="org.richfaces.photoalbum.testng.EditUseCasesTest"/>
+ <class name="org.richfaces.photoalbum.testng.ImageResizerTest"/>
+ <class name="org.richfaces.photoalbum.testng.LoginTest"/>
+ <class name="org.richfaces.photoalbum.testng.OpenAreasUseCasesTest"/>
+ <class name="org.richfaces.photoalbum.testng.ScrollerUseCasesTest"/>
+ <class name="org.richfaces.photoalbum.testng.SearchTest"/>
+ </classes>
+ </test>
+ </suite>
+
+ <!- -DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
+ <suite name="seleniumTestDANe">
+ <test name="IEFunctionalTests">
+ <parameter name="browser" value="*iexplore"/>
+ </test>
+ <test name="FireFoxFunctionalTestsDANe1">
+ <parameter name="browser" value="*firefox"/>
+ <packages>
+ <package name="org.richfaces.photoalbum.testng" />
+ <include name="AddUseCasesTest" />
+ <include name="DeleteUseCasesTest" />
+ <include name="EditUseCasesTest" />
+ <include name="ImageResizerTest" />
+ <include name="LoginTest" />
+ <include name="OpenAreasUseCasesTest" />
+ <include name="SearchTest" />
+ <include name="ScrollerUseCasesTest" />
+ <include name="DnDUseCasesTest" />
+ </package>
+ </packages>
+ </test>
+ <test name="FireFoxFunctionalTestsDANe2">
+ <parameter name="browser" value="*firefox"/>
+ <classes>
+ <class name="org.richfaces.photoalbum.testng.DnDUseCasesTest"/>
+ </classes>
+ </test>
+ <test name="FireFoxFunctionalTestsDANe3">
+ <parameter name="browser" value="*firefox"/>
+ <packages>
+ <package name="org.richfaces.photoalbum.testng">
+ <exclude name="SearchTest"></exclude>
+ <exclude name="DnDUseCasesTest"></exclude>
+ <exclude name="ScrollerUseCasesTest"></exclude>
+ </package>
+ </packages>
+ </test>
+ </suite> -->
14 years, 6 months
JBoss Rich Faces SVN: r15514 - root/framework/trunk/impl/src/main/resources/META-INF/resources.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2009-09-09 13:25:37 -0400 (Wed, 09 Sep 2009)
New Revision: 15514
Modified:
root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces.js
Log:
https://jira.jboss.org/jira/browse/RFPL-108
Modified: root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces.js
===================================================================
--- root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces.js 2009-09-09 17:11:15 UTC (rev 15513)
+++ root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces.js 2009-09-09 17:25:37 UTC (rev 15514)
@@ -48,7 +48,7 @@
this.each(function() { out += xs.serializeToString(this); });
} else if (this[0].xml !== undefined) {
this.each(function() { out += this.xml; });
- } else if (this.length > 0) {
+ } else if (this.length > 0) { // PY: [if] not needed, was upper
this.each( function() { out += this; } );
}
}
@@ -123,7 +123,7 @@
var useBrowserConsole = false;
- var AM_PM = /(\s*(?:a|p)m)$/ig;
+ var AM_PM = /(\s*(?:a|p)m)$/ig; // PY: [g] not needed when $ - end of string
var getMessagePrefix = function(level) {
var date = new Date();
@@ -237,7 +237,7 @@
richfaces.interpolate = function (placeholders, context) {
var contextVarsArray = new Array();
for (var contextVar in context) {
- if (/^\w+$/.test(contextVar)) {
+ if (/^\w+$/.test(contextVar)) { // PY: define regexp before for
//guarantees that no escaping for the below RegExp is necessary
contextVarsArray.push(contextVar);
}
@@ -262,8 +262,8 @@
var ondataavailable = options.ondataavailable;
richfaces.stopPush(pushId);
-
- pushTracker[pushId] = setTimeout(function() {
+
+ pushTracker[pushId] = setTimeout(function() { // PY: may be define this function in richfaces object to avoid definition every time when call startPush
var ajaxOptions = {
type: "HEAD",
//TODO - encodeURIComponent; URL sessionId handling check
14 years, 6 months
JBoss Rich Faces SVN: r15513 - management/planning.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-09-09 13:11:15 -0400 (Wed, 09 Sep 2009)
New Revision: 15513
Modified:
management/planning/richfaces_4x_components_priority_list.ods
Log:
Latest updates from Ilya
Modified: management/planning/richfaces_4x_components_priority_list.ods
===================================================================
(Binary files differ)
14 years, 6 months