JBoss Rich Faces SVN: r9300 - trunk/framework/impl/src/main/java/org/ajax4jsf/request.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-06-30 09:34:04 -0400 (Mon, 30 Jun 2008)
New Revision: 9300
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/request/MultipartRequest.java
Log:
file upload transferring
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/request/MultipartRequest.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/request/MultipartRequest.java 2008-06-30 13:33:59 UTC (rev 9299)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/request/MultipartRequest.java 2008-06-30 13:34:04 UTC (rev 9300)
@@ -469,9 +469,10 @@
return false;
}
}
- if (((Double)percentMap.get(uid)).compareTo(99.0) < 0) {
- return false;
- }
+
+// if (((Double)percentMap.get(uid)).compareTo(99.0) < 0) {
+// return false;
+// }
return true;
} else {
cancel();
16 years, 6 months
JBoss Rich Faces SVN: r9299 - trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-06-30 09:33:59 -0400 (Mon, 30 Jun 2008)
New Revision: 9299
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
file upload transferring
Modified: trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
===================================================================
--- trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-06-30 12:34:35 UTC (rev 9298)
+++ trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-06-30 13:33:59 UTC (rev 9299)
@@ -700,8 +700,8 @@
this.runUpload = false;
if (this.activeEntry) {
- if (this.isFlash) this._flashStop();
- else this.activeEntry.stop();
+ this.upload_stopped = true;
+ this.activeEntry.stop();
}
return false;
},
@@ -1186,12 +1186,13 @@
},
- _flashStop: function() {
+/* _flashStop: function() {
if (this.uploadIndex>=0) {
- this.flashComponent.cancelUploadFile(this.uploadIndex);
+ //this.flashComponent.cancelUploadFile(this.uploadIndex);
+ this.activeEntry.stop();
this._flashError(FileUploadEntry.UPLOAD_CANCELED);
}
- },
+ },*/
_flashOnProgress: function (bytesLoaded, bytesTotal)
{
@@ -1208,14 +1209,8 @@
_flashOnComplete: function () {
this.finishProgressBar();
- this._flashSetEntryState(this.uploadIndex, FileUploadEntry.UPLOAD_SUCCESS);
-
-/*
- !!! var restr = iframeDocument.getElementById('_richfaces_file_upload_size_restricted');
-
- } else if (restr) {
- this.callback(FileUploadEntry.UPLOAD_SIZE_ERROR);
- */
+ this._flashSetEntryState(this.uploadIndex, (this.upload_stopped ? FileUploadEntry.UPLOAD_CANCELED : FileUploadEntry.UPLOAD_SUCCESS));
+ this.upload_stopped=false;
},
_flashHTTPError: function (httpErrorNumber) {
16 years, 6 months
JBoss Rich Faces SVN: r9298 - trunk/framework/impl/src/main/java/org/ajax4jsf/request.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-06-30 08:34:35 -0400 (Mon, 30 Jun 2008)
New Revision: 9298
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/request/MultipartRequest.java
Log:
file upload refactoring
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/request/MultipartRequest.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/request/MultipartRequest.java 2008-06-30 12:34:31 UTC (rev 9297)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/request/MultipartRequest.java 2008-06-30 12:34:35 UTC (rev 9298)
@@ -469,7 +469,9 @@
return false;
}
}
-
+ if (((Double)percentMap.get(uid)).compareTo(99.0) < 0) {
+ return false;
+ }
return true;
} else {
cancel();
16 years, 6 months
JBoss Rich Faces SVN: r9297 - trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-06-30 08:34:31 -0400 (Mon, 30 Jun 2008)
New Revision: 9297
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
file upload refactoring
Modified: trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
===================================================================
--- trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-06-30 11:39:36 UTC (rev 9296)
+++ trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-06-30 12:34:31 UTC (rev 9297)
@@ -1150,22 +1150,36 @@
}
},
- _getFleshActionUrl: function (url) {
+ _flashGetActionUrl: function (url, entry) {
+ var getParams = "_richfaces_upload_uid="+ encodeURI(entry.uid) + "&id=" + this.id + "&_richfaces_upload_file_indicator=true&_richfaces_send_http_error=true";
if (/\?/.test(url)) {
var i = url.indexOf("?");
- url = url.substring(0, i) + ";jsessionid=" + this.sessionId + url.substring(i);
+ url = url.substring(0, i) + ";jsessionid=" + this.sessionId + url.substring(i) + "&" + getParams;
} else {
- url = url + ";jsessionid=" + this.sessionId;
+ url = url + ";jsessionid=" + this.sessionId + "?" + getParams;
}
return url;
- },
+ },
+ _flashGetPostParams: function () {
+ var params = '';
+ var inputs = this.form.elements;
+ var l = inputs.length;
+ for (var i = 0; i < l; i++) {
+ var input = inputs[i];
+ if (input.id != (this.id + ':file')) {
+ params = params + '&' + input.name + '=' + input.value;
+ }
+
+ }
+ return params;
+ },
+
_flashSubmitForm: function(entry) {
entry.uid = encodeURIComponent(Math.random().toString());
- var action = this._getFleshActionUrl(this.actionUrl);
- var action = action + (/\?/.test(action) ? '&_richfaces_upload_uid=' : '?_richfaces_upload_uid=') + encodeURI(entry.uid) + "&id=" + this.id + "&_richfaces_upload_file_indicator=true&_richfaces_send_http_error=true";
- var size = this.flashComponent.uploadFile(this.uploadIndex, action,"javax.faces.ViewState=" +this.form['javax.faces.ViewState'].value+"&"+this.form.id+"="+this.form.id);
+ var action = this._flashGetActionUrl(this.actionUrl, entry);
+ var size = this.flashComponent.uploadFile(this.uploadIndex, action, this._flashGetPostParams());
if (this.labelMarkup) {
this.progressData = new ProgressData(size);
}
16 years, 6 months
JBoss Rich Faces SVN: r9296 - trunk/docs/faq/en/src/main/docbook/module.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-06-30 07:39:36 -0400 (Mon, 30 Jun 2008)
New Revision: 9296
Modified:
trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml
Log:
RF-672 - corrected names components and attributes.
Modified: trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml
===================================================================
--- trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml 2008-06-30 11:39:09 UTC (rev 9295)
+++ trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml 2008-06-30 11:39:36 UTC (rev 9296)
@@ -933,8 +933,8 @@
<section id="DelayedRenderZone">
<?dbhtml filename="DelayedRenderZone.html"?>
<title>How to create "a4j delayed render zone"?</title>
- <para>The <emphasis role="bold"><a4j:support></emphasis> component has
- a "requestDelay" attribute where you can define the delay.</para>
+ <para>The <emphasis role="bold"><property><a4j:support></property></emphasis> component has
+ a <emphasis><property>"requestDelay"</property></emphasis> attribute where you can define the delay.</para>
<para>More information about this problem could be found on the <ulink
url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104969"
>Ajax4Jsf Users Forum.</ulink>
@@ -1017,7 +1017,7 @@
<?dbhtml filename="SomeProblemsWithRendering.html"?>
<title>Can I use <a4j:region> within <a4j:repeat>?</title>
<para>
- <emphasis role="bold"><a4j:region></emphasis> can't
+ <emphasis role="bold"><property><a4j:region></property></emphasis> can't
work inside iteration components like <emphasis role="bold"
><property><h:dataTable></property></emphasis> and <emphasis role="bold"
><property><a4j:repeat></property></emphasis>. </para>
16 years, 6 months
JBoss Rich Faces SVN: r9295 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-06-30 07:39:09 -0400 (Mon, 30 Jun 2008)
New Revision: 9295
Modified:
trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml
Log:
RF-3553 - added information about Phase Listener for datascroller
Modified: trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml 2008-06-30 08:01:08 UTC (rev 9294)
+++ trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml 2008-06-30 11:39:09 UTC (rev 9295)
@@ -79,7 +79,7 @@
with Ajax requests usage.</para>
<para>The component should be placed into footer of the parent table or be bound to it with the <emphasis>
<property>"for"</property>
- </emphasis> attribute. Note, that "for" is evaluated on view build, not on view render, that is why it will ignore JSTL tags.</para>
+ </emphasis> attribute. Note, that <emphasis><property>"for"</property></emphasis> is evaluated on view build, not on view render, that is why it will ignore JSTL tags.</para>
<para>The table should also have the defined <emphasis>
<property>"rows"</property>
</emphasis> attribute limiting the quantity of inputted table rows.</para>
@@ -261,6 +261,22 @@
...
]]></programlisting>
<para>
+ Starting from 3.2.1 of RichFaces multiple <emphasis role="bold"><property><rich:datascroller></property></emphasis> instances behavior and page bindings are corrected. Incorrect page after model changes handling is added.
+ Phase Listener called before RenderResponce scans the page for the <emphasis role="bold"><property><rich:datascroller></property></emphasis> and performs the following operations:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Checks if the <emphasis role="bold"><property><rich:datascroller></property></emphasis> is rendered. (If the checking generates an exception, the <emphasis role="bold"><property><rich:datascroller></property></emphasis> is considered to be not rendered )
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If the <emphasis role="bold"><property><rich:datascroller></property></emphasis> is rendered - the table to which the <emphasis role="bold"><property><rich:datascroller></property></emphasis> is attached gets the value of the page attribute of <emphasis role="bold"><property><rich:datascroller></property></emphasis>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
Information about the <emphasis><property>"process"</property></emphasis> attribute usage you can find <link linkend="process">here</link>.
</para>
<note>
16 years, 6 months
JBoss Rich Faces SVN: r9294 - trunk/docs/userguide/en/src/main/resources/images.
by richfaces-svn-commits@lists.jboss.org
Author: pkawiak
Date: 2008-06-30 04:01:08 -0400 (Mon, 30 Jun 2008)
New Revision: 9294
Added:
trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_DD.png
trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_actions.png
trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_cn.png
trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_grouped.png
trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_hideCol.png
trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_init.png
trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_multiselect.png
Log:
extendedDataTable documentation images commit
Added: trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_DD.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_DD.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_actions.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_actions.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_cn.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_cn.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_grouped.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_grouped.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_hideCol.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_hideCol.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_init.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_init.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_multiselect.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_multiselect.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 6 months
JBoss Rich Faces SVN: r9293 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: pkawiak
Date: 2008-06-30 04:00:12 -0400 (Mon, 30 Jun 2008)
New Revision: 9293
Added:
trunk/docs/userguide/en/src/main/docbook/included/extendedDataTable.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/extendedDataTable.xml
Log:
Documentation xml's commit
Added: trunk/docs/userguide/en/src/main/docbook/included/extendedDataTable.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/extendedDataTable.desc.xml (rev 0)
+++ trunk/docs/userguide/en/src/main/docbook/included/extendedDataTable.desc.xml 2008-06-30 08:00:12 UTC (rev 9293)
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3CR3//EN" "http://www.oasis-open.org/docbook/xml/4.3CR3/docbookx.dtd"
+[
+<!ENTITY extDataTable "rich:extendedDataTable">
+]
+>
+
+<section>
+ <sectioninfo>
+ <keywordset>
+ <keyword>&extDataTable;</keyword>
+ </keywordset>
+ </sectioninfo>
+ <section>
+ <title>Description</title>
+ <para>The component for tables extending standard component <emphasis role="bold">
+ <property><rich:dataTable></property>
+ </emphasis>.</para>
+ <figure>
+ <title><emphasis role="bold"><property><&extDataTable;></property></emphasis> component</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/extendedDataTable_init.png" width="75%"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section>
+ <title>Key Features</title>
+ <itemizedlist>
+ <listitem><para>Possibility to scroll data</para></listitem>
+ <listitem><para>Possibility to add an attribute to set the kind of selection (none, single line or multiple lines)</para></listitem>
+ <listitem><para>Possibility to change the sequence of the displayed columns by dragging the column-header to another position</para></listitem>
+ <listitem><para>Possibility to show or hide columns by selecting or deselecting them in a context menu</para></listitem>
+ <listitem><para>Possibility to save the current settings (visible columns, column width, sequence of the columns) to be reused the next time the page will be shown</para></listitem>
+ <listitem><para>Possibility to combine rows to groups</para></listitem>
+ </itemizedlist>
+ </section>
+</section>
\ No newline at end of file
Added: trunk/docs/userguide/en/src/main/docbook/included/extendedDataTable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/extendedDataTable.xml (rev 0)
+++ trunk/docs/userguide/en/src/main/docbook/included/extendedDataTable.xml 2008-06-30 08:00:12 UTC (rev 9293)
@@ -0,0 +1,574 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3CR3//EN" "http://www.oasis-open.org/docbook/xml/4.3CR3/docbookx.dtd"
+[
+<!ENTITY extDataTable "rich:extendedDataTable">
+]
+>
+
+<section>
+ <sectioninfo>
+ <keywordset>
+ <keyword>table</keyword>
+ <keyword>&extDataTable;</keyword>
+ <keyword>HtmlDataTable</keyword>
+ </keywordset>
+ </sectioninfo>
+
+ <table>
+ <title>Component identification parameters </title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Name</entry>
+ <entry>Value</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>component-type</entry>
+ <entry>org.richfaces.ExtendedDataTable</entry>
+ </row>
+ <row>
+ <entry>component-class</entry>
+ <entry>org.richfaces.component.html.HtmlExtendedDataTable</entry>
+ </row>
+ <row>
+ <entry>component-family</entry>
+ <entry>org.richfaces.ExtendedDataTable</entry>
+ </row>
+ <row>
+ <entry>renderer-type</entry>
+ <entry>org.richfaces.ExtendedDataTableRenderer</entry>
+ </row>
+ <row>
+ <entry>tag-class</entry>
+ <entry>org.richfaces.taglib.ExtendedDataTableTag</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <section>
+ <title>Creating the Component with a Page Tag</title>
+ <para>Here is a simple example as it could be used on a page:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+ <rich:extendedDataTable value="#{extendedDT.dataModel}" var="edt">
+ <rich:column>
+ ...
+ </rich:column>
+ </rich:extendedDataTable>
+...
+]]></programlisting>
+ </section>
+ <section>
+ <title>Creating the Component Dynamically from Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlExtendedDataTable;
+...
+HtmlExtendedDataTable myTable = new HtmlExtendedDataTable();
+...
+]]></programlisting>
+ </section>
+ <section>
+ <title>Details of Usage</title>
+ <para>The <emphasis role="bold">
+ <property><&extDataTable;></property>
+ </emphasis> component is similar to the <emphasis role="bold">
+ <property><rich:dataTable></property>
+ </emphasis>. The data in component is scrollable. You can also set the type of selection (<emphasis>
+ <property>"none",</property>
+ </emphasis> <emphasis>
+ <property>"single"</property>
+ </emphasis> or <emphasis>
+ <property>"multi"</property>
+ </emphasis> lines). Selection of multiple lines is possible using Shift and Ctrl keys.</para>
+
+ <para>Here is an example:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+ <rich:extendedDataTable id="edt" value="#{extendedDT.dataModel}"
+ var="edt" width="500px" height="500px"
+ selectedClass="dataTableSelectedRow"
+ sortMode="single" selectionMode="multi"
+ selection="#{extendedDT.selection}" rowKeyVar="rkvar"
+ tableState="#{extendedDT.tableState}">
+ <rich:column id="id" headerClass="dataTableHeader" width="50"
+ label="Id" sortable="true" sortBy="#{edt.id}"
+ sortIconAscending="dataTableAscIcon"
+ sortIconDescending="dataTableDescIcon">
+ <f:facet name="header">
+ <h:outputText value="Id" />
+ </f:facet>
+ <h:outputText value="#{edt.id}" />
+ </rich:column>
+ <rich:column id="name" width="300" headerClass="dataTableHeader"
+ label="Name" sortable="true" sortBy="#{edt.name}"
+ sortIconAscending="dataTableAscIcon"
+ sortIconDescending="dataTableDescIcon" filterBy="#{edt.name}"
+ filterEvent="onkeyup" visible="false">
+ <f:facet name="header">
+ <h:outputText value="Name" />
+ </f:facet>
+ <h:outputText value="#{edt.name}" />
+ </rich:column>
+ <rich:column id="date" width="100" headerClass="dataTableHeader"
+ label="Date" sortable="true"
+ comparator="#{extendedDT.dateComparator}"
+ sortIconAscending="dataTableAscIcon"
+ sortIconDescending="dataTableDescIcon">
+ <f:facet name="header">
+ <h:outputText value="Date" />
+ </f:facet>
+ <h:outputText value="#{edt.date}">
+ <f:convertDateTime pattern="yyyy-MM-dd HH:mm:ss" />
+ </h:outputText>
+ </rich:column>
+ <rich:column id="group" width="50" headerClass="dataTableHeader"
+ label="Group" sortable="true" sortBy="#{edt.group}"
+ sortIconAscending="dataTableAscIcon"
+ sortIconDescending="dataTableDescIcon">
+ <f:facet name="header">
+ <h:outputText value="Group" />
+ </f:facet>
+ <h:outputText value="#{edt.group}" />
+ </rich:column>
+
+ </rich:extendedDataTable>
+ ...
+]]></programlisting>
+
+ <figure>
+ <title><emphasis role="bold">
+ <property><&extDataTable;></property>
+ </emphasis> component with selected multiple lines</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/extendedDataTable_multiselect.png" width="75%"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Information about sorting and filtering can be found <link linkend="sortAndFilter">here</link>.</para>
+
+ <para> In the example <emphasis>
+ <property>"selection"</property>
+ </emphasis> attribute contains object with selected rows.
+ </para>
+
+ <note>
+ Attribute<emphasis>
+ <property>"height"</property>
+ </emphasis>is mandatory. The default value is <emphasis>
+ <property>"500px"</property>
+ </emphasis>.
+ </note>
+
+ <para>
+ Menu on the right side of the column header is used to perform action: sorting, grouping, hiding columns.
+ </para>
+
+ <para>This is an example:</para>
+
+ <figure>
+ <title>Column menu</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/extendedDataTable_actions.png" width="50%"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>
+ After selecting a "Group by this column" option, you can see the data grouped. You can collapse and expand groups by clicking on a group header.
+ </para>
+
+ <para>This is an example:</para>
+
+ <figure>
+ <title><emphasis role="bold">
+ <property><&extDataTable;></property>
+ </emphasis> component with grouped data</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/extendedDataTable_grouped.png" width="75%"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>
+ The <emphasis>
+ <property>"label"</property>
+ </emphasis> attribute in <emphasis role="bold">
+ <property><rich:column></property>
+ </emphasis> sets the name of the column, which is used when dragging columns (in drag window) and in context menu, in "Columns" submenu.
+ </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+ <rich:column id="name"
+ label="#{msg['name']}"
+ ...>
+]]></programlisting>
+
+ <figure>
+ <title><emphasis role="bold">
+ <property><&extDataTable;></property>
+ </emphasis> component with Drag&Drop column 'Name'</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/extendedDataTable_DD.png" width="75%"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>
+ In the component <emphasis role="bold">
+ <property><&extDataTable;></property>
+ </emphasis> columns can hidden:
+ </para>
+
+ <figure>
+ <title><emphasis role="bold">
+ <property><&extDataTable;></property>
+ </emphasis> component with hidden column 'Id' and 'Group'</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/extendedDataTable_hideCol.png" width="75%"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <!-- <para>
+ For each column can be set the filter.
+ </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+ <rich:column id="name"
+ filterBy="#{entity.name}" filterEvent="onkeyup">
+...
+]]></programlisting>
+
+ <figure>
+ <title><emphasis role="bold">
+ <property><&extDataTable;></property>
+ </emphasis> component with filtered column 'Name'</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/extendedDataTable_filtered.png" width="75%"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ -->
+ <para><emphasis>
+ <property>"tableState"</property>
+ </emphasis> attribute can be used to bind state of the table (column width, column position, visible, sequence, grouping...)
+ to a backing-bean string property, for a later used. This state can be for example saved to a database, and it is different
+ form standard JSF state saving mechanisms.</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+
+ <programlisting role="XML"><![CDATA[...
+ tableState="#{extendedDT.tableState}"
+...
+]]></programlisting>
+
+
+ </section>
+ <section>
+ <title>Look-and-Feel Customization</title>
+
+ <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><&extDataTable;></property>
+ </emphasis> components at once:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>Redefine the corresponding skin parameters</para>
+ </listitem>
+
+ <listitem>
+ <para>Add to your style sheets <emphasis>
+ <property>style classes</property>
+ </emphasis> used by a <emphasis role="bold">
+ <property><&extDataTable;></property>
+ </emphasis> component</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id="SPR">
+ <title>Skin Parameters Redefinition</title>
+
+ <table>
+ <title>Skin parameters redefinition for a table</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>tableBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Skin parameters redefinition for a header</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>headerBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Skin parameters redefinition for a footer</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>tableFooterBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Skin parameters redefinition for a column header</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>additionalBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Skin parameters redefinition for a column footer</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>tableSubfooterBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Skin parameters redefinition for cells</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>generalSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+ <row>
+ <entry>generalTextColor</entry>
+ <entry>color</entry>
+ </row>
+ <row>
+ <entry>generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ </section>
+
+ <section id="DofCCS">
+ <title>Definition of Custom Style Classes</title>
+
+ <para>On the screenshot there are classes names that define styles for component elements.</para>
+
+ <figure>
+ <title><emphasis role="bold"><property><&extDataTable;></property></emphasis> class names</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/extendedDataTable_cn.png" width="100%"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <table id="dTC">
+ <title>Classes names that define a whole component appearance</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>rich-extdt</entry>
+ <entry>Defines styles for all table</entry>
+ </row>
+ <row>
+ <entry>rich-extdt-caption</entry>
+ <entry>Defines styles for a "caption" facet element</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Classes names that define header and footer elements</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+
+ <row>
+ <entry>rich-extdt-header</entry>
+ <entry>Defines styles for a table header row</entry>
+ </row>
+
+ <row>
+ <entry>rich-extdt-header-continue</entry>
+ <entry>Defines styles for all header lines after the first</entry>
+ </row>
+ <row>
+ <entry>rich-extdt-subheader</entry>
+ <entry>Defines styles for a column header</entry>
+ </row>
+
+ <row>
+ <entry>rich-extdt-footer</entry>
+ <entry>Defines styles for a footer row</entry>
+ </row>
+
+ <row>
+ <entry>rich-extdt-footer-continue</entry>
+ <entry>Defines styles for all footer lines after the first</entry>
+ </row>
+ <row>
+ <entry>rich-extdt-subfooter</entry>
+ <entry>Defines styles for a column footer</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Classes names that define rows and cells of a table</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>rich-extdt-headercell</entry>
+ <entry>Defines styles for a header cell</entry>
+ </row>
+
+ <row>
+ <entry>rich-extdt-subheadercell</entry>
+ <entry>Defines styles for a column header cell</entry>
+ </row>
+ <row>
+ <entry>rich-extdt-cell</entry>
+ <entry>Defines styles for a table cell</entry>
+ </row>
+ <row>
+ <entry>rich-extdt-row</entry>
+ <entry>Defines styles for a table row</entry>
+ </row>
+ <row>
+ <entry>rich-extdt-firstrow</entry>
+ <entry>Defines styles for a table start row</entry>
+ </row>
+
+ <row>
+ <entry>rich-extdt-footercell</entry>
+ <entry>Defines styles for a footer cell</entry>
+ </row>
+
+ <row>
+ <entry>rich-extdt-subfootercell</entry>
+ <entry>Defines styles for a column footer cell</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para> An example of use the styles for component <emphasis role="bold">
+ <property><&extDataTable;></property>
+ </emphasis> is similar to
+ <emphasis role="bold">
+ <property><rich:dataTable></property>
+ </emphasis>
+ </para>
+
+ </section>
+</section>
16 years, 6 months
JBoss Rich Faces SVN: r9292 - trunk/ui/tree/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-06-29 18:57:11 -0400 (Sun, 29 Jun 2008)
New Revision: 9292
Modified:
trunk/ui/tree/src/main/java/org/richfaces/component/UITree.java
Log:
http://jira.jboss.com/jira/browse/RF-3818
Modified: trunk/ui/tree/src/main/java/org/richfaces/component/UITree.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/component/UITree.java 2008-06-28 16:13:20 UTC (rev 9291)
+++ trunk/ui/tree/src/main/java/org/richfaces/component/UITree.java 2008-06-29 22:57:11 UTC (rev 9292)
@@ -1177,10 +1177,10 @@
Object storedKey = getRowKey();
try {
setRowKey(context, parentRowKey);
- TreeNode parentNode = parentRowKey != null ? getTreeNode() : null;
- if (parentNode == null && getValue() != null && getValue() instanceof TreeNode) {
- parentNode = (TreeNode) getValue();
- } else {
+ TreeNode parentNode = (parentRowKey != null) ?
+ getTreeNode() : (TreeNode) getExtendedDataModel().getWrappedData();
+
+ if (parentNode == null) {
throw new IllegalArgumentException("Parent node required!");
}
16 years, 6 months
JBoss Rich Faces SVN: r9291 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-06-28 12:13:20 -0400 (Sat, 28 Jun 2008)
New Revision: 9291
Modified:
trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml
Log:
RF-3591:custom JSF tags that incorporate the rich:datascroller.
Modified: trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml 2008-06-28 14:53:08 UTC (rev 9290)
+++ trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml 2008-06-28 16:13:20 UTC (rev 9291)
@@ -79,7 +79,7 @@
with Ajax requests usage.</para>
<para>The component should be placed into footer of the parent table or be bound to it with the <emphasis>
<property>"for"</property>
- </emphasis> attribute.</para>
+ </emphasis> attribute. Note, that "for" is evaluated on view build, not on view render, that is why it will ignore JSTL tags.</para>
<para>The table should also have the defined <emphasis>
<property>"rows"</property>
</emphasis> attribute limiting the quantity of inputted table rows.</para>
16 years, 6 months