JBoss Rich Faces SVN: r2725 - trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-09-03 13:34:50 -0400 (Mon, 03 Sep 2007)
New Revision: 2725
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableRendererState.java
Log:
small fix
Modified: trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableRendererState.java
===================================================================
--- trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableRendererState.java 2007-09-03 15:59:01 UTC (rev 2724)
+++ trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableRendererState.java 2007-09-03 17:34:50 UTC (rev 2725)
@@ -229,6 +229,9 @@
* @return Returns the rowIndex.
*/
public int getRowIndex() {
+ if(_grid.getRows() != 0 && _rowIndex >= _grid.getRows()){
+ _rowIndex = 0;
+ }
return _rowIndex;
}
16 years, 8 months
JBoss Rich Faces SVN: r2724 - trunk/docs/userguide/en/src/main/resources/images.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-09-03 11:59:01 -0400 (Mon, 03 Sep 2007)
New Revision: 2724
Added:
trunk/docs/userguide/en/src/main/resources/images/sdt.png
Log:
http://jira.jboss.com/jira/browse/RF-447 - added classes
Added: trunk/docs/userguide/en/src/main/resources/images/sdt.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/sdt.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 8 months
JBoss Rich Faces SVN: r2723 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-09-03 11:56:27 -0400 (Mon, 03 Sep 2007)
New Revision: 2723
Modified:
trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml
Log:
http://jira.jboss.com/jira/browse/RF-447 - added classes
Modified: trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml 2007-09-03 15:46:25 UTC (rev 2722)
+++ trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml 2007-09-03 15:56:27 UTC (rev 2723)
@@ -145,167 +145,167 @@
</para>
</section>
-
+
<section>
- <title>Relevant resources links</title>
- <para>
- <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/scrollableDataTable.j...">Here</ulink>
- you can see the example of <emphasis role="bold"><rich:scrollableDataTable></emphasis> usage. </para>
- </section>
- <!--section>
- <title>Details of Usage</title>
- <para>The <property>table</property> component is very similar to the custom JSF dataTable one,
- except for the common peculiarities of any rich component:</para>
- <itemizedlist>
- <listitem>Skin support. The <property>table</property> completely meets a three-class
- principle of Rich Faces skinnability</listitem>
- <listitem>Support of Ajax updates for a limited set of strings</listitem>
- </itemizedlist>
- <para>Skins support is described in the <link linkend="ArchitectureOverview">corresponding
- section</link>. Ajax support is possible because the component is created basing on the
- <emphasis role="bold">
- <property><a4j:repeat></property>
- </emphasis> component and as a result the component has its possibilities of Ajax updates for
- a limited set of strings. The component is implemented with the <emphasis>
- <property>"ajaxKeys"</property>
- </emphasis> attribute for a <property>table</property> and in contrast to the <emphasis
- role="bold">
- <property><a4j:repeat></property>
- </emphasis> outputs the standard HTML structure for table rendering.</para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
- <rich:dataTable value="#{capitalsBean.capitals}" var="capitals"
- ajaxKeys="#{bean.ajaxSet}" binding="#{bean.table}" id="table">
- <Set of columns and header/footer facets>
- </rich:dataTable>
-...
- <a4j:commandButton action="#{bean.someAction}" reRender="table"/>
-...
-]]></programlisting>
- <para>For such a table during <property>someAction</property> method processing called with AJAX
- request when the key is pressed it's possible to fill in lot's of ajaxKeys
- with strings indices that are to be updated. A resulting output on the client contains only
- required strings and they are updated in the tree, even when update is specified for the whole
- table.</para>
-
- </section>
- <section>
<title>Look-and-Feel Customization</title>
- <para>For skinnability implementation the components use a <emphasis>
- <property>style class redefinition method</property>
- </emphasis>.</para>
- <para>Default style classes are mapped on <emphasis><property>skin
- parameters</property>.</emphasis></para>
- <para>To redefine appearance of all dataTables at once, there are two ways:</para>
+
+ <para>For skinnability implementation, the components use a <emphasis>
+ <property>style class redefinition method.</property>
+ </emphasis>
+ Default style classes are mapped on <emphasis>
+ <property>skin parameters.</property>
+ </emphasis></para>
+
+ <para>There are two ways to redefine the appearance of all <emphasis role="bold">
+ <property><rich:scrollableDataTable></property>
+ </emphasis> components at once:</para>
+
<itemizedlist>
- <listitem>to redefine corresponding skin parameters</listitem>
- <listitem>to add <emphasis>
+ <listitem>
+ <para>Redefine the corresponding skin parameters</para>
+ </listitem>
+
+ <listitem>
+ <para>Add to your style sheets <emphasis>
<property>style classes</property>
- </emphasis> used by the dataTable to your page style sheets</listitem>
+ </emphasis> used by a <emphasis role="bold">
+ <property><rich:scrollableDataTable></property>
+ </emphasis> component</para>
+ </listitem>
</itemizedlist>
</section>
+ <!--section>
+ <title> Skin parameters redefinition</title>
+ </section-->
+
<section>
- <title>Definition custom Style Classes</title>
+ <title>Definition of Custom Style Classes</title>
+
<figure>
- <title>DataTable class names</title>
+ <title>Classes names</title>
+
<mediaobject>
<imageobject>
- <imagedata fileref="images/dataTable2.gif"/>
+ <imagedata fileref="images/sdt.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>On the screenshot there are class names defining the marked elements.</para>
+ <para>On the screenshot, there are classes names defining specified elements.</para>
+
<table>
- <title>Component skin classes</title>
+ <title>Classes names that define component appearance</title>
+
<tgroup cols="2">
<thead>
<row>
<entry>Class name</entry>
- <entry>An element defined with a class</entry>
+
+ <entry>Description</entry>
</row>
</thead>
+
<tbody>
<row>
- <entry>rich-table</entry>
- <entry>Applied to the <emphasis><property>"table"</property></emphasis> element</entry>
+ <entry>rich-sdt</entry>
+
+ <entry>Defines the styles for component appearance</entry>
</row>
+
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Classes names that define footer and header elements</title>
+
+ <tgroup cols="2">
+ <thead>
<row>
- <entry>rich-table-caption</entry>
- <entry>Applied to facet="caption"</entry>
+ <entry>Class name</entry>
+
+ <entry>Description</entry>
</row>
+ </thead>
+
+ <tbody>
+
<row>
- <entry>rich-table-header</entry>
- <entry>Applied to a whole header "header"</entry>
+ <entry>rich-sdt-header-cell</entry>
+
+ <entry>Defines styles for header cells</entry>
</row>
+
<row>
- <entry>rich-table-headercell</entry>
- <entry>Applied to a particular cell of a header "header"</entry>
+ <entry>rich-sdt-footer-cell</entry>
+
+ <entry>Defines styles for footer cells</entry>
</row>
+
<row>
- <entry>rich-table-subheader</entry>
- <entry>Applied to the whole subheader "header"</entry>
+ <entry>rich-sdt-hsep</entry>
+
+ <entry>Defines styles for header separators</entry>
</row>
+
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Classes names that define rows and cells appearance</title>
+
+ <tgroup cols="2">
+ <thead>
<row>
- <entry>rich-table-subheadercell</entry>
- <entry>Applied to a particular cell of subheader "header"</entry>
+ <entry>Class name</entry>
+
+ <entry>Description</entry>
</row>
+ </thead>
+
+ <tbody>
+
<row>
- <entry>rich-table-cell</entry>
- <entry> Applied to a particular table cell</entry>
+ <entry>rich-sdt-column-cell</entry>
+
+ <entry>Defines styles for column cells</entry>
</row>
+
<row>
- <entry>rich-table-row</entry>
- <entry>Applied to the whole table row</entry>
+ <entry>rich-sdt-row-selected</entry>
+
+ <entry>Defines styles for selected row</entry>
</row>
+
<row>
- <entry>rich-table-subfooter</entry>
- <entry>Applied to the whole subheader "footer"</entry>
+ <entry>rich-sdt-row-active</entry>
+
+ <entry>Defines styles for active row</entry>
</row>
- <row>
- <entry>rich-table-subfootercell</entry>
- <entry>Applied to a particular subheader "footer"</entry>
- </row>
- <row>
- <entry>rich-table-footer</entry>
- <entry>Applied to the whole "footer"</entry>
- </row>
- <row>
- <entry>rich-table- footercell</entry>
- <entry>Applied to the specific of "footer"</entry>
- </row>
+
</tbody>
</tgroup>
</table>
- <para>To redefine an appearance of all <property>tables</property> on a page, redefine the
- corresponding class in the CSS file used with the page.</para>
- <para>To redefine a style of a particular page, use <emphasis>
- <property>"component class"</property>
- </emphasis> attributes which list is the same as the <property>dataTable</property> one and is
- known to you.</para>
+
+ <para>In order to redefine the style for all <emphasis role="bold">
+ <property><rich:scrollableDataTable></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define the necessary properties in them.</para>
+
+ <para>To change the style of particular <emphasis role="bold">
+ <property><rich:scrollableDataTable></property>
+ </emphasis> components define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:scrollableDataTable></property>
+ </emphasis>attributes.</para>
</section>
+
<section>
<title>Relevant resources links</title>
<para>
- <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/dataTable.jsf?c=dataT..."
- >Here</ulink> you can see the example of <emphasis role="bold"
- ><rich:dataTable></emphasis> usage and sources for the given example. </para>
- <para>The article about <emphasis role="bold"><rich:dataTable></emphasis>
- flexibility can be found <ulink url="http://labs.jboss.com/wiki/RichFacesArticleDataTable"
- >here</ulink>.</para>
- <para>More information about using <emphasis role="bold"
- ><rich:dataTable></emphasis> and <emphasis role="bold"
- ><rich:subTable></emphasis> could be found on the <ulink
- url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059044#...">RichFaces Users Forum.</ulink>
- </para>
- <para>How to use <emphasis role="bold"><rich:dataTable></emphasis> and <emphasis
- role="bold"><rich:dataScroller></emphasis> in a context of Extended
- Data Model see <ulink
- url="http://www.jboss.com/index.html?module=bb&op=viewtopic&t=115636"
- >here</ulink>.</para>
- </section-->
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/scrollableDataTable.j...">Here</ulink>
+ you can see the example of <emphasis role="bold"><rich:scrollableDataTable></emphasis> usage. </para>
+ </section>
</section>
16 years, 8 months
JBoss Rich Faces SVN: r2722 - trunk/framework/api/src/main/java/org/richfaces/model.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-09-03 11:46:25 -0400 (Mon, 03 Sep 2007)
New Revision: 2722
Modified:
trunk/framework/api/src/main/java/org/richfaces/model/ScrollableTableDataModel.java
Log:
fixed bug from forum
Modified: trunk/framework/api/src/main/java/org/richfaces/model/ScrollableTableDataModel.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/ScrollableTableDataModel.java 2007-09-03 15:33:15 UTC (rev 2721)
+++ trunk/framework/api/src/main/java/org/richfaces/model/ScrollableTableDataModel.java 2007-09-03 15:46:25 UTC (rev 2722)
@@ -161,7 +161,7 @@
/**
* Row indexes navigation is no longer supported
*/
- public final int getRowIndex() {
+ public int getRowIndex() {
return -1;
}
@@ -175,7 +175,7 @@
/**
* Row indexes navigation is no longer supported
*/
- public final void setRowIndex(int index) {
+ public void setRowIndex(int index) {
if(index != -1)
throw new UnsupportedOperationException("setRowIndex");
setRowKey(null);
16 years, 8 months
JBoss Rich Faces SVN: r2721 - trunk/framework/api/src/main/java/org/richfaces/model.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-09-03 11:33:15 -0400 (Mon, 03 Sep 2007)
New Revision: 2721
Modified:
trunk/framework/api/src/main/java/org/richfaces/model/ScrollableTableDataModel.java
Log:
fixed bug from forum
Modified: trunk/framework/api/src/main/java/org/richfaces/model/ScrollableTableDataModel.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/ScrollableTableDataModel.java 2007-09-03 15:18:48 UTC (rev 2720)
+++ trunk/framework/api/src/main/java/org/richfaces/model/ScrollableTableDataModel.java 2007-09-03 15:33:15 UTC (rev 2721)
@@ -161,8 +161,8 @@
/**
* Row indexes navigation is no longer supported
*/
- public int getRowIndex() {
- throw new UnsupportedOperationException("getRowIndex");
+ public final int getRowIndex() {
+ return -1;
}
/**
@@ -175,8 +175,10 @@
/**
* Row indexes navigation is no longer supported
*/
- public void setRowIndex(int arg0) {
- throw new UnsupportedOperationException("setRowIndex");
+ public final void setRowIndex(int index) {
+ if(index != -1)
+ throw new UnsupportedOperationException("setRowIndex");
+ setRowKey(null);
}
public Object getRowKey() {
16 years, 8 months
JBoss Rich Faces SVN: r2720 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/snippets.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2007-09-03 11:18:48 -0400 (Mon, 03 Sep 2007)
New Revision: 2720
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/snippets/commandLinkProblem.xhtml
Log:
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/snippets/commandLinkProblem.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/snippets/commandLinkProblem.xhtml 2007-09-03 15:17:44 UTC (rev 2719)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/snippets/commandLinkProblem.xhtml 2007-09-03 15:18:48 UTC (rev 2720)
@@ -1,12 +1,16 @@
....
- <-- This code does not work correctly after the link is re-rendered -->
+ <-- This code does not work correctly after the link is re-rendered -->
+ <-- Parameter will not be encoded correctly in this case -->
<h:form>
....
<a4j:commandButton value="Update Non-Ajax Link" reRender="panel" />
....
<h:panelGrid id="panel">
....
- <h:commandLink value="Non-Ajax Submit" action="foo" />
+ <h:commandLink value="Non-Ajax Submit" action="foo" >
+ <f:param name="param1" value="foo"/>
+ ...
+ </h:commandLink>
....
</h:panelGrid>
....
16 years, 8 months
JBoss Rich Faces SVN: r2719 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-09-03 11:17:44 -0400 (Mon, 03 Sep 2007)
New Revision: 2719
Modified:
trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml
trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml
trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml
Log:
http://jira.jboss.com/jira/browse/RF-398
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml 2007-09-03 15:16:50 UTC (rev 2718)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml 2007-09-03 15:17:44 UTC (rev 2719)
@@ -129,7 +129,7 @@
</listitem>
</itemizedlist>
- <para>An Ajax form submission is performed additionally specified elements in the <emphasis>
+ <para>An Ajax form submission is performed, and additionally specified elements in the <emphasis>
<property>"reRender"</property>
</emphasis> attribute are reRendered.</para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml 2007-09-03 15:16:50 UTC (rev 2718)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml 2007-09-03 15:17:44 UTC (rev 2719)
@@ -112,7 +112,7 @@
</listitem>
</itemizedlist>
- <para>Ajax form submission is performed additionally specified elements in the <emphasis>
+ <para>Ajax form submission is performed, and additionally specified elements in the <emphasis>
<property>"reRender"</property>
</emphasis> attribute are reRendered.</para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml 2007-09-03 15:16:50 UTC (rev 2718)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml 2007-09-03 15:17:44 UTC (rev 2719)
@@ -109,7 +109,7 @@
</listitem>
</itemizedlist>
- <para>Ajax form submission is performed additionally specified elements in the <emphasis>
+ <para>Ajax form submission is performed, and additionally specified elements in the <emphasis>
<property>"reRender"</property>
</emphasis> attribute are reRendered.</para>
@@ -258,7 +258,7 @@
<title> Skin parameters redefinition</title>
<table>
- <title>Skin parameters redefinition for table element item of first level</title>
+ <title>Skin parameters redefinition for a table element item of the first level</title>
<tgroup cols="2">
<thead>
16 years, 8 months
JBoss Rich Faces SVN: r2718 - trunk/ui/modal-panel/src/main/templates/org/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-09-03 11:16:50 -0400 (Mon, 03 Sep 2007)
New Revision: 2718
Modified:
trunk/ui/modal-panel/src/main/templates/org/richfaces/htmlModalPanel.jspx
Log:
RF-789
Modified: trunk/ui/modal-panel/src/main/templates/org/richfaces/htmlModalPanel.jspx
===================================================================
--- trunk/ui/modal-panel/src/main/templates/org/richfaces/htmlModalPanel.jspx 2007-09-03 14:59:31 UTC (rev 2717)
+++ trunk/ui/modal-panel/src/main/templates/org/richfaces/htmlModalPanel.jspx 2007-09-03 15:16:50 UTC (rev 2718)
@@ -102,7 +102,7 @@
<jsp:scriptlet>
<![CDATA[}]]>
</jsp:scriptlet>
- <tr>
+ <tr style="height: 99%">
<td class="dr-mpnl-pnl-b rich-mpnl-body" valign="top">
<vcp:body>
<f:call name="renderChildren" />
16 years, 8 months
JBoss Rich Faces SVN: r2717 - in trunk/samples/richfaces-demo/src/main: webapp/richfaces and 4 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2007-09-03 10:59:31 -0400 (Mon, 03 Sep 2007)
New Revision: 2717
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/htmlCommandLink.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/htmlCommandLink/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/htmlCommandLink/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/portlet.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/portlet/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/portlet/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/push.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/push/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/push/snippets/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/push/snippets/listenerReg.java
trunk/samples/richfaces-demo/src/main/webapp/richfaces/push/snippets/listenermessage.java
trunk/samples/richfaces-demo/src/main/webapp/richfaces/push/snippets/page.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/push/usage.xhtml
Modified:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
Log:
Coming Soon pages finally replaced with actual descriptions or demos.
Modified: trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
===================================================================
--- trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-09-03 14:31:40 UTC (rev 2716)
+++ trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-09-03 14:59:31 UTC (rev 2717)
@@ -47,7 +47,7 @@
support= ajaxSupport, Ajax Support, /images/ico_common.gif, /images/cn_ajaxSupport.gif, RichFacesComponentsLibrary.html#support, jbossajax4jsf/freezone/docs/tlddoc/a4j/support.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIAjaxSupport.html, /richfaces/support.jsf
jsFunction= ajaxSupport, JS Function, /images/ico_common.gif, /images/cn_jsFunction.gif, RichFacesComponentsLibrary.html#jsFunction, jbossajax4jsf/freezone/docs/tlddoc/a4j/jsFunction.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIAjaxFunction.html, /richfaces/jsFunction.jsf
poll= ajaxSupport, Poll, /images/ico_common.gif, /images/cn_poll.gif, RichFacesComponentsLibrary.html#poll, jbossajax4jsf/freezone/docs/tlddoc/a4j/poll.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIPoll.html, /richfaces/poll.jsf
-push= ajaxSupport, Push, /images/ico_common.gif, /images/cn_push.gif, RichFacesComponentsLibrary.html#push, jbossajax4jsf/freezone/docs/tlddoc/a4j/push.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIPush.html, /richfaces/comingSoon.jsf
+push= ajaxSupport, Push, /images/ico_common.gif, /images/cn_push.gif, RichFacesComponentsLibrary.html#push, jbossajax4jsf/freezone/docs/tlddoc/a4j/push.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIPush.html, /richfaces/push.jsf
status= ajaxSupport, Status, /images/ico_common.gif, /images/cn_status.gif, RichFacesComponentsLibrary.html#status, jbossajax4jsf/freezone/docs/tlddoc/a4j/status.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIAjaxStatus.html, /richfaces/status.jsf
ajaxListener= ajaxSupport, Ajax Listener, /images/ico_common.gif, /images/cn_ajaxListener.gif, RichFacesComponentsLibrary.html#ajaxListener, jbossajax4jsf/freezone/docs/tlddoc/a4j/ajaxListener.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/taglib/html/jsp/AjaxListenerTag.html, /richfaces/ajaxListener.jsf
region= ajaxSupport, Ajax Region, /images/ico_common.gif, /images/cn_ajaxRegion.gif, RichFacesComponentsLibrary.html#region, jbossajax4jsf/freezone/docs/tlddoc/a4j/region.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIAjaxRegion.html, /richfaces/region.jsf
@@ -59,8 +59,8 @@
mediaOutput= ajaxOutput, Media Output, /images/ico_common.gif, /images/cn_MediaOutput.gif, RichFacesComponentsLibrary.html#mediaOutput, jbossajax4jsf/freezone/docs/tlddoc/a4j/mediaOutput.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/resource/UIMediaOutput.html, /richfaces/mediaOutput.jsf
outputPanel= ajaxOutput, Output Panel, /images/ico_common.gif, /images/cn_OutputPanel.gif, RichFacesComponentsLibrary.html#outputPanel, jbossajax4jsf/freezone/docs/tlddoc/a4j/outputPanel.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIAjaxOutputPanel.html, /richfaces/outputPanel.jsf
repeat= richDataIterators, Repeat, /images/ico_common.gif, /images/cn_Repeat.gif, RichFacesComponentsLibrary.html#repeat, jbossajax4jsf/freezone/docs/tlddoc/a4j/repeat.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/repeat/UIRepeat.html, /richfaces/repeat.jsf
-htmlCommandLink= ajaxMisc, Html Command Link, /images/ico_common.gif, /images/cn_HtmlCommandLink.gif, RichFacesComponentsLibrary.html#htmlCommandLink, jbossajax4jsf/freezone/docs/tlddoc/a4j/htmlCommandLink.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/renderkit/html/HtmlCommandLinkRenderer.html, /richfaces/comingSoon.jsf
+htmlCommandLink= ajaxMisc, Html Command Link, /images/ico_common.gif, /images/cn_HtmlCommandLink.gif, RichFacesComponentsLibrary.html#htmlCommandLink, jbossajax4jsf/freezone/docs/tlddoc/a4j/htmlCommandLink.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/renderkit/html/HtmlCommandLinkRenderer.html, /richfaces/htmlCommandLink.jsf
log= ajaxMisc, Log, /images/ico_common.gif, /images/cn_Log.gif, RichFacesComponentsLibrary.html#log, jbossajax4jsf/freezone/docs/tlddoc/a4j/log.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIAjaxLog.html, /richfaces/log.jsf
page= ajaxMisc, Ajax Page, /images/ico_common.gif, /images/cn_AjaxPage.gif, RichFacesComponentsLibrary.html#page, jbossajax4jsf/freezone/docs/tlddoc/a4j/page.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIAjaxRegion.html, /richfaces/page.jsf
-portlet= ajaxMisc, Ajax Portlet, /images/ico_common.gif, /images/cn_AjaxPortlet.gif, RichFacesComponentsLibrary.html#portlet, jbossajax4jsf/freezone/docs/tlddoc/a4j/portlet.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIPortlet.html, /richfaces/comingSoon.jsf
+portlet= ajaxMisc, Ajax Portlet, /images/ico_common.gif, /images/cn_AjaxPortlet.gif, RichFacesComponentsLibrary.html#portlet, jbossajax4jsf/freezone/docs/tlddoc/a4j/portlet.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIPortlet.html, /richfaces/portlet.jsf
effect= richMisc, Effect, /images/ico_common.gif, /images/cn_Effect.gif, ArchitectureOverview.html, jbossrichfaces/freezone/docs/tlddoc/overview-summary.html, jbossrichfaces/freezone/docs/apidoc/overview-summary.html, /richfaces/effect.jsf
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/htmlCommandLink/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/htmlCommandLink/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/htmlCommandLink/usage.xhtml 2007-09-03 14:59:31 UTC (rev 2717)
@@ -0,0 +1,29 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+
+ <p>a4j:htmlCommandLink functionality is similar to the standard h:commandLink component except the additional feature.
+
+ </p>
+ <p>
+ h:commandLink renderer generates the javascript code that is used to submit the form when the link
+ is clicked. However, if the h:commandLink is rendered outside of the form, for example, when
+ you point to it with reRender, the wrong code is generated that causes the broken functionality.
+ This issue could be solved by a4j:form usage.
+ </p>
+ <p>But another problem that the link should render hidden inputs
+ for its parameters encoding. And this fields will not be generated if the link was not initially rendered and
+ then updated via ajax. So this problems solves with the a4j:htmlCommandLink usage. Nesessary fields encodes
+ even when link is not rendered initially. So it may be ajax updated and parameters will work correctly.
+ </p>
+ <rich:insert highlight="xhtml" src="/richfaces/htmlCommandLink/snippets/commandLinkProblem.xhtml"></rich:insert>
+ </ui:define>
+
+ </ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/htmlCommandLink.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/htmlCommandLink.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/htmlCommandLink.xhtml 2007-09-03 14:59:31 UTC (rev 2717)
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich">
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components - Html Command Link</ui:define>
+ <ui:define name="body">
+ <rich:tabPanel switchType="server" styleClass="top_tab" contentClass="content_tab" headerClass="header_tabs_class" inactiveTabClass="inactive_tab" activeTabClass="active_tab">
+ <rich:tab label="Usage">
+ <ui:include src="/richfaces/htmlCommandLink/usage.xhtml"/>
+ </rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="a4j/htmlCommandLink"/>
+ </ui:include>
+ </rich:tabPanel>
+ </ui:define>
+</ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/portlet/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/portlet/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/portlet/usage.xhtml 2007-09-03 14:59:31 UTC (rev 2717)
@@ -0,0 +1,49 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+ <p>
+ The <a4j:portlet> should be used in portal environment. The main
+ component purpose is realization of possibility to create several instances
+ the same portlet on one page.
+ </p>
+ <p>
+ Portal page can include some instances of the same portlet but clientId of
+ elements should be different for each window. In that case 'namespace' is used
+ for each portlet. The <a4j:portlet> implemets NaimingContainer interface and
+ adds namespace to all componets on a page. All portlet content should be
+ wrapped by <a4j:portlet> for resolving problems mentioned before.
+ </p>
+ <p>
+ More info about portal environments support can be found on the users forums.
+ </p>
+ <p>
+ Portlet Sample coulod be checked out from JBoss SVN:
+ <a href="http://anonsvn.jboss.org/repos/ajax4jsf/trunk/samples/portal-echo/">
+ portal-echo application
+ </a>
+ </p>
+ <p>
+ Usage instructions for this demo could be found at corresponding:
+ <a href="http://www.jboss.com/index.html?module=bb&op=viewtopic&t=107325">
+ JBoss forum topic
+ </a>
+ </p>
+ <ui:remove>
+ <div class="sample-container">
+ <ui:include src="/richfaces/push/examples/push.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/push/examples/push.xhtml"/>
+ <ui:param name="openlabel" value="View Page Source" />
+ </ui:include>
+ </div>
+ </ui:remove>
+ </ui:define>
+
+ </ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/portlet.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/portlet.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/portlet.xhtml 2007-09-03 14:59:31 UTC (rev 2717)
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich">
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components - Portlet component</ui:define>
+ <ui:define name="body">
+ <rich:tabPanel switchType="server" styleClass="top_tab" contentClass="content_tab" headerClass="header_tabs_class" inactiveTabClass="inactive_tab" activeTabClass="active_tab">
+ <rich:tab label="Usage">
+ <ui:include src="/richfaces/portlet/usage.xhtml"/>
+ </rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="a4j/portlet"/>
+ </ui:include>
+ </rich:tabPanel>
+ </ui:define>
+</ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/push/snippets/listenerReg.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/push/snippets/listenerReg.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/push/snippets/listenerReg.java 2007-09-03 14:59:31 UTC (rev 2717)
@@ -0,0 +1,5 @@
+public void addListener(EventListener listener) {
+synchronized (listener) {
+ if (this.listener != listener) {
+ this.listener = (PushEventListener) listener;
+}
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/push/snippets/listenermessage.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/push/snippets/listenermessage.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/push/snippets/listenermessage.java 2007-09-03 14:59:31 UTC (rev 2717)
@@ -0,0 +1,4 @@
+System.out.println("event occurs");
+synchronized (listener) {
+ listener.onEvent(new EventObject(this));
+}
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/push/snippets/page.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/push/snippets/page.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/push/snippets/page.xhtml 2007-09-03 14:59:31 UTC (rev 2717)
@@ -0,0 +1 @@
+<a4j:push reRender="msg" eventProducer="#{messageBean.addListener}" interval="3000"/>
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/push/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/push/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/push/usage.xhtml 2007-09-03 14:59:31 UTC (rev 2717)
@@ -0,0 +1,51 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+ <p>
+ The <a4j:push> periodically perform AJAX request to server, to simulate 'push' data.
+ </p>
+ <p>
+ The main difference between <a4j:push> and <a4j:poll> components
+ is that <a4j:push> makes request to minimal code only (not to JSF tree)
+ in order to check the presence of messages in the queue. If the message exists
+ the complete request will be performed. The component doesn't poll registered
+ beans but registers EventListener which receives messages about events.
+ </p>
+ <p>
+ Attribute 'interval' is used as for poll component. It specifies the interval in ms.
+ for call push request. Simple example of usage:
+ </p>
+ <p>
+ Page code:
+ <rich:insert highlight="xhtml" src="/richfaces/push/snippets/page.xhtml"/>
+ </p>
+ <p>
+ Code for registration of listener:
+ <rich:insert highlight="java" src="/richfaces/push/snippets/listenerReg.java"/>
+ </p>
+ <p>
+ Component can get message using current code:
+ <rich:insert highlight="java" src="/richfaces/push/snippets/listenermessage.java"/>
+ </p>
+ <p>
+ Thus, component 'push' uses asynchronous model instead of polls.
+ </p>
+ <ui:remove>
+ <div class="sample-container">
+ <ui:include src="/richfaces/push/examples/push.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/push/examples/push.xhtml"/>
+ <ui:param name="openlabel" value="View Page Source" />
+ </ui:include>
+ </div>
+ </ui:remove>
+ </ui:define>
+
+ </ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/push.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/push.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/push.xhtml 2007-09-03 14:59:31 UTC (rev 2717)
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich">
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components - Ajax Push</ui:define>
+ <ui:define name="body">
+ <rich:tabPanel switchType="server" styleClass="top_tab" contentClass="content_tab" headerClass="header_tabs_class" inactiveTabClass="inactive_tab" activeTabClass="active_tab">
+ <rich:tab label="Usage">
+ <ui:include src="/richfaces/push/usage.xhtml"/>
+ </rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="a4j/push"/>
+ </ui:include>
+ </rich:tabPanel>
+ </ui:define>
+</ui:composition>
+</html>
16 years, 8 months
JBoss Rich Faces SVN: r2716 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-09-03 10:31:40 -0400 (Mon, 03 Sep 2007)
New Revision: 2716
Modified:
trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
trunk/docs/userguide/en/src/main/docbook/included/recursiveTreeNodes.xml
trunk/docs/userguide/en/src/main/docbook/included/treeNodes.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.desc.xml
Log:
http://jira.jboss.com/jira/browse/RF-398
Modified: trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-09-03 14:28:26 UTC (rev 2715)
+++ trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-09-03 14:31:40 UTC (rev 2716)
@@ -55,7 +55,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>To create the simplest variant on the page use the following syntax:</para>
+ <para>To create the simplest variant on a page use the following syntax:</para>
<para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/recursiveTreeNodes.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/recursiveTreeNodes.xml 2007-09-03 14:28:26 UTC (rev 2715)
+++ trunk/docs/userguide/en/src/main/docbook/included/recursiveTreeNodes.xml 2007-09-03 14:31:40 UTC (rev 2716)
@@ -191,7 +191,7 @@
<para>
<emphasis><property>"name"</property></emphasis> attribute defines the name of the javascript function will
-be generated on the page when the component is rendered. You can invoke this function to activate the effect. The function access one parameter.
+be generated on a page when the component is rendered. You can invoke this function to activate the effect. The function access one parameter.
It is a set of effect options in JSON format.
</para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/treeNodes.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/treeNodes.desc.xml 2007-09-03 14:28:26 UTC (rev 2715)
+++ trunk/docs/userguide/en/src/main/docbook/included/treeNodes.desc.xml 2007-09-03 14:31:40 UTC (rev 2716)
@@ -8,7 +8,7 @@
<section>
<title>Description</title>
<para>
- The <property>rich:treeNodes</property> provides possibility to define data models and create representations to them.
+ The <property>rich:treeNodes</property> provides possibility to define data models and create representations for them.
</para>
<figure>
Modified: trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.desc.xml 2007-09-03 14:28:26 UTC (rev 2715)
+++ trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.desc.xml 2007-09-03 14:31:40 UTC (rev 2716)
@@ -22,7 +22,7 @@
<itemizedlist>
<listitem>Presents the Microsoft <property>Virtual Earth map</property> functionality</listitem>
<listitem>Highly customizable via attributes</listitem>
- <listitem>No developers JavaScript writing is needed to use it on the pages</listitem>
+ <listitem>No developers JavaScript writing is needed to use it on a pages</listitem>
</itemizedlist>
</section>
</section>
16 years, 8 months