JBoss Rich Faces SVN: r7870 - branches/3.1.x/test-applications/facelets/src/main/java/scrollableDataTable.
by richfaces-svn-commits@lists.jboss.org
Author: tkuprevich
Date: 2008-04-16 08:39:18 -0400 (Wed, 16 Apr 2008)
New Revision: 7870
Modified:
branches/3.1.x/test-applications/facelets/src/main/java/scrollableDataTable/ScrollableDataTable.java
Log:
Modified: branches/3.1.x/test-applications/facelets/src/main/java/scrollableDataTable/ScrollableDataTable.java
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/java/scrollableDataTable/ScrollableDataTable.java 2008-04-16 11:48:28 UTC (rev 7869)
+++ branches/3.1.x/test-applications/facelets/src/main/java/scrollableDataTable/ScrollableDataTable.java 2008-04-16 12:39:18 UTC (rev 7870)
@@ -43,7 +43,7 @@
data = new ArrayList<Data>();
first = 0;
rendered = true;
- timeout = "10";
+ timeout = "0";
height = "400px";
limitToList = false;
bypassUpdates = false;
16 years, 9 months
JBoss Rich Faces SVN: r7869 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2008-04-16 07:48:28 -0400 (Wed, 16 Apr 2008)
New Revision: 7869
Modified:
trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.xml
Log:
a minor error was fixed in InplaceInput
Modified: trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.xml 2008-04-16 11:37:43 UTC (rev 7868)
+++ trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.xml 2008-04-16 11:48:28 UTC (rev 7869)
@@ -328,7 +328,7 @@
attribute and it has to be defined as "true".
</para>
</note>
- <!--para>
+ <!-- para>
Redefinition of the
"save" and "cancel" icons can be performed using
<emphasis><property>"saveControlIcon"</property></emphasis>
16 years, 9 months
JBoss Rich Faces SVN: r7868 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2008-04-16 07:37:43 -0400 (Wed, 16 Apr 2008)
New Revision: 7868
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
Log:
fix
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2008-04-16 10:29:24 UTC (rev 7867)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2008-04-16 11:37:43 UTC (rev 7868)
@@ -1622,7 +1622,7 @@
</para>
<itemizedlist>
<listitem>Internet Explorer 6 </listitem>
- <listitem>Internet Explorer 7 in BackCompat mode (see<ulink url="http://msdn2.microsoft.com/en-us/library/ms533687(VS.85).aspx">document.compatMode property in MSDN</ulink>) </listitem>
+ <listitem>Internet Explorer 7 in BackCompat mode (see <ulink url="http://msdn2.microsoft.com/en-us/library/ms533687(VS.85).aspx">document.compatMode property in MSDN</ulink>) </listitem>
<listitem>Opera </listitem>
<listitem>Safari</listitem>
</itemizedlist>
@@ -1639,7 +1639,7 @@
</para>
<itemizedlist>
<listitem>Mozilla Firefox</listitem>
- <listitem>Internet Explorer 7 in Standards-compliant mode ( CSS1Compat) mode</listitem>
+ <listitem>Internet Explorer 7 in Standards-compliant mode (CSS1Compat mode)</listitem>
</itemizedlist>
</listitem>
16 years, 9 months
JBoss Rich Faces SVN: r7867 - trunk/ui/inplaceSelect/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2008-04-16 06:29:24 -0400 (Wed, 16 Apr 2008)
New Revision: 7867
Modified:
trunk/ui/inplaceSelect/src/main/config/component/inplaceselect.xml
Log:
http://jira.jboss.com/jira/browse/RF-1226
Description of value attribute was corrected
Modified: trunk/ui/inplaceSelect/src/main/config/component/inplaceselect.xml
===================================================================
--- trunk/ui/inplaceSelect/src/main/config/component/inplaceselect.xml 2008-04-16 10:11:09 UTC (rev 7866)
+++ trunk/ui/inplaceSelect/src/main/config/component/inplaceselect.xml 2008-04-16 10:29:24 UTC (rev 7867)
@@ -210,7 +210,7 @@
<property>
<name>value</name>
<classname>java.lang.Object</classname>
- <description>The attribute contains saved data</description>
+ <description>A value-binding expression for the current value of the component</description>
</property>
<property>
16 years, 9 months
JBoss Rich Faces SVN: r7866 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2008-04-16 06:11:09 -0400 (Wed, 16 Apr 2008)
New Revision: 7866
Modified:
trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.xml
Log:
http://jira.jboss.com/jira/browse/RF-1226
InplaceInput article corrected.
Modified: trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.xml 2008-04-16 09:55:51 UTC (rev 7865)
+++ trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.xml 2008-04-16 10:11:09 UTC (rev 7866)
@@ -319,7 +319,15 @@
</imageobject>
</mediaobject>
</figure>
-
+
+ <note>
+ <title>Note:</title>
+ <para>
+ The <emphasis> <property>"controls"</property></emphasis>facet also implies using
+ <emphasis><property>"showControls"</property></emphasis>
+ attribute and it has to be defined as "true".
+ </para>
+ </note>
<!--para>
Redefinition of the
"save" and "cancel" icons can be performed using
16 years, 9 months
JBoss Rich Faces SVN: r7865 - trunk/docs/userguide/en/src/main/resources/images.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-04-16 05:55:51 -0400 (Wed, 16 Apr 2008)
New Revision: 7865
Modified:
trunk/docs/userguide/en/src/main/resources/images/columnsort1.png
Log:
RF-1740 - updated screen for sorting
Modified: trunk/docs/userguide/en/src/main/resources/images/columnsort1.png
===================================================================
(Binary files differ)
16 years, 9 months
JBoss Rich Faces SVN: r7864 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-04-16 05:55:17 -0400 (Wed, 16 Apr 2008)
New Revision: 7864
Modified:
trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
Log:
RF-925 - corrected example of usage (js api) for calendar component
Modified: trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2008-04-16 09:53:26 UTC (rev 7863)
+++ trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2008-04-16 09:55:17 UTC (rev 7864)
@@ -381,7 +381,7 @@
</figure>
- <para>It's possible to program events for calendar from JavaScript code. A simplest
+ <para>It's possible to handle events for calendar from JavaScript code. A simplest
example of usage JavaScript API is placed below:</para>
<para>
<emphasis role="bold">Example:</emphasis>
@@ -392,7 +392,7 @@
popup="#{calendarBean.popup}"
datePattern="#{calendarBean.pattern}"
showApplyButton="#{calendarBean.showApply}" style="width:200px"/>
- <h:commandButton value="Show next year" onclick="#{rich:component('calendarID')}.nextYear();"/>
+ <a4j:commandLink onclick="$('formID:calendarID').component.doExpand(event)" value="Expand"/>
...]]></programlisting>
<para>Also the discussion about this problem can be found on the <ulink
16 years, 9 months
JBoss Rich Faces SVN: r7863 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-04-16 05:53:26 -0400 (Wed, 16 Apr 2008)
New Revision: 7863
Modified:
trunk/docs/userguide/en/src/main/docbook/included/column.xml
Log:
RF-1740 - updated information
Modified: trunk/docs/userguide/en/src/main/docbook/included/column.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/column.xml 2008-04-16 09:50:49 UTC (rev 7862)
+++ trunk/docs/userguide/en/src/main/docbook/included/column.xml 2008-04-16 09:53:26 UTC (rev 7863)
@@ -190,7 +190,7 @@
<title>Sorting</title>
<para>
In order to sort the columns you could use <emphasis><property>"sortBy"</property></emphasis> attribute indicates what values to be sorted column.
- The original column is not sorted. In order to sort the column should double-click on its header. See the following example.
+ In order to sort the column should click on its header. See the following example.
</para>
<para>
<emphasis role="bold">Example:</emphasis>
@@ -316,30 +316,6 @@
the <emphasis role="bold"><property><rich:dataTable></property></emphasis> component!
</para-->
<para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
-<h:form>
- <rich:dataTable value="#{capitalsBean.capitals}" var="cap" width="300px" sortPriority="#{bean.sortPriority}">
- <f:facet name="header">
- <h:outputText value="Sorting Example"/>
- </f:facet>
- <rich:column sortBy="#{cap.state}">
- <f:facet name="header">
- <h:outputText value="State Name"/>
- </f:facet>
- <h:outputText value="#{cap.state}"/>
- </rich:column>
- <rich:column sortBy="#{cap.name}">
- <f:facet name="header">
- <h:outputText value="State Capital"></h:outputText>
- </f:facet>
- <h:outputText value="#{cap.name}"/>
- </rich:column>
- </rich:dataTable>
-</h:form>
-...]]></programlisting>
- <para>
The <emphasis><property>"sortable"</property></emphasis> attribute which is used
with <emphasis role="bold"><property><rich:scrollableDataTable></property></emphasis> component.
In the following example only the first column could be sorted.
@@ -380,10 +356,7 @@
</imageobject>
</mediaobject>
</figure>
- <para>
- Sorting could not be used together with pagination.
- Only row that currently on the client could be sorted.
- </para>
+ <para><emphasis><property>"sortExpression"</property></emphasis> attribute defines a bean property which is used for sorting of a column.</para>
</section>
<section>
@@ -406,7 +379,7 @@
</para>
<para>
In order to change filter event you could use <emphasis><property>"filterEvent"</property></emphasis> attribute
- on column (e.g. filterEvent = "onblur").
+ on column, e.g. "onblur"(default value).
</para>
<!--para>
The <emphasis><property>"filterDefaultLabel"</property></emphasis> attribute defines the label that appears instead of input field.
@@ -417,12 +390,6 @@
</para>
<programlisting role="XML"><![CDATA[...
<rich:dataTable value="#{capitalsBean.capitals}" var="cap" width="500px">
- <rich:column>
- <f:facet name="header">
- <h:graphicImage value="/images/ico_DataTable.gif"/>
- </f:facet>
- <h:graphicImage value="#{cap.stateFlag}"/>
- </rich:column>
<rich:column filterBy="#{cap.state}" filterValue="#{filterName.filterBean}" filterEvent="onkeyup">
<h:outputText value="#{cap.state}"/>
</rich:column>
16 years, 9 months
JBoss Rich Faces SVN: r7862 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-04-16 05:50:49 -0400 (Wed, 16 Apr 2008)
New Revision: 7862
Modified:
trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml
trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml
Log:
RF-925 - commented out examples of usage of js api for combobox and contextmenu components
Modified: trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml 2008-04-16 09:00:58 UTC (rev 7861)
+++ trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml 2008-04-16 09:50:49 UTC (rev 7862)
@@ -240,7 +240,7 @@
</listitem>
</itemizedlist>
</para>
- <para>It's possible to handle events for comboBox from JavaScript code. A simplest example of usage JavaScript API is placed below:</para>
+ <!-- <para>It's possible to handle events for comboBox from JavaScript code. A simplest example of usage JavaScript API is placed below:</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
@@ -250,7 +250,7 @@
</rich:comboBox>
...
<h:commandButton value="Enable" onclick="#{rich:component('comboBoxID')}.enable(event)"/>
-...]]></programlisting>
+...]]></programlisting> -->
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml 2008-04-16 09:00:58 UTC (rev 7861)
+++ trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml 2008-04-16 09:50:49 UTC (rev 7862)
@@ -297,7 +297,7 @@
<property></h:form></property>
</emphasis> tags.</para></note>
- <para>It's possible to program events for contextMenu from JavaScript code. A simplest example of usage JavaScript API is placed below:</para>
+ <!-- <para>It's possible to handle events for contextMenu from JavaScript code. A simplest example of usage JavaScript API is placed below:</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
@@ -307,7 +307,7 @@
</rich:contextMenu>
...
<h:commandButton value="Show" onclick="#{rich:component('cmID')}.show(event)"/>
-...]]></programlisting>
+...]]></programlisting> -->
<!-- Will be done for latest version -->
<!--para> It's possible to define the direction for list appear in the <emphasis>
16 years, 9 months
JBoss Rich Faces SVN: r7861 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2008-04-16 05:00:58 -0400 (Wed, 16 Apr 2008)
New Revision: 7861
Modified:
trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml
Log:
http://jira.jboss.com/jira/browse/RF-1226
InplaceSelect article corrected.
Modified: trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml 2008-04-16 07:44:34 UTC (rev 7860)
+++ trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml 2008-04-16 09:00:58 UTC (rev 7861)
@@ -95,16 +95,18 @@
<f:selectItems value="#{bean.selectItems}" />
</rich:inplaceSelect>
...]]> </programlisting>
- <para>
+ <!-- <para>
The managed bean code:
</para>
<programlisting role="JAVA"><![CDATA[...
private String value = "";
-...]]> </programlisting>
+...]]> </programlisting>-->
+
+
<para>
- In the example above the <emphasis><property>"value"</property></emphasis> attribute is empty string
- therefore "click to edit" value is displayed since it is placed into the
- <emphasis><property>"defaultLabel"</property></emphasis> attribute.
+ In the example above the <emphasis><property>"value"</property></emphasis> attribute is not initialized
+ therefore "click to edit" text, that
+ <emphasis><property>"defaultLabel"</property></emphasis>, contains is displayed.
</para>
<para>
This is the result:
@@ -187,22 +189,22 @@
<itemizedlist>
<listitem>
<para>
- <emphasis><property>"oneditactivation"</property></emphasis> which is fired on <property>edit</property> state activation
+ <emphasis><property>"oneditactivation"</property></emphasis> fired on <property>edit</property> state activation
</para>
</listitem>
<listitem>
<para>
- <emphasis><property>"oneditactivated"</property></emphasis> which is fired when <property>edit</property> state is activated
+ <emphasis><property>"oneditactivated"</property></emphasis> fired when <property>edit</property> state is activated
</para>
</listitem>
<listitem>
<para>
- <emphasis><property>"onviewactivation"</property></emphasis> which is fired on <property>view</property> state activation
+ <emphasis><property>"onviewactivation"</property></emphasis> fired on <property>view</property> state activation
</para>
</listitem>
<listitem>
<para>
- <emphasis><property>"onviewactivated"</property></emphasis> which is fired after the component is changed to representation state
+ <emphasis><property>"onviewactivated"</property></emphasis> fired after the component is changed to representation state
</para>
</listitem>
</itemizedlist>
@@ -220,7 +222,8 @@
namely when the state is being changed from <property>view</property> to <property>edit</property>,
a confirmation window with a message "Are you sure you want to change value?" comes up.
</para>
- <para>
+
+<!-- <para>
The <emphasis><property>"selectOnEdit"</property></emphasis> (with possible values "true", "false") gives you an
option to make the text in the input field selected right after the change from <property>view</property> state to <property>edit</property> occurs.
</para>
@@ -228,8 +231,23 @@
<rich:inplaceSelect value="#{bean.inputValue}" selectOnEdit="true">
<f:selectItems value="#{bean.selectItems}"/>
</rich:inplaceSelect>
-...]]></programlisting>
+...]]></programlisting> -->
+
+
+
<para>
+ Another useful attribute boolean is <emphasis><property>"openOnEdit"</property></emphasis>, when set to "true" it opens
+ drop-down list with items after <property>edit</property> state is activated.
+ </para>
+
+ <programlisting role="XML"><![CDATA[...
+<rich:inplaceSelect value="#{bean.inputValue}" showControls="true" openOnEdit="true">
+ <f:selectItems value="#{bean.selectItems}"/>
+</rich:inplaceSelect>
+...]]></programlisting>
+
+
+ <para>
This is the result:
</para>
<figure>
@@ -240,14 +258,13 @@
</imageobject>
</mediaobject>
</figure>
- <para>
- Another useful attribute is <emphasis><property>"openOnEdit"</property></emphasis>.
- With "true" value it defines that the drop-down list with items opens automatically after <property>edit</property> state is activated.
- </para>
+
<para>
Nowever, if you want to confirm the data saving explicitly you can use the <emphasis><property>"showControls"</property></emphasis> attribute,
which makes "Save" and "Cancel" buttons (displayed as icons) appear next to the input field.
+ <property>Edit</property> state can be deactivated by pressing "Esc" key.
+ An option in the drop-drown list can be also selected by pressing "Enter".
</para>
<para>
<emphasis role="bold">Example:</emphasis>
16 years, 9 months