JBoss Rich Faces SVN: r7408 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-03-29 10:45:28 -0400 (Sat, 29 Mar 2008)
New Revision: 7408
Modified:
trunk/docs/userguide/en/src/main/docbook/included/column.xml
Log:
http://jira.jboss.com/jira/browse/RF-1740 - sorting feature reviewed.
Modified: trunk/docs/userguide/en/src/main/docbook/included/column.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/column.xml 2008-03-29 14:44:14 UTC (rev 7407)
+++ trunk/docs/userguide/en/src/main/docbook/included/column.xml 2008-03-29 14:45:28 UTC (rev 7408)
@@ -187,9 +187,11 @@
<title>Sorting and Filtering</title>
<section>
<title>Sorting</title>
- <para>In order to sort the columns you could use <emphasis><property>"sortBy"</property></emphasis> attribute which defines a bean property which is used for sorting of a column.</para>
- <para>In order to sort the data in descending order, you should double-click on the header of column, which you want to sort.</para>
<para>
+ In order to sort the columns you could use <emphasis><property>"sortBy"</property></emphasis> attribute
+ which defines a bean property which is used for sorting of a column. See the following example.
+ </para>
+ <para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
@@ -200,13 +202,13 @@
</f:facet>
<rich:column sortBy="#{cap.state}">
<f:facet name="header">
- <h:outputText value="State Name"></h:outputText>
+ <h:outputText value="State Name"/>
</f:facet>
- <h:outputText value="#{cap.state}"></h:outputText>
+ <h:outputText value="#{cap.state}"/>
</rich:column>
<rich:column sortBy="#{cap.name}">
<f:facet name="header">
- <h:outputText value="State Capital"></h:outputText>
+ <h:outputText value="State Capital"/>
</f:facet>
<h:outputText value="#{cap.name}"/>
</rich:column>
@@ -215,7 +217,9 @@
...]]></programlisting>
<para>This is result:</para>
<figure>
- <title>Example sorting first column in ascending</title>
+ <title>
+ <emphasis role="bold"><property><rich:column></property></emphasis> with <emphasis><property>"sortBy"</property></emphasis> attribute
+ </title>
<mediaobject>
<imageobject>
<imagedata fileref="images/columnsort1.png"/>
@@ -223,20 +227,28 @@
</mediaobject>
</figure>
- <para>If you don't use <emphasis><property>"sortOrder"</property></emphasis> attribute then the first column will be sorted in ascending.</para>
- <para>Possible values:</para>
+ <para>
+ In order to change sort order you could use <emphasis><property>"sortOrder"</property></emphasis> attribute.
+ </para>
+ <para>Possible values are:</para>
<itemizedlist>
<listitem>
- "ASCENDING" - column will be sorted in ascending
+ "ASCENDING" - column is sorted in ascending
</listitem>
<listitem>
- "DESCENDING" - column will be sorted in descending
+ "DESCENDING" - column is sorted in descending
</listitem>
<listitem>
- "UNSORTED" - column won't be sorted
+ "UNSORTED" - column isn't sorted
</listitem>
</itemizedlist>
<para>
+ If you don't use <emphasis><property>"sortOrder"</property></emphasis> attribute then the first column is sorted in ascending.
+ </para>
+ <para>
+ In order to change the sort order, you could double-click on the header of column, which you want to sort.
+ </para>
+ <para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
@@ -260,10 +272,9 @@
</rich:dataTable>
</h:form>
...]]></programlisting>
- <para>Below you can see result:</para>
-
+ <para>Below you can see the result:</para>
<figure>
- <title>Sorting using the example of the <emphasis><property>"sortOrder"</property></emphasis> attribute</title>
+ <title><emphasis role="bold"><property><rich:column></property></emphasis> with <emphasis><property>"sortOrder"</property></emphasis> attribute</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/columnsort2.png"/>
@@ -271,9 +282,21 @@
</mediaobject>
</figure>
- <para><emphasis><property>"sortPriority"</property></emphasis> attribute is defined in the <emphasis role="bold"><property>rich:dataTable</property></emphasis> component which should be defined as set of column ids in the order the columns should be set.</para>
- <para>If the columns sort order changed externally – sort priorities should be used to define which columns will be sorted first.</para>
<para>
+ In the example above the first column is sorted in descending order. But if recurring rows appear in the table the relative second column are sorted in ascending order.
+ </para>
+ <para>
+ The <emphasis><property>"sortPriority"</property></emphasis> attribute
+ defines a set of column <property>ids</property> in the order the columns could be set.
+ </para>
+ <para>
+ If the columns sort order changed externally sort priorities could be used to define which columns will be sorted first.
+ </para>
+ <!--para>
+ Note that <emphasis><property>"sortPriority"</property></emphasis> attribute is defined in
+ the <emphasis role="bold"><property><rich:dataTable></property></emphasis> component!
+ </para-->
+ <para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
@@ -297,88 +320,97 @@
</rich:dataTable>
</h:form>
...]]></programlisting>
- <para><emphasis><property>"selfSorted"</property></emphasis> attribute will manage if it's header will be clickable, icons rendered and sorting will be fired after click on the header.
- So, developer will be able to define the <emphasis><property>sortBy</property></emphasis> property and conditionally use internal sorting.</para>
- <para>The default attribute is set to <emphasis><property>"true"</property></emphasis>.</para>
<para>
- <emphasis role="bold">Example:</emphasis>
+ You could manage if the header of the column is clickable, icons rendered and sorting is fired after click on the header
+ with the help of the following attributes:
</para>
- <programlisting role="XML"><![CDATA[...
-<h:form>
- <rich:dataTable value="#{capitalsBean.capitals}" var="cap" width="300px" columnClasses="center">
- <f:facet name="header">
- <h:outputText value="Sorting Example"/>
- </f:facet>
+ <itemizedlist>
+ <listitem>
+ <para>
+ The <emphasis><property>"selfSorted"</property></emphasis> attribute
+ which is defined in <emphasis role="bold"><property><rich:dataTable></property></emphasis> component.
+ Default value is "true". In the example below the second column is unavailable for sorting.
+ </para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<rich:dataTable value="#{capitalsBean.capitals}" var="cap">
<rich:column>
- <f:facet name="header">
- <h:outputText value="State Flag"></h:outputText>
- </f:facet>
- <h:graphicImage value="#{cap.stateFlag}"/>
+ <f:facet name="header">
+ <h:outputText value="State Flag"/>
+ </f:facet>
+ <h:graphicImage value="#{cap.stateFlag}"/>
</rich:column>
<rich:column sortBy="#{cap.state}" selfSorted="false">
- <f:facet name="header">
- <h:outputText value="State Name"></h:outputText>
- </f:facet>
- <h:outputText value="#{cap.state}"></h:outputText>
+ <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>As a result, the second column will be unavailable for sorting.</para>
- <para><emphasis><property>"sortable"</property></emphasis> attribute is used with <emphasis role="bold"><property><rich:scrollableDataTable></property></emphasis> component.</para>
- <para>Below you can find example code of usage and result:</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
-<h:form>
- <rich:spacer height="30" />
- <rich:scrollableDataTable rowKeyVar="rkv" frozenColCount="1"
- height="250px" width="300px" id="carList" columnClasses="col"
- value="#{dataTableScrollerBean.allCars}" var="category" rows="10"
+</rich:dataTable>
+...]]></programlisting>
+ </listitem>
+ <listitem>
+ <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.
+ </para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<rich:scrollableDataTable rowKeyVar="rkv" frozenColCount="1"
+ id="carList" columnClasses="col" value="#{dataTableScrollerBean.allCars}" var="category"
sortMode="single" binding="#{dataTableScrollerBean.table}"
selection="#{dataTableScrollerBean.selection}">
- <rich:column id="make" sortable="true">
+ <rich:column id="make" sortable="true">
<f:facet name="header">
- <h:outputText styleClass="headerText" value="Make" />
- </f:facet>
+ <h:outputText styleClass="headerText" value="Make" />
+ </f:facet>
<h:outputText value="#{category.make}" />
- </rich:column>
- <rich:column id="model">
- <f:facet name="header">
- <h:outputText styleClass="headerText" value="Model" />
- </f:facet>
- <h:outputText value="#{category.model}" />
- </rich:column>
- <rich:column id="price">
- <f:facet name="header">
- <h:outputText styleClass="headerText" value="Price" />
- </f:facet>
- <h:outputText value="#{category.price}" />
- </rich:column>
- </rich:scrollableDataTable>
- <rich:spacer height="10px" />
-</h:form>
+ </rich:column>
+ <rich:column id="model">
+ <f:facet name="header">
+ <h:outputText styleClass="headerText" value="Model" />
+ </f:facet>
+ <h:outputText value="#{category.model}" />
+ </rich:column>
+ <rich:column id="price">
+ <f:facet name="header">
+ <h:outputText styleClass="headerText" value="Price" />
+ </f:facet>
+ <h:outputText value="#{category.price}" />
+ </rich:column>
+</rich:scrollableDataTable>
...]]></programlisting>
- <para>As a result, only the first column can be sorted.</para>
- <figure>
- <title>Sorting using the example of the <emphasis><property>"sortable"</property></emphasis> attribute</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/columnsort3.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para><emphasis><property>"sortExpression"</property></emphasis> attribute defines a bean property which is used for sorting of a column. Usage of this attribute is not recommendable.</para>
- <para>Sorting can't be used together with pagination.</para>
+ <figure>
+ <title>The <emphasis><property>"sortable"</property></emphasis> attribute usage</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/columnsort3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ </itemizedlist>
+
+ <note>
+ <title>Note:</title>
+ <para>
+ The <emphasis><property>"sortExpression"</property></emphasis> attribute that defines
+ sorting property is deprecated! You could use the <emphasis><property>"sortBy"</property></emphasis> attribute
+ for the same purpose.
+ </para>
+ </note>
+
+ <para>
+ Sorting could not be used together with pagination.
+ Only row that currently on the client could be sorted.
+ </para>
</section>
+
<section>
<title>Filtering</title>
<para>In order to filter the column value, in accordance with the entered value, it is necessary to use a <emphasis><property>"filterBy"</property></emphasis> attribute.</para>
16 years, 1 month
JBoss Rich Faces SVN: r7407 - in trunk/docs/userguide/en/src/main: resources/images and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-03-29 10:44:14 -0400 (Sat, 29 Mar 2008)
New Revision: 7407
Modified:
trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml
trunk/docs/userguide/en/src/main/resources/images/fileUpload10.png
trunk/docs/userguide/en/src/main/resources/images/fileUpload9.png
Log:
http://jira.jboss.com/jira/browse/RF-1207 - review done
Modified: trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml 2008-03-29 13:48:02 UTC (rev 7406)
+++ trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml 2008-03-29 14:44:14 UTC (rev 7407)
@@ -376,8 +376,41 @@
</section>
-
+ <!-- JavaScript API-->
<section>
+ <title>JavaScript API</title>
+ <table>
+ <title>JavaScript API</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Function</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>enable()</entry>
+ <entry>Enables the component</entry>
+ </row>
+ <row>
+ <entry>disable()</entry>
+ <entry>Disables the component</entry>
+ </row>
+ <row>
+ <entry>stop()</entry>
+ <entry>Stops the uploading process</entry>
+ </row>
+ <row>
+ <entry>clear()</entry>
+ <entry>Clears list of files</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+ <!-- End of JavaScript API-->
+ <section>
<title>Look-and-Feel Customization</title>
<para>For skinnability implementation, the components use a <emphasis>
<property>style class redefinition method.</property>
@@ -792,45 +825,46 @@
</row>
<row>
<entry>rich-fileupload-anc</entry>
- <entry>Defines styles for "Cancel" and "Clear" links</entry>
+ <entry>Defines styles for "Cancel", "Stop", "Clear" links</entry>
</row>
</tbody>
</tgroup>
</table>
- <para>In order to redefine styles for all <emphasis role="bold">
- <property><rich:fileUpload></property>
- </emphasis> components on a page using CSS, it's enough to create classes with the
- same names (possible classes could be found in the tables <link linkend="fileUploadCN"> above</link>) and define necessary properties in them. </para>
-
+ <para>In order to redefine styles for all <emphasis role="bold"><property><rich:fileUpload></property></emphasis> components on a page
+ using CSS, it's enough to create classes with the same names
+ (possible classes could be found in the tables <link linkend="fileUploadCN"> above</link>) and define necessary properties in them.
+ </para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="CSS"><![CDATA[...
-.upload_list_decor{
-background-color:#ecf4fe;
+.rich-fileupload-anc{
+ font-weight:bold;
+ text-decoration:none;
}
...]]></programlisting>
- <para>This is a result:</para>
+ <para>This is the result:</para>
<figure>
<title>Redefinition styles with predefined classes</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/fileUpload10.png"/>
+ <imagedata fileref="images/fileUpload9.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>In the example the background color for list is changed.</para>
+ <para>In the example above the font weight and text decoration for "Cancel" and "Clear" links are changed.</para>
- <para>Also it’s possible to change styles of particular <emphasis role="bold"
- ><property><rich:fileUpload></property></emphasis> component. In this case you should create own style classes and use them in the corresponding <emphasis role="bold"
- ><property><rich:fileUpload></property></emphasis> <property>styleClass</property> attributes. An example is placed below:</para>
-
<para>
+ Also it’s possible to change styles of particular <emphasis role="bold"><property><rich:fileUpload></property></emphasis> component.
+ In this case you should create own style classes and use them in the corresponding <emphasis role="bold"><property><rich:fileUpload></property></emphasis>
+ <property>styleClass</property> attributes. An example is placed below:
+ </para>
+ <para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="CSS"><![CDATA[...
@@ -838,27 +872,27 @@
font-weight:bold;
}
...]]></programlisting>
- <para>The <emphasis><property>"addButtonClass"</property></emphasis> attribute for <emphasis role="bold"
- ><property><rich:fileUpload></property></emphasis> is defined as it’s shown in the example below:</para>
-
<para>
+ The <emphasis><property>"addButtonClass"</property></emphasis> attribute for
+ <emphasis role="bold"><property><rich:fileUpload></property></emphasis> is defined as it’s shown in the example below:
+ </para>
+ <para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="CSS"><![CDATA[<rich:fileUpload ... addButtonClass="myClass"/>
]]></programlisting>
- <para>This is a result:</para>
-
+ <para>This is the result:</para>
<figure>
<title>Redefinition styles with own classes and styleClass attributes</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/fileUpload9.png"/>
+ <imagedata fileref="images/fileUpload10.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>As it could be seen on the picture above, the font style for add button is changed.</para>
+ <para>As it could be seen on the picture above, the font style for "Add" button is changed.</para>
</section>
Modified: trunk/docs/userguide/en/src/main/resources/images/fileUpload10.png
===================================================================
(Binary files differ)
Modified: trunk/docs/userguide/en/src/main/resources/images/fileUpload9.png
===================================================================
(Binary files differ)
16 years, 1 month
JBoss Rich Faces SVN: r7406 - trunk/ui/scrollableDataTable/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2008-03-29 09:48:02 -0400 (Sat, 29 Mar 2008)
New Revision: 7406
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java
Log:
http://jira.jboss.com/jira/browse/RF-1248
Modified: trunk/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java
===================================================================
--- trunk/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java 2008-03-29 13:17:32 UTC (rev 7405)
+++ trunk/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java 2008-03-29 13:48:02 UTC (rev 7406)
@@ -228,6 +228,8 @@
@SuppressWarnings("unchecked")
protected Iterator<UIComponent> dataChildren() {
IteratorChain chain = new IteratorChain();
+ //RF-1248 Adding facets to both dataChildren and fixed children
+ //To make both supports and header/footer work
chain.addIterator(getFacets().values().iterator());
for (Iterator<UIComponent> i = getChildren().iterator(); i.hasNext(); ) {
UIComponent kid = (UIComponent)i.next();
@@ -242,7 +244,8 @@
@SuppressWarnings("unchecked")
protected Iterator<UIComponent> fixedChildren() {
IteratorChain chain = new IteratorChain(getFacets().values().iterator());
- chain.addIterator(getFacets().values().iterator());
+ //RF-1248 Adding facets to both dataChildren and fixed children
+ //To make both supports and header/footer work
for (Iterator<UIComponent> i = getChildren().iterator(); i.hasNext(); ) {
UIComponent kid = (UIComponent)i.next();
if (kid instanceof Column || kid instanceof UIColumn) {
16 years, 1 month
JBoss Rich Faces SVN: r7405 - trunk/ui/scrollableDataTable/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2008-03-29 09:17:32 -0400 (Sat, 29 Mar 2008)
New Revision: 7405
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java
Log:
http://jira.jboss.com/jira/browse/RF-1248
Modified: trunk/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java
===================================================================
--- trunk/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java 2008-03-29 13:08:37 UTC (rev 7404)
+++ trunk/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java 2008-03-29 13:17:32 UTC (rev 7405)
@@ -227,9 +227,8 @@
@SuppressWarnings("unchecked")
protected Iterator<UIComponent> dataChildren() {
-
IteratorChain chain = new IteratorChain();
- //chain.addIterator(getFacets().values().iterator());
+ chain.addIterator(getFacets().values().iterator());
for (Iterator<UIComponent> i = getChildren().iterator(); i.hasNext(); ) {
UIComponent kid = (UIComponent)i.next();
if (kid instanceof Column || kid instanceof UIColumn) {
@@ -242,8 +241,8 @@
@SuppressWarnings("unchecked")
protected Iterator<UIComponent> fixedChildren() {
-
IteratorChain chain = new IteratorChain(getFacets().values().iterator());
+ chain.addIterator(getFacets().values().iterator());
for (Iterator<UIComponent> i = getChildren().iterator(); i.hasNext(); ) {
UIComponent kid = (UIComponent)i.next();
if (kid instanceof Column || kid instanceof UIColumn) {
16 years, 1 month
JBoss Rich Faces SVN: r7404 - in trunk/samples/richfaces-demo/src/main/webapp/richfaces: filteringFeature and 3 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: vbaranov
Date: 2008-03-29 09:08:37 -0400 (Sat, 29 Mar 2008)
New Revision: 7404
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/examples/fileUpload.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/filteringUsage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/examples/enabledIssue.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/examples/repeater.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/sortingFeature/sortingUsage.xhtml
Log:
Update design of the demo site
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/examples/fileUpload.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/examples/fileUpload.xhtml 2008-03-29 13:08:16 UTC (rev 7403)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/examples/fileUpload.xhtml 2008-03-29 13:08:37 UTC (rev 7404)
@@ -8,10 +8,10 @@
<style>
.top {
vertical-align: top;
+
}
-
.info {
- height: 210px;
+ height: 202px;
overflow: auto;
}
</style>
@@ -49,6 +49,8 @@
</rich:panel>
</rich:dataGrid>
</rich:panel>
+ <rich:spacer height="3"/>
+ <br />
<a4j:commandButton action="#{fileUploadBean.clearUploadData}"
reRender="info, upload" value="Clear Uploaded Data"
rendered="#{fileUploadBean.size>0}" />
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/filteringUsage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/filteringUsage.xhtml 2008-03-29 13:08:16 UTC (rev 7403)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/filteringUsage.xhtml 2008-03-29 13:08:37 UTC (rev 7404)
@@ -32,8 +32,8 @@
<ui:include src="/richfaces/filteringFeature/examples/simpleFiltering.xhtml"/>
</h:panelGroup>
<h:panelGroup>
- <p style="text-align: center">Details of usage</p>
- <fieldset class="demo_fieldset">
+ <div style="padding-left: 20px">
+ <b>Details of usage</b>
<p>
In order to change filter event you should change <b>filterEvent</b> attribute
on column (<i>e.g. filterEvent = "onblur"</i>)
@@ -54,7 +54,7 @@
In order to change default filtering behaviour - another definition used.
An example shown at second tab("External Filtering")
</p>
- </fieldset>
+ </div>
</h:panelGroup>
</h:panelGrid>
<ui:include src="/templates/include/sourceview.xhtml">
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/examples/enabledIssue.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/examples/enabledIssue.xhtml 2008-03-29 13:08:16 UTC (rev 7403)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/examples/enabledIssue.xhtml 2008-03-29 13:08:37 UTC (rev 7404)
@@ -50,7 +50,7 @@
<h:inputText size="4" label="Second Addent" value="#{rsBean.addent2}">
<a4j:support event="onkeyup" reRender="btn" />
</h:inputText>
- <a4j:commandButton style="margin:0 5px" id="btn" action="#{rsBean.doSum}"
+ <a4j:commandButton style="margin:0 5px; width: 25px" id="btn" action="#{rsBean.doSum}"
value="=" reRender="sum"
disabled="#{rsBean.addent1 == null or rsBean.addent2==null}"/>
<h:outputText id="sum" value="#{rsBean.sum}" />
@@ -67,7 +67,7 @@
<h:inputText size="4" label="Second Addent" value="#{rsBean2.addent2}">
<a4j:support event="onkeyup" reRender="btn2" />
</h:inputText>
- <a4j:commandButton style="margin:0 5px" id="btn2" action="#{rsBean2.doSum}"
+ <a4j:commandButton style="margin:0 5px; width: 25px" id="btn2" action="#{rsBean2.doSum}"
value="=" reRender="sum2"
disabled="#{rsBean2.addent1 == null or rsBean2.addent2==null}"/>
<h:outputText id="sum2" value="#{rsBean2.sum}" />
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/examples/repeater.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/examples/repeater.xhtml 2008-03-29 13:08:16 UTC (rev 7403)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/examples/repeater.xhtml 2008-03-29 13:08:37 UTC (rev 7404)
@@ -8,37 +8,39 @@
<h:form>
<a4j:outputPanel id="table">
- <table border="1">
+ <table border="1" class="dr-table rich-table">
+ <thead class="dr-table-thead">
+ <tr class="dr-table-header rich-table-header">
+ <th class="dr-table-headercell rich-table-headercell"><h:outputText value="Product Code" /></th>
+ <th class="dr-table-headercell rich-table-headercell"><h:outputText value="Proposed Price" /></th>
+ <th class="dr-table-headercell rich-table-headercell"><h:outputText value="Sales Cost" /></th>
+ <th class="dr-table-headercell rich-table-headercell" style="width: 150px"><h:outputText value="Reason" /></th>
+ <th class="dr-table-headercell rich-table-headercell"><h:outputText value="Proposed Gross Margin" /></th>
+ </tr>
+ </thead>
<tbody>
- <tr>
- <th><h:outputText value="Product Code" /></th>
- <th><h:outputText value="Proposed Price" /></th>
- <th><h:outputText value="Sales Cost" /></th>
- <th style="width: 150px"><h:outputText value="Reason" /></th>
- <th><h:outputText value="Proposed Gross Margin" /></th>
- </tr>
<a4j:repeat value="#{salesReport.items}" var="item" binding="#{updateBean.repeater}">
<tr>
- <td align="center">
+ <td align="center" class="dr-subtable-cell rich-subtable-cell">
<h:outputText value="#{item.productCode}" />
</td>
- <td>
+ <td class="dr-subtable-cell rich-subtable-cell">
<h:inputText binding="#{updateBean.priceRef}"
immediate="false" value="#{item.proposedPrice}" size="7">
<a4j:support immediate="true" action="#{updateBean.change}"
event="onchange" reRender="reason,margin" />
</h:inputText>
</td>
- <td>
+ <td class="dr-subtable-cell rich-subtable-cell">
<h:outputText value="#{item.salesCost}" />
</td>
- <td>
+ <td class="dr-subtable-cell rich-subtable-cell">
<h:selectOneMenu id="reason" required="true"
value="#{item.reason}">
<f:selectItems value="#{item.reasons}" />
</h:selectOneMenu>
</td>
- <td>
+ <td class="dr-subtable-cell rich-subtable-cell">
<h:outputText id="margin"
value="#{item.proposedGrossMargin}">
<f:convertNumber pattern="$###0.000" />
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/sortingFeature/sortingUsage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/sortingFeature/sortingUsage.xhtml 2008-03-29 13:08:16 UTC (rev 7403)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/sortingFeature/sortingUsage.xhtml 2008-03-29 13:08:37 UTC (rev 7404)
@@ -37,8 +37,8 @@
</h:panelGroup>
<h:panelGroup>
- <p style="text-align: center">Details of usage</p>
- <fieldset class="demo_fieldset">
+ <div style="padding-left: 20px">
+ <b>Details of usage</b>
<p>
Next attributes could be defined to manage simple built-in sorting:
</p>
@@ -62,7 +62,7 @@
use value "false" for this attribute.
</li>
</ul>
- </fieldset>
+ </div>
</h:panelGroup>
</h:panelGrid>
</div>
16 years, 1 month
JBoss Rich Faces SVN: r7403 - trunk/framework/api/src/main/java/org/richfaces/event.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2008-03-29 09:08:16 -0400 (Sat, 29 Mar 2008)
New Revision: 7403
Modified:
trunk/framework/api/src/main/java/org/richfaces/event/SimpleToggleEvent.java
Log:
http://jira.jboss.com/jira/browse/RF-682
Modified: trunk/framework/api/src/main/java/org/richfaces/event/SimpleToggleEvent.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/event/SimpleToggleEvent.java 2008-03-29 12:04:15 UTC (rev 7402)
+++ trunk/framework/api/src/main/java/org/richfaces/event/SimpleToggleEvent.java 2008-03-29 13:08:16 UTC (rev 7403)
@@ -49,14 +49,19 @@
* @see javax.faces.event.FacesEvent#isAppropriateListener(javax.faces.event.FacesListener)
*/
public boolean isAppropriateListener(FacesListener listener) {
- return listener instanceof ISimpleToggleListener;
+ return listener instanceof ISimpleToggleListener || super.isAppropriateListener(listener);
}
/* (non-Javadoc)
* @see javax.faces.event.FacesEvent#processListener(javax.faces.event.FacesListener)
*/
public void processListener(FacesListener listener) {
- ((ISimpleToggleListener) listener).processToggle(this);
+ if (listener instanceof ISimpleToggleListener) {
+ ((ISimpleToggleListener) listener).processToggle(this);
+ } else {
+ super.processListener(listener);
+ }
+
}
/**
16 years, 1 month
JBoss Rich Faces SVN: r7402 - trunk/ui/inplaceInput/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2008-03-29 08:04:15 -0400 (Sat, 29 Mar 2008)
New Revision: 7402
Modified:
trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml
Log:
http://jira.jboss.com/jira/browse/RF-1226
Some missing attributes were added
Modified: trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml
===================================================================
--- trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-03-29 12:03:57 UTC (rev 7401)
+++ trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-03-29 12:04:15 UTC (rev 7402)
@@ -63,13 +63,13 @@
<property>
<name>defaultLabel</name>
<classname>java.lang.String</classname>
- <description>used to display text while value is undefined</description>
+ <description>The attribute is used to display text while value is undefined</description>
<defaultvalue><![CDATA["\u00a0\u00a0\u00a0"]]></defaultvalue>
</property>
<property>
<name>showControls</name>
<classname>boolean</classname>
- <description>serves to display "save" and "cancel" controls</description>
+ <description>The attribute serves to display "save" and "cancel" controls</description>
<defaultvalue>false</defaultvalue>
</property>
<property>
16 years, 1 month
JBoss Rich Faces SVN: r7401 - trunk/ui/inplaceSelect/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2008-03-29 08:03:57 -0400 (Sat, 29 Mar 2008)
New Revision: 7401
Modified:
trunk/ui/inplaceSelect/src/main/config/component/inplaceselect.xml
Log:
http://jira.jboss.com/jira/browse/RF-1226
Some missing attributes were added
Modified: trunk/ui/inplaceSelect/src/main/config/component/inplaceselect.xml
===================================================================
--- trunk/ui/inplaceSelect/src/main/config/component/inplaceselect.xml 2008-03-29 11:49:14 UTC (rev 7400)
+++ trunk/ui/inplaceSelect/src/main/config/component/inplaceselect.xml 2008-03-29 12:03:57 UTC (rev 7401)
@@ -34,164 +34,164 @@
<property>
<name>layout</name>
<classname>java.lang.String</classname>
- <description>inline/block</description>
+ <description>defines how the component is displayed in the layout, can be block or inline</description>
<defaultvalue><![CDATA["inline"]]></defaultvalue>
</property>
<property>
<name>editEvent</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>The attribute provides an option to assign an JavaScript action that initiates the change of the state</description>
<defaultvalue><![CDATA["onclick"]]></defaultvalue>
</property>
<property>
<name>maxSelectWidth</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>max width of the select element</description>
<defaultvalue><![CDATA["200px"]]></defaultvalue>
</property>
<property>
<name>minSelectWidth</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>min width of the select element</description>
<defaultvalue><![CDATA["100px"]]></defaultvalue>
</property>
<property>
<name>selectWidth</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>width of the select element</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>defaultLabel</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>The attribute is used to display text while value is undefined</description>
<defaultvalue><![CDATA["\u00a0\u00a0\u00a0"]]></defaultvalue>
</property>
<property>
<name>showControls</name>
<classname>boolean</classname>
- <description></description>
+ <description>The attribute serves to display "save" and "cancel" controls</description>
<defaultvalue>false</defaultvalue>
</property>
<property>
<name>saveControlIcon</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>Defines custom save icon</description>
</property>
<property>
<name>cancelControlIcon</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>Defines custom cancel icon</description>
</property>
<property>
<name>controlsVerticalPosition</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>The attribute postions the controls vertically</description>
<defaultvalue><![CDATA["center"]]></defaultvalue>
</property>
<property>
<name>controlsHorizontalPosition</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>The attribute postions the controls horizontally</description>
<defaultvalue><![CDATA["right"]]></defaultvalue>
</property>
<property>
<name>oneditactivation</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>The attributes provide a possibility to assign JavaScript code on edit state activation</description>
</property>
<property>
<name>onviewactivation</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>The attributes provide a possibility to assign JavaScript code on view state activation</description>
</property>
<property>
<name>oneditactivated</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>The attributes provide a possibility to assign JavaScript code to be executed when edit state is activated</description>
</property>
<property>
<name>onviewactivated</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>The attributes provide a possibility to assign JavaScript code to be executed when view state is activated</description>
</property>
<property>
<name>selectOnEdit</name>
<classname>boolean</classname>
- <description></description>
+ <description>The attribute make the input field select when switched to edit state</description>
<defaultvalue>false</defaultvalue>
</property>
<property>
<name>tabindex</name>
<classname>int</classname>
- <description></description>
+ <description>The attribute serves to define the tabbing order</description>
</property>
<property>
<name>value</name>
<classname>java.lang.Object</classname>
- <description></description>
+ <description>The attribute contains saved data</description>
</property>
<property>
<name>listWidth</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>The attribute defines the withs of option list</description>
<defaultvalue>"200px"</defaultvalue>
</property>
<property>
<name>listHeight</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>The attribute defines the height of option list</description>
<defaultvalue>"200px"</defaultvalue>
</property>
<property>
<name>editOnTab</name>
<classname>boolean</classname>
- <description></description>
+ <description>The attribute activates edit state once Tab key pressed</description>
<defaultvalue>true</defaultvalue>
</property>
<property>
<name>openOnEdit</name>
<classname>boolean</classname>
- <description></description>
+ <description>The attribure opens the list once edit activated</description>
<defaultvalue>true</defaultvalue>
</property>
<property>
<name>viewClass</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>Style class for view state</description>
</property>
<property>
<name>editClass</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>CSS style class for edit state</description>
</property>
<property>
<name>changedClass</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>CSS style class for changed state</description>
</property>
<property>
<name>controlClass</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>CSS style class for controls</description>
</property>
<property>
<name>viewHover</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>CSS style class for hovered text in view state</description>
</property>
<property>
<name>controlPressed</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>CSS style class for controls pressed</description>
</property>
<property>
<name>controlHover</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>CSS style class for hovered control</description>
</property>
&html_events;
&ui_component_attributes;
16 years, 1 month
JBoss Rich Faces SVN: r7400 - trunk/ui/inplaceInput/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2008-03-29 07:49:14 -0400 (Sat, 29 Mar 2008)
New Revision: 7400
Modified:
trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml
Log:
http://jira.jboss.com/jira/browse/RF-1226
Some missing attributes were added
Modified: trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml
===================================================================
--- trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-03-29 11:47:29 UTC (rev 7399)
+++ trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-03-29 11:49:14 UTC (rev 7400)
@@ -131,7 +131,7 @@
<property>
<name>cancelControlIcon</name>
<classname>java.lang.String</classname>
- <description>Defines custom cansel icon</description>
+ <description>Defines custom cancel icon</description>
</property>
<property>
16 years, 1 month
JBoss Rich Faces SVN: r7399 - trunk/ui/inplaceInput/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2008-03-29 07:47:29 -0400 (Sat, 29 Mar 2008)
New Revision: 7399
Modified:
trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml
Log:
http://jira.jboss.com/jira/browse/RF-1226
Some missing attributes were added
Modified: trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml
===================================================================
--- trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-03-29 01:26:54 UTC (rev 7398)
+++ trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-03-29 11:47:29 UTC (rev 7399)
@@ -182,23 +182,23 @@
<property>
<name>onchange</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>HTML: script expression; the element value was changed</description>
</property>
<property>
<name>onselect</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>HTML: script expression; The onselect event occurs when you select some menu item</description>
</property>
<property>
<name>onfocus</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>HTML: script expression; the element got the focus</description>
</property>
<property>
<name>onblur</name>
<classname>java.lang.String</classname>
- <description></description>
+ <description>HTML: script expression; the element lost the focus</description>
</property>
<property>
<name>oninputclick</name>
16 years, 1 month