JBoss Rich Faces SVN: r21893 - branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/dataScroller/samples.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2011-02-23 11:34:47 -0500 (Wed, 23 Feb 2011)
New Revision: 21893
Modified:
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/dataScroller/samples/dataScrollerAPI-sample.xhtml
Log:
https://jira.jboss.org/browse/RF-10513
Modified: branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/dataScroller/samples/dataScrollerAPI-sample.xhtml
===================================================================
--- branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/dataScroller/samples/dataScrollerAPI-sample.xhtml 2011-02-23 15:24:27 UTC (rev 21892)
+++ branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/dataScroller/samples/dataScrollerAPI-sample.xhtml 2011-02-23 16:34:47 UTC (rev 21893)
@@ -17,7 +17,7 @@
onclick="#{rich:component('ds')}.previous()" />
<a4j:repeat rows="3" value="#{slidesBean.pictures}" var="pic"
id="pics">
- <h:graphicImage value="#{pic.uri}" style="" />
+ <h:graphicImage value="#{pic.uri}" style="" width="175"/>
</a4j:repeat>
<h:graphicImage value="/images/icons/scroller/arr_right.png"
onclick="#{rich:component('ds')}.next()" />
13 years, 2 months
JBoss Rich Faces SVN: r21892 - modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2011-02-23 10:24:27 -0500 (Wed, 23 Feb 2011)
New Revision: 21892
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractMetamerTest.java
Log:
list of templates reduced
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractMetamerTest.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractMetamerTest.java 2011-02-23 14:35:15 UTC (rev 21891)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractMetamerTest.java 2011-02-23 15:24:27 UTC (rev 21892)
@@ -93,8 +93,7 @@
*/
public static final long TIMEOUT = 5000;
@Inject
- @Templates({"plain", "richDataTable1,redDiv", "richDataTable2,redDiv", "a4jRepeat1", "a4jRepeat2", "hDataTable1",
- "hDataTable2", "uiRepeat1", "uiRepeat2"})
+ @Templates({"plain", "richDataTable1", "a4jRepeat2", "hDataTable1", "uiRepeat2"})
private TemplatesList template;
/**
13 years, 2 months
JBoss Rich Faces SVN: r21891 - in branches/4.0.0.CR1/core/api/src: test/java/org/ajax4jsf/javascript and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2011-02-23 09:35:15 -0500 (Wed, 23 Feb 2011)
New Revision: 21891
Modified:
branches/4.0.0.CR1/core/api/src/main/java/org/ajax4jsf/javascript/ScriptUtils.java
branches/4.0.0.CR1/core/api/src/test/java/org/ajax4jsf/javascript/ScriptUtilsTest.java
Log:
https://issues.jboss.org/browse/RF-10574
Modified: branches/4.0.0.CR1/core/api/src/main/java/org/ajax4jsf/javascript/ScriptUtils.java
===================================================================
--- branches/4.0.0.CR1/core/api/src/main/java/org/ajax4jsf/javascript/ScriptUtils.java 2011-02-23 14:35:07 UTC (rev 21890)
+++ branches/4.0.0.CR1/core/api/src/main/java/org/ajax4jsf/javascript/ScriptUtils.java 2011-02-23 14:35:15 UTC (rev 21891)
@@ -35,6 +35,7 @@
import java.util.Iterator;
import java.util.Map;
import java.util.MissingResourceException;
+import java.util.SimpleTimeZone;
import javax.faces.FacesException;
import javax.faces.context.ResponseWriter;
@@ -173,7 +174,7 @@
throw new FacesException("Error in conversion Java Object to JavaScript", e);
}
- boolean ignorePropertyReadException = obj.getClass().getName().startsWith("java.sql.");
+ boolean ignorePropertyReadException = obj.getClass().getName().startsWith("java.sql.") || obj.getClass().equals(SimpleTimeZone.class);
boolean first = true;
for (PropertyDescriptor propertyDescriptor : propertyDescriptors) {
Modified: branches/4.0.0.CR1/core/api/src/test/java/org/ajax4jsf/javascript/ScriptUtilsTest.java
===================================================================
--- branches/4.0.0.CR1/core/api/src/test/java/org/ajax4jsf/javascript/ScriptUtilsTest.java 2011-02-23 14:35:07 UTC (rev 21890)
+++ branches/4.0.0.CR1/core/api/src/test/java/org/ajax4jsf/javascript/ScriptUtilsTest.java 2011-02-23 14:35:15 UTC (rev 21891)
@@ -27,6 +27,7 @@
import static org.easymock.EasyMock.eq;
import static org.easymock.EasyMock.expectLastCall;
import static org.easymock.EasyMock.isNull;
+import static org.junit.Assert.assertThat;
import java.util.ArrayList;
import java.util.Arrays;
@@ -36,6 +37,7 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
+import java.util.TimeZone;
import java.util.TreeMap;
import java.util.TreeSet;
@@ -47,6 +49,7 @@
import org.easymock.CaptureType;
import org.jboss.test.faces.mock.MockFacesEnvironment;
import org.junit.Test;
+import org.junit.internal.matchers.StringContains;
/**
* @author shura
@@ -472,4 +475,27 @@
assertEquals("test\\#", ScriptUtils.escapeCSSMetachars("test#"));
assertEquals("test\\#\\=", ScriptUtils.escapeCSSMetachars("test#="));
}
+
+ @Test
+ public void testTimezoneSerialization() throws Exception {
+ TimeZone utcPlusTwoTZ = TimeZone.getTimeZone("GMT+02:00");
+
+ String serializedUTCPlusTwoTZ = dehydrate(ScriptUtils.toScript(utcPlusTwoTZ));
+
+ assertThat(serializedUTCPlusTwoTZ, StringContains.containsString("\"DSTSavings\":0"));
+ assertThat(serializedUTCPlusTwoTZ, StringContains.containsString("\"ID\":\"GMT+02:00\""));
+ assertThat(serializedUTCPlusTwoTZ, StringContains.containsString("\"rawOffset\":7200000"));
+
+ TimeZone pstTimeZone = TimeZone.getTimeZone("PST");
+ String serializedPSTTimeZone = dehydrate(ScriptUtils.toScript(pstTimeZone));
+
+ assertThat(serializedPSTTimeZone, StringContains.containsString("\"ID\":\"PST\""));
+ assertThat(serializedPSTTimeZone, StringContains.containsString("\"rawOffset\":-28800000"));
+
+ TimeZone sfTimeZone = TimeZone.getTimeZone("America/New_York");
+ String serializedSFTimeZone = dehydrate(ScriptUtils.toScript(sfTimeZone));
+
+ assertThat(serializedSFTimeZone, StringContains.containsString("\"ID\":\"America\\/New_York\""));
+ assertThat(serializedSFTimeZone, StringContains.containsString("\"rawOffset\":-18000000"));
+ }
}
13 years, 2 months
JBoss Rich Faces SVN: r21890 - branches/4.0.0.CR1/ui/input/ui/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2011-02-23 09:35:07 -0500 (Wed, 23 Feb 2011)
New Revision: 21890
Modified:
branches/4.0.0.CR1/ui/input/ui/src/main/java/org/richfaces/component/AbstractCalendar.java
Log:
RF-10573 calendar: has no default event for behavior
Modified: branches/4.0.0.CR1/ui/input/ui/src/main/java/org/richfaces/component/AbstractCalendar.java
===================================================================
--- branches/4.0.0.CR1/ui/input/ui/src/main/java/org/richfaces/component/AbstractCalendar.java 2011-02-23 13:56:58 UTC (rev 21889)
+++ branches/4.0.0.CR1/ui/input/ui/src/main/java/org/richfaces/component/AbstractCalendar.java 2011-02-23 14:35:07 UTC (rev 21890)
@@ -275,7 +275,7 @@
@Attribute(events = @EventName("inputblur"))
public abstract String getOninputblur();
- @Attribute(events = @EventName("change"))
+ @Attribute(events = @EventName(value="change", defaultEvent=true))
public abstract String getOnchange();
@Attribute(events = @EventName("dateselect"))
13 years, 2 months
JBoss Rich Faces SVN: r21889 - branches/4.0.0.CR1/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2011-02-23 08:56:58 -0500 (Wed, 23 Feb 2011)
New Revision: 21889
Modified:
branches/4.0.0.CR1/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/popupPanel.ecss
Log:
https://jira.jboss.org/browse/RF-10572
Modified: branches/4.0.0.CR1/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/popupPanel.ecss
===================================================================
--- branches/4.0.0.CR1/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/popupPanel.ecss 2011-02-23 13:56:51 UTC (rev 21888)
+++ branches/4.0.0.CR1/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/popupPanel.ecss 2011-02-23 13:56:58 UTC (rev 21889)
@@ -30,6 +30,7 @@
top: 6px;
left: 6px;
bottom: -6px;
+ z-index: -1;
}
.rf-pp-cntr {
@@ -73,7 +74,6 @@
top : 0px;
left : 0px;
overflow : auto;
- position: relative;
background : '#{richSkin.generalBackgroundColor}';
}
.rf-pp-cnt {
13 years, 2 months
JBoss Rich Faces SVN: r21888 - branches/4.0.X/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2011-02-23 08:56:51 -0500 (Wed, 23 Feb 2011)
New Revision: 21888
Modified:
branches/4.0.X/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/popupPanel.ecss
Log:
https://jira.jboss.org/browse/RF-10572
Modified: branches/4.0.X/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/popupPanel.ecss
===================================================================
--- branches/4.0.X/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/popupPanel.ecss 2011-02-23 12:34:19 UTC (rev 21887)
+++ branches/4.0.X/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/popupPanel.ecss 2011-02-23 13:56:51 UTC (rev 21888)
@@ -30,6 +30,7 @@
top: 6px;
left: 6px;
bottom: -6px;
+ z-index: -1;
}
.rf-pp-cntr {
@@ -73,7 +74,6 @@
top : 0px;
left : 0px;
overflow : auto;
- position: relative;
background : '#{richSkin.generalBackgroundColor}';
}
.rf-pp-cnt {
13 years, 2 months
JBoss Rich Faces SVN: r21887 - modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2011-02-23 07:34:19 -0500 (Wed, 23 Feb 2011)
New Revision: 21887
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarBasic.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarModel.java
Log:
tests for rich:calendar fixed
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarBasic.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarBasic.java 2011-02-23 06:50:04 UTC (rev 21886)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarBasic.java 2011-02-23 12:34:19 UTC (rev 21887)
@@ -23,7 +23,6 @@
import java.text.ParseException;
import static org.jboss.test.selenium.guard.request.RequestTypeGuardFactory.guardNoRequest;
-import static org.jboss.test.selenium.guard.request.RequestTypeGuardFactory.guardXhr;
import static org.jboss.test.selenium.utils.URLUtils.buildUrl;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertFalse;
@@ -33,7 +32,6 @@
import java.net.URL;
import java.text.SimpleDateFormat;
import java.util.Date;
-import org.richfaces.tests.metamer.ftest.annotations.IssueTracking;
import org.testng.annotations.Test;
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarModel.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarModel.java 2011-02-23 06:50:04 UTC (rev 21886)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarModel.java 2011-02-23 12:34:19 UTC (rev 21887)
@@ -31,7 +31,6 @@
import java.text.SimpleDateFormat;
import java.util.Date;
-
import org.testng.annotations.Test;
/**
@@ -50,7 +49,9 @@
@Test
public void testClasses() {
selenium.click(input);
+ String month = selenium.getText(monthLabel);
selenium.click(nextMonthButton);
+ waitGui.failWith("Month did not change.").waitForChange(month, retrieveText.locator(monthLabel));
for (int i = 7; i < 28; i++) {
switch (i % 7) {
@@ -75,11 +76,13 @@
@Override
public void testApplyButton() {
selenium.click(input);
+ String month = selenium.getText(monthLabel);
selenium.click(nextMonthButton);
+ waitGui.failWith("Month did not change.").waitForChange(month, retrieveText.locator(monthLabel));
selenium.click(cellDay.format(17));
String day = selenium.getText(cellDay.format(17));
- String month = selenium.getText(monthLabel);
+ month = selenium.getText(monthLabel);
String selectedDate = null;
try {
13 years, 2 months
JBoss Rich Faces SVN: r21886 - modules/docs/trunk/Component_Reference/src/main/docbook/en-US.
by richfaces-svn-commits@lists.jboss.org
Author: SeanRogers
Date: 2011-02-23 01:50:04 -0500 (Wed, 23 Feb 2011)
New Revision: 21886
Modified:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Actions.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Panels_and_containers.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Processing_management.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml
Log:
Partial update of JavaScript API documentation RFPL-1085
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Actions.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Actions.xml 2011-02-23 02:12:57 UTC (rev 21885)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Actions.xml 2011-02-23 06:50:04 UTC (rev 21886)
@@ -518,6 +518,33 @@
The <sgmltag><a4j:poll></sgmltag> component can be enabled and disabled using the <varname>enabled</varname> attribute. Using Expression Language (<acronym>EL</acronym>), the <varname>enabled</varname> attribute can point to a bean property to apply a particular attribute value.
</para>
</section>
+
+ <!-- TODO: not in Final
+ <section id="sect-Component_Reference-a4jpoll-JavaScript_API">
+ <title>JavaScript API</title>
+ <para>
+ The <sgmltag><a4j:poll></sgmltag> component can be controlled through the JavaScript API. The JavaScript API provides the following functions:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term><function>start()</function></term>
+ <listitem>
+ <para>
+ Start polling the server.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>stop()</function></term>
+ <listitem>
+ <para>
+ Stop polling the server.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </section>
+ -->
<section id="sect-Component_Reference-a4jpoll-Reference_data">
<title>Reference data</title>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Panels_and_containers.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Panels_and_containers.xml 2011-02-23 02:12:57 UTC (rev 21885)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Panels_and_containers.xml 2011-02-23 06:50:04 UTC (rev 21886)
@@ -203,6 +203,39 @@
</itemizedlist>
</section>
+ <section id="sect-Component_Reference-richaccordion-JavaScript_API">
+ <title>JavaScript API</title>
+ <para>
+ The <sgmltag><rich:accordion></sgmltag> component can be controlled through the JavaScript API. The JavaScript API provides the following functions, which are common to all switchable panels:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term><function>getItems()</function></term>
+ <listitem>
+ <para>
+ Return an array of the items contained in the accordion control.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>getItemsNames()</function></term>
+ <listitem>
+ <para>
+ Return an array of the names of the items contained in the accordion control.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>switchToItem(itemName)</function></term>
+ <listitem>
+ <para>
+ Switch to and display the item identified by the <parameter>itemName</parameter> string passed as a parameter.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </section>
+
<section id="sect-Component_Reference-richaccordion-Reference_data">
<title>Reference data</title>
<itemizedlist>
@@ -420,6 +453,23 @@
</itemizedlist>
</section>
+ <section id="sect-Component_Reference-richcollapsiblePanel-JavaScript_API">
+ <title>JavaScript API</title>
+ <para>
+ The <sgmltag><rich:collapsiblePanel></sgmltag> component can be controlled through the JavaScript API. The JavaScript API provides the following functions:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term><function>switchPanel()</function></term>
+ <listitem>
+ <para>
+ Switch the state of the collapsible panel (expanded or collapsed).
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </section>
+
<section id="sect-Component_Reference-richcollapsiblePanel-Reference_data">
<title>Reference data</title>
<itemizedlist>
@@ -794,6 +844,39 @@
</itemizedlist>
</section>
+ <section id="sect-Component_Reference-richtabPanel-JavaScript_API">
+ <title>JavaScript API</title>
+ <para>
+ The <sgmltag><rich:tabPanel></sgmltag> component can be controlled through the JavaScript API. The JavaScript API provides the following functions, which are common to all switchable panels:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term><function>getItems()</function></term>
+ <listitem>
+ <para>
+ Return an array of the tabs contained in the tab panel.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>getItemsNames()</function></term>
+ <listitem>
+ <para>
+ Return an array of the names of the tabs contained in the tab panel.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>switchToItem(itemName)</function></term>
+ <listitem>
+ <para>
+ Switch to and display the item identified by the <parameter>itemName</parameter> string passed as a parameter.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </section>
+
<section id="sect-Component_Reference-richtabPanel-Reference_data">
<title>Reference data</title>
<itemizedlist>
@@ -997,6 +1080,39 @@
</variablelist>
</section>
+ <section id="sect-Component_Reference-richtogglePanel-JavaScript_API">
+ <title>JavaScript API</title>
+ <para>
+ The <sgmltag><rich:togglePanel></sgmltag> component can be controlled through the JavaScript API. The JavaScript API provides the following functions, which are common to all switchable panels:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term><function>getItems()</function></term>
+ <listitem>
+ <para>
+ Return an array of the items contained in the toggle panel.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>getItemsNames()</function></term>
+ <listitem>
+ <para>
+ Return an array of the names of the items contained in the toggle panel.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>switchToItem(itemName)</function></term>
+ <listitem>
+ <para>
+ Switch to and display the item identified by the <parameter>itemName</parameter> string passed as a parameter.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </section>
+
<section id="sect-Component_Reference-richtogglePanel-Reference_data">
<title>Reference data</title>
<itemizedlist>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Processing_management.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Processing_management.xml 2011-02-23 02:12:57 UTC (rev 21885)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Processing_management.xml 2011-02-23 06:50:04 UTC (rev 21886)
@@ -226,6 +226,31 @@
</example>
</section>
+ <section id="sect-Component_Reference-a4jstatus-JavaScript_API">
+ <title>JavaScript API</title>
+ <para>
+ The <sgmltag><a4j:status></sgmltag> component can be controlled through the JavaScript API. The JavaScript API provides the following functions:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term><function>start()</function></term>
+ <listitem>
+ <para>
+ Start monitoring the status.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>stop()</function></term>
+ <listitem>
+ <para>
+ Stop monitoring the status.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </section>
+
<section id="sect-Component_Reference-a4jstatus-Reference_data">
<title>Reference data</title>
<itemizedlist>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml 2011-02-23 02:12:57 UTC (rev 21885)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml 2011-02-23 06:50:04 UTC (rev 21886)
@@ -114,6 +114,47 @@
</section>
-->
+ <section id="sect-Component_Reference-richautocomplete-JavaScript_API">
+ <title>JavaScript API</title>
+ <para>
+ The <sgmltag><rich:autocomplete></sgmltag> component can be controlled through the JavaScript API. The JavaScript API provides the following functions:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term><function>getValue()</function></term>
+ <listitem>
+ <para>
+ Get the current value of the text field.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>setValue(newValue)</function></term>
+ <listitem>
+ <para>
+ Set the value of the text field to the <parameter>newValue</parameter> string passed as a parameter.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>showPopup()</function></term>
+ <listitem>
+ <para>
+ Show the pop-up list of completion values.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>hidePopup()</function></term>
+ <listitem>
+ <para>
+ Hide the pop-up list.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </section>
+
<section id="sect-Component_Reference-richautocomplete-Reference_data">
<title>Reference data</title>
<itemizedlist>
@@ -465,13 +506,37 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><function>selectDate(date)</function></term>
+ <term><function>getValue()</function></term>
<listitem>
<para>
- Select the specified date. If the date is not in the currently displayed month, a request is performed to display the correct month.
+ Return the selected date value of the calendar.
</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><function>getValueAsString()</function></term>
+ <listitem>
+ <para>
+ Return the selected date value of the calendar as a formatted string.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>setValue(newValue)</function></term>
+ <listitem>
+ <para>
+ Set the selected date value to the <parameter>newValue</parameter> date passed as a parameter. If the new date is not in the currently displayed month, a request is performed to display the correct month.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>resetValue()</function></term>
+ <listitem>
+ <para>
+ Clear the selected date value.
+ </para>
+ </listitem>
+ </varlistentry>
<!--
<varlistentry>
<term><function>isDateEnabled(date)</function></term>
@@ -514,6 +579,7 @@
</listitem>
</varlistentry>
-->
+ <!--
<varlistentry>
<term><function>nextMonth()</function></term>
<listitem>
@@ -546,7 +612,16 @@
</para>
</listitem>
</varlistentry>
+ -->
<varlistentry>
+ <term><function>today()</function></term>
+ <listitem>
+ <para>
+ Select today's date.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
<term><function>getCurrentMonth()</function></term>
<listitem>
<para>
@@ -563,37 +638,45 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><function>today()</function></term>
+ <term><function>showSelectedDate()</function></term>
<listitem>
<para>
- Select today's date.
+ Show the calendar month that contains the currently selected date.
</para>
</listitem>
</varlistentry>
<varlistentry>
- <term><function>getSelectedDate()</function></term>
+ <term><function>showDateEditor()</function></term>
<listitem>
<para>
- Return the currently selected date.
+ Show the date editor pop-up.
</para>
</listitem>
</varlistentry>
<varlistentry>
- <term><function>Object getData()</function></term>
+ <term><function>hideDateEditor()</function></term>
<listitem>
<para>
- Return additional data for the date.
+ Hide the date editor pop-up.
</para>
</listitem>
</varlistentry>
<varlistentry>
- <term><function>resetSelectedDate()</function></term>
+ <term><function>showTimeEditor()</function></term>
<listitem>
<para>
- Clear the selected day value.
+ Show the time editor pop-up.
</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><function>hideTimeEditor()</function></term>
+ <listitem>
+ <para>
+ Hide the time editor pop-up.
+ </para>
+ </listitem>
+ </varlistentry>
</variablelist>
</section>
@@ -839,7 +922,7 @@
<section id="sect-Component_Reference-Rich_inputs-richinplaceInput">
<title><sgmltag><rich:inplaceInput></sgmltag></title>
<para>
- The <sgmltag><rich:inplaceInput></sgmltag> component allows information to be entered in-line in blocks of text, improving readability of the text. Multiple input regions can be navigated with keyboard navigation. The component has three functional states: the "view" state, where the component displays its initial setting, such as "click to edit"; the "edit" state, where the user can input text; and the "changed" state, where the new value for the component has been confirmed but can be edited again if required.
+ The <sgmltag><rich:inplaceInput></sgmltag> component allows information to be entered in-line in blocks of text, improving readability of the text. Multiple input regions can be navigated with keyboard navigation. The component has three functional states: the <emphasis>view</emphasis> state, where the component displays its initial setting, such as "click to edit"; the <emphasis>edit</emphasis> state, where the user can input text; and the "changed" state, where the new value for the component has been confirmed but can be edited again if required.
</para>
<section id="sect-Component_Reference-richinplaceInput-Basic_usage">
@@ -852,14 +935,14 @@
<section id="sect-Component_Reference-richinplaceInput-Interactivity_options">
<title>Interactivity options</title>
<para>
- When in the initial "view" state, the starting label can be set using the <varname>defaultLabel</varname> attribute. Once the user has entered text, the label is stored in the model specified by the <varname>value</varname> attribute. The use of the default label and value is shown in <xref linkend="exam-Component_Reference-richinplaceInput-Default_label_and_value" />.
+ When in the initial <emphasis>view</emphasis> state, the starting label can be set using the <varname>defaultLabel</varname> attribute. Once the user has entered text, the label is stored in the model specified by the <varname>value</varname> attribute. The use of the default label and value is shown in <xref linkend="exam-Component_Reference-richinplaceInput-Default_label_and_value" />.
</para>
<example id="exam-Component_Reference-richinplaceInput-Default_label_and_value">
<title>Default label and value</title>
<programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-richinplaceInput-Default_label_and_value.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
</example>
<para>
- By default, the event to switch the component to the "edit" state is a single mouse click. This can be changed using the <varname>editEvent</varname> attribute to specify a different event.
+ By default, the event to switch the component to the <emphasis>edit</emphasis> state is a single mouse click. This can be changed using the <varname>editEvent</varname> attribute to specify a different event.
</para>
<para>
The user can confirm and save their input by pressing the <keycap>Enter</keycap> key or cancel by pressing the <keycap>Esc</keycap> key. Alternatively, buttons for confirming or canceling can be added to the component by setting <code>showControls="true"</code>.
@@ -878,28 +961,93 @@
<itemizedlist>
<listitem>
<para>
- <varname>oneditactivation</varname> is triggered before the "edit" state is activated.
+ <varname>oneditactivation</varname> is triggered before the <emphasis>edit</emphasis> state is activated.
</para>
</listitem>
<listitem>
<para>
- <varname>oneditactivated</varname> is triggered after the "edit" state is activated.
+ <varname>oneditactivated</varname> is triggered after the <emphasis>edit</emphasis> state is activated.
</para>
</listitem>
<listitem>
<para>
- <varname>onviewactivation</varname> is triggered before the "view" or "changed" state is activated.
+ <varname>onviewactivation</varname> is triggered before the <emphasis>view</emphasis> or "changed" state is activated.
</para>
</listitem>
<listitem>
<para>
- <varname>onviewactivated</varname> is triggered after the "view" or "changed" state is activated.
+ <varname>onviewactivated</varname> is triggered after the <emphasis>view</emphasis> or "changed" state is activated.
</para>
</listitem>
</itemizedlist>
</section>
-->
+ <section id="sect-Component_Reference-richinplaceInput-JavaScript_API">
+ <title>JavaScript API</title>
+ <para>
+ The <sgmltag><rich:inplaceInput></sgmltag> component can be controlled through the JavaScript API. The JavaScript API provides the following functions:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term><function>getValue()</function></term>
+ <listitem>
+ <para>
+ Get the current value of the input control.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>setValue(newValue)</function></term>
+ <listitem>
+ <para>
+ Set the value of the input control to the <parameter>newValue</parameter> string passed as a parameter.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>isEditState()</function></term>
+ <listitem>
+ <para>
+ Returns <literal>true</literal> if the control is currently in the <emphasis>edit</emphasis> state, or <literal>false</literal> if the control is currently in the <emphasis>view</emphasis> state.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>isValueChanged()</function></term>
+ <listitem>
+ <para>
+ Returns <literal>true</literal> if the control's value has been changed from the default.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>save()</function></term>
+ <listitem>
+ <para>
+ Saves the current item as the control's value.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>cancel()</function></term>
+ <listitem>
+ <para>
+ Cancel editing the value.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>getInput()</function></term>
+ <listitem>
+ <para>
+ Return the input entered into the control by the user.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </section>
+
<section id="sect-Component_Reference-richinplaceInput-Reference_data">
<title>Reference data</title>
<itemizedlist>
@@ -936,7 +1084,7 @@
<section id="sect-Component_Reference-Rich_inputs-richinplaceSelect">
<title><sgmltag><rich:inplaceSelect></sgmltag></title>
<para>
- The <sgmltag><rich:inplaceSelect></sgmltag> component is similar to the <sgmltag><rich:inplaceInput></sgmltag> component, except that the <sgmltag><rich:inplaceSelect></sgmltag> component uses a drop-down selection box to enter text instead of a regular text field. Changes can be rendered either in-line or for the whole block, and inputs can be focused with keyboard navigation. The component has three functional states: the "view" state, where the component displays its initial setting, such as "click to edit"; the "edit" state, where the user can select a value from a drop-down list; and the "changed" state, where the new value for the component has been confirmed but can be edited again if required.
+ The <sgmltag><rich:inplaceSelect></sgmltag> component is similar to the <sgmltag><rich:inplaceInput></sgmltag> component, except that the <sgmltag><rich:inplaceSelect></sgmltag> component uses a drop-down selection box to enter text instead of a regular text field. Changes can be rendered either in-line or for the whole block, and inputs can be focused with keyboard navigation. The component has three functional states: the <emphasis>view</emphasis> state, where the component displays its initial setting, such as "click to edit"; the <emphasis>edit</emphasis> state, where the user can select a value from a drop-down list; and the "changed" state, where the new value for the component has been confirmed but can be edited again if required.
</para>
<figure id="figu-Component_Reference-richinplaceSelect-richinplaceSelect">
<title><sgmltag><rich:inplaceSelect></sgmltag></title>
@@ -966,10 +1114,10 @@
<section id="sect-Component_Reference-richinplaceSelect-Interactivity_options">
<title>Interactivity options</title>
<para>
- When in the initial "view" state, the starting label can be set using the <varname>defaultLabel</varname> attribute, such as <code>defaultLabel="click to edit"</code>.
+ When in the initial <emphasis>view</emphasis> state, the starting label can be set using the <varname>defaultLabel</varname> attribute, such as <code>defaultLabel="click to edit"</code>.
</para>
<para>
- By default, the event to switch the component to the "edit" state is a single mouse click. This can be changed using the <varname>editEvent</varname> attribute to specify a different event. When switching to "edit" mode, the drop-down list of possible values will automatically be displayed; this can be deactivated by setting <code><varname>openOnEdit</varname>="false"</code>.
+ By default, the event to switch the component to the <emphasis>edit</emphasis> state is a single mouse click. This can be changed using the <varname>editEvent</varname> attribute to specify a different event. When switching to <emphasis>edit</emphasis> mode, the drop-down list of possible values will automatically be displayed; this can be deactivated by setting <code><varname>openOnEdit</varname>="false"</code>.
</para>
<para>
Once a new value for the control is saved, the state switches to the "changed" state. Saving a new value for the control can be performed in three different ways:
@@ -1008,28 +1156,125 @@
<itemizedlist>
<listitem>
<para>
- <varname>oneditactivation</varname> is triggered before the "edit" state is activated.
+ <varname>oneditactivation</varname> is triggered before the <emphasis>edit</emphasis> state is activated.
</para>
</listitem>
<listitem>
<para>
- <varname>oneditactivated</varname> is triggered after the "edit" state is activated.
+ <varname>oneditactivated</varname> is triggered after the <emphasis>edit</emphasis> state is activated.
</para>
</listitem>
<listitem>
<para>
- <varname>onviewactivation</varname> is triggered before the "view" or "changed" state is activated.
+ <varname>onviewactivation</varname> is triggered before the <emphasis>view</emphasis> or "changed" state is activated.
</para>
</listitem>
<listitem>
<para>
- <varname>onviewactivated</varname> is triggered after the "view" or "changed" state is activated.
+ <varname>onviewactivated</varname> is triggered after the <emphasis>view</emphasis> or "changed" state is activated.
</para>
</listitem>
</itemizedlist>
</section>
-->
+ <section id="sect-Component_Reference-richinplaceSelect-JavaScript_API">
+ <title>JavaScript API</title>
+ <para>
+ The <sgmltag><rich:inplaceSelect></sgmltag> component can be controlled through the JavaScript API. The JavaScript API provides the following functions:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term><function>getValue()</function></term>
+ <listitem>
+ <para>
+ Get the current value of the select control.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>setValue(newValue)</function></term>
+ <listitem>
+ <para>
+ Set the value of the select control to the <parameter>newValue</parameter> string passed as a parameter.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>isEditState()</function></term>
+ <listitem>
+ <para>
+ Returns <literal>true</literal> if the control is currently in the <emphasis>edit</emphasis> state, or <literal>false</literal> if the control is currently in the <emphasis>view</emphasis> state.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>isValueChanged()</function></term>
+ <listitem>
+ <para>
+ Returns <literal>true</literal> if the control's value has been changed from the default.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>save()</function></term>
+ <listitem>
+ <para>
+ Saves the current item as the control's value.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>cancel()</function></term>
+ <listitem>
+ <para>
+ Cancel editing the value.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>getInput()</function></term>
+ <listitem>
+ <para>
+ Return the input entered into the control by the user.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>getLabel()</function></term>
+ <listitem>
+ <para>
+ Return the default label of the control.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>setLabel(newLabel)</function></term>
+ <listitem>
+ <para>
+ Set the default label of the control to the <parameter>newLabel</parameter> string passed as a parameter.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>showPopup()</function></term>
+ <listitem>
+ <para>
+ Show the pop-up list of possible values.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>hidePopup()</function></term>
+ <listitem>
+ <para>
+ Hide the pop-up list.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </section>
+
<section id="sect-Component_Reference-richinplaceSelect-Reference_data">
<title>Reference data</title>
<itemizedlist>
@@ -1105,6 +1350,47 @@
</para>
</section>
+ <section id="sect-Component_Reference-richinputNumberSlider-JavaScript_API">
+ <title>JavaScript API</title>
+ <para>
+ The <sgmltag><rich:inputNumberSlider></sgmltag> component can be controlled through the JavaScript API. The JavaScript API provides the following functions:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term><function>getValue()</function></term>
+ <listitem>
+ <para>
+ Get the current value of the slider control.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>setValue(newValue)</function></term>
+ <listitem>
+ <para>
+ Set the value of the slider control to the <parameter>newValue</parameter> integer passed as a parameter.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>increase()</function></term>
+ <listitem>
+ <para>
+ Increase the value of the slider control by the gradient step amount.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>decrease()</function></term>
+ <listitem>
+ <para>
+ Decrease the value of the slider control by the gradient step amount.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </section>
+
<section id="sect-Component_Reference-richinputNumberSlider-Reference_data">
<title>Reference data</title>
<itemizedlist>
@@ -1177,6 +1463,47 @@
</para>
</section>
+ <section id="sect-Component_Reference-richinputNumberSpinner-JavaScript_API">
+ <title>JavaScript API</title>
+ <para>
+ The <sgmltag><rich:inputNumberSpinner></sgmltag> component can be controlled through the JavaScript API. The JavaScript API provides the following functions:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term><function>getValue()</function></term>
+ <listitem>
+ <para>
+ Get the current value of the spinner control.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>setValue(newValue)</function></term>
+ <listitem>
+ <para>
+ Set the value of the spinner control to the <parameter>newValue</parameter> integer passed as a parameter.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>increase()</function></term>
+ <listitem>
+ <para>
+ Increase the value of the spinner control by the gradient step amount.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>decrease()</function></term>
+ <listitem>
+ <para>
+ Decrease the value of the spinner control by the gradient step amount.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </section>
+
<section id="sect-Component_Reference-richinputNumberSpinner-Reference_data">
<title>Reference data</title>
<itemizedlist>
@@ -1283,6 +1610,55 @@
-->
</section>
+ <section id="sect-Component_Reference-richselect-JavaScript_API">
+ <title>JavaScript API</title>
+ <para>
+ The <sgmltag><rich:select></sgmltag> component can be controlled through the JavaScript API. The JavaScript API provides the following functions:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term><function>getValue()</function></term>
+ <listitem>
+ <para>
+ Get the current value of the text field.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>setValue(newValue)</function></term>
+ <listitem>
+ <para>
+ Set the value of the text field to the <parameter>newValue</parameter> string passed as a parameter.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>getLabel()</function></term>
+ <listitem>
+ <para>
+ Return the default label of the control.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>showPopup()</function></term>
+ <listitem>
+ <para>
+ Show the pop-up list of completion values.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><function>hidePopup()</function></term>
+ <listitem>
+ <para>
+ Hide the pop-up list.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </section>
+
<section id="sect-Component_Reference-richselect-Reference_data">
<title>Reference data</title>
<itemizedlist>
13 years, 2 months
JBoss Rich Faces SVN: r21885 - modules/docs/trunk/Component_Reference/src/main/docbook/en-US.
by richfaces-svn-commits@lists.jboss.org
Author: SeanRogers
Date: 2011-02-22 21:12:57 -0500 (Tue, 22 Feb 2011)
New Revision: 21885
Modified:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Menus_and_toolbars.xml
Log:
Updated panelMenu docs based on review FRPL-986
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Menus_and_toolbars.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Menus_and_toolbars.xml 2011-02-22 19:26:45 UTC (rev 21884)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Menus_and_toolbars.xml 2011-02-23 02:12:57 UTC (rev 21885)
@@ -601,12 +601,19 @@
</listitem>
<listitem>
<para>
- <literal>none</literal>, which causes the <varname>action</varname> and <varname>actionListener</varname> items to be ignored, and the behavior is fully defined by the nested components instead of responses from submissions.
+ <literal>client</literal>, which causes the <varname>action</varname> and <varname>actionListener</varname> items to be ignored, and the behavior is fully defined by the nested components instead of responses from submissions.
</para>
</listitem>
</itemizedlist>
</section>
+ <section id="sect-Component_Reference-richpanelMenu-richpanelMenu_server-side_events">
+ <title><sgmltag><rich:panelMenu></sgmltag> server-side events</title>
+ <para>
+ The <sgmltag><rich:panelMenu></sgmltag> component fires the <literal>ItemChangeEvent</literal> event on the server side when the menu is changed. The event only fires in the <literal>server</literal> and <literal>ajax</literal> submission modes. The event provides the <varname>itemChangeListener</varname> attribute to reference the event listener.
+ </para>
+ </section>
+
<section id="sect-Component_Reference-richpanelMenu-Reference_data">
<title>Reference data</title>
<itemizedlist>
@@ -648,8 +655,11 @@
<section id="sect-Component_Reference-richpanelMenuGroup-Basic_usage">
<title>Basic usage</title>
<para>
- The <sgmltag><rich:panelMenuGroup></sgmltag> component needs the <varname>label</varname> attribute declared, which specifies the text to show for the menu entry. Additionally, the <sgmltag><rich:panelMenuGroup></sgmltag> component at least one <sgmltag><rich:panelMenuGroup></sgmltag> or <sgmltag><rich:panelMenuItem></sgmltag> components as child elements.
+ The <sgmltag><rich:panelMenuGroup></sgmltag> component needs the <varname>label</varname> attribute declared, which specifies the text to show for the menu entry. Alternatively, the <literal>label</literal> facet can be used to specify the menu text.
</para>
+ <para>
+ In addition, the <sgmltag><rich:panelMenuGroup></sgmltag> component at least one <sgmltag><rich:panelMenuGroup></sgmltag> or <sgmltag><rich:panelMenuItem></sgmltag> components as child elements.
+ </para>
</section>
<section id="sect-Component_Reference-richpanelMenuGroup-Appearance">
@@ -714,6 +724,13 @@
If the <varname>mode</varname> attribute is unspecified, the submission behavior for the group is inherited from the parent <sgmltag><rich:panelMenu></sgmltag>. Otherwise, the <varname>mode</varname> setting is used instead of the parent's behavior. Refer to <xref linkend="sect-Component_Reference-richpanelMenu-Submission_modes" /> for submission mode settings.
</para>
</section>
+
+ <section id="sect-Component_Reference-richpanelMenuGroup-richpanelMenuGroup_server-side_events">
+ <title><sgmltag><rich:panelMenuGroup></sgmltag> server-side events</title>
+ <para>
+ The <sgmltag><rich:panelMenuGroup></sgmltag> component fires the <literal>ActionEvent</literal> event on the server side when the menu group receives a user action. The event only fires in the <literal>server</literal> and <literal>ajax</literal> submission modes. The event provides the <varname>action</varname> attribute to specify the user action performed, and the <varname>actionListener</varname> attribute to reference the event listener.
+ </para>
+ </section>
<section id="sect-Component_Reference-richpanelMenuGroup-Reference_data">
<title>Reference data</title>
@@ -757,7 +774,7 @@
<section id="sect-Component_Reference-richpanelMenuItem-Basic_usage">
<title>Basic usage</title>
<para>
- The <sgmltag><rich:panelMenuItem></sgmltag> component needs the <varname>label</varname> attribute declared, which specifies the text to show for the menu entry.
+ The <sgmltag><rich:panelMenuItem></sgmltag> component needs the <varname>label</varname> attribute declared, which specifies the text to show for the menu entry. Alternatively, the <literal>label</literal> facet can be used to specify the menu text.
</para>
</section>
@@ -819,6 +836,13 @@
If the <varname>mode</varname> is unspecified, the submission behavior for the item is inherited from the parent <sgmltag><rich:panelMenu></sgmltag>. Otherwise, the <varname>mode</varname> setting is used instead of the parent's behavior.
</para>
</section>
+
+ <section id="sect-Component_Reference-richpanelMenuItem-richpanelMenuItem_server-side_events">
+ <title><sgmltag><rich:panelMenuItem></sgmltag> server-side events</title>
+ <para>
+ The <sgmltag><rich:panelMenuItem></sgmltag> component fires the <literal>ActionEvent</literal> event on the server side when the menu item receives a user action. The event only fires in the <literal>server</literal> and <literal>ajax</literal> submission modes. The event provides the <varname>action</varname> attribute to specify the user action performed, and the <varname>actionListener</varname> attribute to reference the event listener.
+ </para>
+ </section>
<section id="sect-Component_Reference-richpanelMenuItem-Reference_data">
<title>Reference data</title>
13 years, 2 months
JBoss Rich Faces SVN: r21884 - branches/4.0.0.CR1/ui/input/ui/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2011-02-22 14:26:45 -0500 (Tue, 22 Feb 2011)
New Revision: 21884
Modified:
branches/4.0.0.CR1/ui/input/ui/src/main/java/org/richfaces/component/AbstractFileUpload.java
branches/4.0.0.CR1/ui/input/ui/src/main/java/org/richfaces/component/AbstractSelect.java
Log:
https://issues.jboss.org/browse/RF-9953
Modified: branches/4.0.0.CR1/ui/input/ui/src/main/java/org/richfaces/component/AbstractFileUpload.java
===================================================================
--- branches/4.0.0.CR1/ui/input/ui/src/main/java/org/richfaces/component/AbstractFileUpload.java 2011-02-22 19:04:52 UTC (rev 21883)
+++ branches/4.0.0.CR1/ui/input/ui/src/main/java/org/richfaces/component/AbstractFileUpload.java 2011-02-22 19:26:45 UTC (rev 21884)
@@ -44,12 +44,16 @@
* @author Konstantin Mishin
*
*/
-@JsfComponent(tag = @Tag(handler = "org.richfaces.view.facelets.FileUploadHandler"),
+@JsfComponent(tag = @Tag(generate = false, handler = "org.richfaces.view.facelets.FileUploadHandler"),
renderer = @JsfRenderer(type = "org.richfaces.FileUploadRenderer"),
attributes = {"events-props.xml", "core-props.xml", "ajax-props.xml", "i18n-props.xml"})
@ListenerFor(systemEventClass = PostAddToViewEvent.class)
public abstract class AbstractFileUpload extends UIComponentBase {
+ public static final String COMPONENT_TYPE = "org.richfaces.FileUpload";
+
+ public static final String COMPONENT_FAMILY = "org.richfaces.FileUpload";
+
@Attribute
public abstract String getAcceptedTypes();
Modified: branches/4.0.0.CR1/ui/input/ui/src/main/java/org/richfaces/component/AbstractSelect.java
===================================================================
--- branches/4.0.0.CR1/ui/input/ui/src/main/java/org/richfaces/component/AbstractSelect.java 2011-02-22 19:04:52 UTC (rev 21883)
+++ branches/4.0.0.CR1/ui/input/ui/src/main/java/org/richfaces/component/AbstractSelect.java 2011-02-22 19:26:45 UTC (rev 21884)
@@ -10,8 +10,8 @@
*
*/
@JsfComponent(
- type = AbstractSelectComponent.COMPONENT_TYPE,
- family = AbstractSelectComponent.COMPONENT_FAMILY,
+ type = AbstractSelect.COMPONENT_TYPE,
+ family = AbstractSelect.COMPONENT_FAMILY,
generate = "org.richfaces.component.UISelect",
renderer = @JsfRenderer(type = "org.richfaces.SelectRenderer"),
tag = @Tag(name="select")
13 years, 2 months