JBoss Rich Faces SVN: r13261 - trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2009-03-27 10:34:19 -0400 (Fri, 27 Mar 2009)
New Revision: 13261
Modified:
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
https://jira.jboss.org/jira/browse/RF-6624
Modified: trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
===================================================================
--- trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2009-03-27 14:25:51 UTC (rev 13260)
+++ trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2009-03-27 14:34:19 UTC (rev 13261)
@@ -1350,10 +1350,10 @@
},
setupTimeForDate: function (date) {
- if (this.selectedDate && !this.params.resetTimeOnDateSelect ||
+ if (this.selectedDate && (!this.params.resetTimeOnDateSelect ||
(this.selectedDate.getFullYear() == date.getFullYear() &&
this.selectedDate.getMonth() == date.getMonth() &&
- this.selectedDate.getDate() == date.getDate()))
+ this.selectedDate.getDate() == date.getDate())))
{
date.setHours(this.selectedDate.getHours());
date.setMinutes(this.selectedDate.getMinutes());
15 years, 10 months
JBoss Rich Faces SVN: r13260 - trunk/test-applications/richfaces-docs/web/src/main/webapp/WEB-INF.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-03-27 10:25:51 -0400 (Fri, 27 Mar 2009)
New Revision: 13260
Modified:
trunk/test-applications/richfaces-docs/web/src/main/webapp/WEB-INF/faces-config.xml
Log:
RF-5768: Real World Demo Application Tutorial Update for 3.3.1 release
Modified: trunk/test-applications/richfaces-docs/web/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/webapp/WEB-INF/faces-config.xml 2009-03-27 14:25:01 UTC (rev 13259)
+++ trunk/test-applications/richfaces-docs/web/src/main/webapp/WEB-INF/faces-config.xml 2009-03-27 14:25:51 UTC (rev 13260)
@@ -10,7 +10,6 @@
<property-name>edit</property-name>
<property-class>java.lang.String</property-class>
<value/>
-
</managed-property>
</managed-bean>
<managed-bean>
@@ -128,7 +127,17 @@
<value/>
</managed-property>
</managed-bean>
+ <managed-bean>
+ <managed-bean-name>shelf</managed-bean-name>
+ <managed-bean-class>demo.Shelf</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+<managed-bean>
+ <managed-bean-name>hujations</managed-bean-name>
+ <managed-bean-class>org.docs.tree.Hujations</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
<application>
<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
15 years, 10 months
JBoss Rich Faces SVN: r13259 - trunk/test-applications/richfaces-docs/web/src/main/webapp.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-03-27 10:25:01 -0400 (Fri, 27 Mar 2009)
New Revision: 13259
Modified:
trunk/test-applications/richfaces-docs/web/src/main/webapp/tree.xhtml
Log:
RF-5768: Real World Demo Application Tutorial Update for 3.3.1 release
Modified: trunk/test-applications/richfaces-docs/web/src/main/webapp/tree.xhtml
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/webapp/tree.xhtml 2009-03-27 14:24:40 UTC (rev 13258)
+++ trunk/test-applications/richfaces-docs/web/src/main/webapp/tree.xhtml 2009-03-27 14:25:01 UTC (rev 13259)
@@ -1,70 +1,76 @@
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:s="http://jboss.com/products/seam/taglib"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:rich="http://richfaces.org/rich"
- template="layout/template.xhtml">
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich" template="layout/template.xhtml">
-<ui:define name="body">
+ <ui:define name="body">
+ <h:messages globalOnly="true" styleClass="message" />
+ <rich:panel>
+ <f:facet name="header">rich:tree</f:facet>
+ <p>rich:tree is built from a simple org.richfaces.model.TreeNode
+ model</p>
+ <h:form>
+ <rich:tree value="#{tree.stationNodes}" var="station">
+ <rich:treeNode>
+ <h:outputText value="#{station}" />
+ </rich:treeNode>
+ </rich:tree>
+ </h:form>
-
- <h:messages globalOnly="true" styleClass="message"/>
-
-
-
- <rich:panel>
- <f:facet name="header">rich:tree</f:facet>
-
- <p> rich:tree is built from a simple org.richfaces.model.TreeNode model</p>
-
-
-<h:form>
-
-<rich:tree value="#{tree.stationNodes}" var="station">
-
- <rich:treeNode>
-
- <h:outputText value="#{station}" />
-
- </rich:treeNode>
-
-</rich:tree>
-
-
-
-</h:form>
-
-<p> A simple rich:tree from a local XML file </p>
-
-<h:form>
-<rich:tree id="treeXML" value="#{tree.data}" var="vardata">
-
- <rich:treeNode>
-
- <h:outputText value="#{vardata.attributes['name']}" />
-
- <h:outputText value="#{vardata.attributes['date']}" />
-
- <h:outputText value="#{vardata.attributes['time']}" />
-
- <h:outputText value=" #{vardata.text}" />
-
- </rich:treeNode>
-
-</rich:tree>
-
-
-
-
-</h:form>
-
-
-
- </rich:panel>
-
-
-</ui:define>
+ <p>A simple rich:tree from a local XML file</p>
+ <h:form>
+ <rich:tree id="treeXML" value="#{tree.data}" var="vardata">
+ <rich:treeNode>
+ <h:outputText value="#{vardata.attributes['name']}" />
+ <h:outputText value="#{vardata.attributes['date']}" />
+ <h:outputText value="#{vardata.attributes['time']}" />
+ <h:outputText value=" #{vardata.text}" />
+ </rich:treeNode>
+
+ </rich:tree>
+ </h:form>
+
+ <br></br>
+ <h2>Case 3. Tree built with treeNodesAdaptors</h2>
+ <p>Using the <rich:treeNodesAdaptor> means that the typical tree hierarchy should be built directly in the component tree.<br></br>
+ </p>
+ <h:form>
+ <rich:tree id="adaptor_based" >
+ <rich:treeNodesAdaptor id="adaptor"
+ nodes="#{shelf.albSet}"
+ var="album">
+ <rich:treeNode>
+ <h:outputText value="#{album}" />
+ </rich:treeNode>
+
+ <rich:treeNodesAdaptor id="adaptor2"
+ nodes="#{shelf.imgSet}"
+ var="image">
+ <rich:treeNode>
+ <h:outputText value="#{image}" />
+ </rich:treeNode>
+ </rich:treeNodesAdaptor>
+ </rich:treeNodesAdaptor>
+ </rich:tree>
+ </h:form>
+
+ <br></br>
+ <h2>Case 4. Tree built from XML (simple example)</h2>
+ <p>The <code>org.richfaces.model.TreeNode</code> interface, which is used in following case, accepts data worked with <code>org.richfaces.component.xml.XmlTreeDataBuilder</code> class and renders it as tree nodes.</p>
+ <h:form>
+ <rich:tree id="tree"
+ value="#{hujations.data}"
+ var="vardata" >
+ <rich:treeNode>
+ <h:outputText value="#{vardata.text}" />
+ </rich:treeNode>
+ </rich:tree>
+ </h:form>
+
+ </rich:panel>
+ </ui:define>
</ui:composition>
15 years, 10 months
JBoss Rich Faces SVN: r13258 - trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2009-03-27 10:24:40 -0400 (Fri, 27 Mar 2009)
New Revision: 13258
Modified:
trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp
Log:
change sortBy to sortExpression
Modified: trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp 2009-03-27 14:24:28 UTC (rev 13257)
+++ trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp 2009-03-27 14:24:40 UTC (rev 13258)
@@ -68,7 +68,7 @@
<f:facet name="header">
<h:outputText value="facet header"></h:outputText>
</f:facet>
- <rich:column sortBy="#{sdt.int0}" sortable="true" id="colID">
+ <rich:column sortExpression="#{sdt.int0}" sortable="true" id="colID">
<f:facet name="header">
<h:outputText value="#" />
</f:facet>
@@ -78,7 +78,7 @@
</f:facet>
</rich:column>
- <rich:column sortBy="#{sdt.str0}" sortable="false">
+ <rich:column sortExpression="#{sdt.str0}" sortable="false">
<f:facet name="header">
<h:outputText value="Text"></h:outputText>
</f:facet>
@@ -88,7 +88,7 @@
</f:facet>
</rich:column>
- <rich:column sortBy="#{sdt.str1}">
+ <rich:column sortExpression="#{sdt.str1}">
<f:facet name="header">
<h:outputText value="Link"></h:outputText>
</f:facet>
@@ -98,7 +98,7 @@
</f:facet>
</rich:column>
- <rich:column sortBy="#{sdt.str2}">
+ <rich:column sortExpression="#{sdt.str2}">
<f:facet name="header">
<h:outputText value="Select"></h:outputText>
</f:facet>
@@ -114,7 +114,7 @@
</f:facet>
</rich:column>
- <rich:column sortBy="#{sdt.str3}">
+ <rich:column sortExpression="#{sdt.str3}">
<f:facet name="header">
<h:outputText value="Icon"></h:outputText>
</f:facet>
@@ -136,7 +136,7 @@
</f:facet>
</rich:column>
- <rich:column sortBy="#{sdt.date0}" sortable="true">
+ <rich:column sortExpression="#{sdt.date0}" sortable="true">
<f:facet name="header">
<h:outputText value="Date" />
</f:facet>
15 years, 10 months
JBoss Rich Faces SVN: r13257 - trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/tree.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-03-27 10:24:28 -0400 (Fri, 27 Mar 2009)
New Revision: 13257
Added:
trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/tree/Hujations.java
trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/tree/hujations.xml
Log:
RF-5768: Real World Demo Application Tutorial Update for 3.3.1 release
Added: trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/tree/Hujations.java
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/tree/Hujations.java (rev 0)
+++ trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/tree/Hujations.java 2009-03-27 14:24:28 UTC (rev 13257)
@@ -0,0 +1,24 @@
+package org.docs.tree;
+
+import org.richfaces.model.TreeNode;
+import org.richfaces.component.xml.XmlTreeDataBuilder;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import java.io.IOException;
+
+public class Hujations {
+
+ private TreeNode data;
+
+ public Hujations() throws SAXException, IOException {
+ data = XmlTreeDataBuilder.build(new InputSource(getClass().getResourceAsStream("hujations.xml")));
+ }
+
+ public void setData(TreeNode data) {
+ this.data = data;
+ }
+
+ public TreeNode getData() {
+ return data;
+ }
+ }
Added: trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/tree/hujations.xml
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/tree/hujations.xml (rev 0)
+++ trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/tree/hujations.xml 2009-03-27 14:24:28 UTC (rev 13257)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<hujations>
+ <song>List</song>
+ <song>Dance</song>
+ <song>It</song>
+ <song>Eyes</song>
+ <song>Up</song>
+</hujations>
\ No newline at end of file
15 years, 10 months
JBoss Rich Faces SVN: r13256 - trunk/ui/colorPicker/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2009-03-27 10:07:43 -0400 (Fri, 27 Mar 2009)
New Revision: 13256
Modified:
trunk/ui/colorPicker/src/main/resources/org/richfaces/renderkit/html/css/colorPicker.xcss
Log:
colorPicker: unnecessary 'height' was deleted
Modified: trunk/ui/colorPicker/src/main/resources/org/richfaces/renderkit/html/css/colorPicker.xcss
===================================================================
--- trunk/ui/colorPicker/src/main/resources/org/richfaces/renderkit/html/css/colorPicker.xcss 2009-03-27 13:07:33 UTC (rev 13255)
+++ trunk/ui/colorPicker/src/main/resources/org/richfaces/renderkit/html/css/colorPicker.xcss 2009-03-27 14:07:43 UTC (rev 13256)
@@ -6,12 +6,9 @@
<![CDATA[
.rich-colorPicker-wrapper{
display:none;
- height:176px;
overflow:hidden;
position:absolute;
width:350px;
- margin-top: 2px;
- !margin-top: 0px;
}
.rich-colorPicker-ext{
border: 1px solid;
15 years, 10 months
JBoss Rich Faces SVN: r13255 - trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-03-27 09:07:33 -0400 (Fri, 27 Mar 2009)
New Revision: 13255
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplacesTest.java
Log:
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplacesTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplacesTest.java 2009-03-27 13:07:13 UTC (rev 13254)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplacesTest.java 2009-03-27 13:07:33 UTC (rev 13255)
@@ -135,10 +135,7 @@
String iid = inplaceId + EDITEVENT_ATTRIBUTES_ID_PREFIX;
selenium.doubleClick(iid);
- String clip = getStyleAttributeString(iid + iTempValuePx, "clip");
- check(("rect(auto, auto, auto, auto)".equals(clip)) || ("rect(auto auto auto auto)".equals(clip)),
- CommonUtils.getSuccessfulTestMessage(iid),
- CommonUtils.getFailedTestMessage(iid));
+ Assert.assertTrue(isVisible(iid + iTempValuePx));
}
/**
15 years, 10 months
JBoss Rich Faces SVN: r13254 - trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-03-27 09:07:13 -0400 (Fri, 27 Mar 2009)
New Revision: 13254
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplaceSelectTest.java
Log:
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplaceSelectTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplaceSelectTest.java 2009-03-27 12:24:33 UTC (rev 13253)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplaceSelectTest.java 2009-03-27 13:07:13 UTC (rev 13254)
@@ -109,7 +109,7 @@
selenium.click("xpath=//div[@id='" + iid + "list']/span[4]");
cancel(iid);
- Assert.assertEquals("Aspen".equals(getValue(iid)), CommonUtils.getFailedTestMessage(iid));
+ Assert.assertTrue("Aspen".equals(getValue(iid)), CommonUtils.getFailedTestMessage(iid));
}
@Override
15 years, 10 months
JBoss Rich Faces SVN: r13253 - in trunk/docs/userguide/en/src/main: resources/images and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2009-03-27 08:24:33 -0400 (Fri, 27 Mar 2009)
New Revision: 13253
Modified:
trunk/docs/userguide/en/src/main/docbook/included/column.xml
trunk/docs/userguide/en/src/main/docbook/included/columns.xml
trunk/docs/userguide/en/src/main/docbook/included/dataGrid.xml
trunk/docs/userguide/en/src/main/docbook/included/pickList.xml
trunk/docs/userguide/en/src/main/docbook/included/subTable.xml
trunk/docs/userguide/en/src/main/resources/images/datascroller2.png
Log:
RF-4502 - Added tables of the facets for columns, subTable, dataGrid; updated the screen for datascroller; added information for pickList. Now, the all components have tables with facets; example of usage
Modified: trunk/docs/userguide/en/src/main/docbook/included/column.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/column.xml 2009-03-27 12:13:55 UTC (rev 13252)
+++ trunk/docs/userguide/en/src/main/docbook/included/column.xml 2009-03-27 12:24:33 UTC (rev 13253)
@@ -417,9 +417,9 @@
<note>
<title>Note:</title>
<para>
- The <emphasis><property>"sortBy"</property></emphasis> and the <emphasis><property>"selfSorted"</property></emphasis> attributes used with the <emphasis role="bold"><property><rich:dataTable></property></emphasis> component.
+ The <emphasis><property>"sortBy"</property></emphasis> and the <emphasis><property>"selfSorted"</property></emphasis> attributes used with the <emphasis role="bold"><property><rich:dataTable></property></emphasis> component.
Also the <emphasis><property>"selfSorted"</property></emphasis> can be used with the <emphasis role="bold"><property><rich:extendedDataTable></property></emphasis>.
- </para>
+ </para>
<para> The <emphasis>
<property>"sortable"</property>
</emphasis> and the <emphasis><property>"sortExpression"</property></emphasis> attributes used with the <emphasis
@@ -549,6 +549,31 @@
</section>
<section>
+ <title>Facets</title>
+ <table>
+ <title>Facets</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Facet name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>header</entry>
+ <entry>Defines the header content</entry>
+ </row>
+ <row>
+ <entry>footer</entry>
+ <entry>Defines the footer content</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+
+ <section>
<title>Look-and-Feel Customization</title>
<para>For skinnability implementation, the components use a <emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/columns.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/columns.xml 2009-03-27 12:13:55 UTC (rev 13252)
+++ trunk/docs/userguide/en/src/main/docbook/included/columns.xml 2009-03-27 12:24:33 UTC (rev 13253)
@@ -319,6 +319,31 @@
</section>
+ <section>
+ <title>Facets</title>
+ <table>
+ <title>Facets</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Facet name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>header</entry>
+ <entry>Defines the header content</entry>
+ </row>
+ <row>
+ <entry>footer</entry>
+ <entry>Defines the footer content</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+
<section>
<title>Look-and-Feel Customization</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataGrid.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataGrid.xml 2009-03-27 12:13:55 UTC (rev 13252)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataGrid.xml 2009-03-27 12:24:33 UTC (rev 13253)
@@ -164,8 +164,35 @@
<property><rich:dataGrid></property>
</emphasis> component. As a result the component is updated after an Ajax request.</para>
</section>
-
<section>
+ <title>Facets</title>
+ <table>
+ <title>Facets</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Facet name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>header</entry>
+ <entry>Defines the header content</entry>
+ </row>
+ <row>
+ <entry>footer</entry>
+ <entry>Defines the footer content</entry>
+ </row>
+ <row>
+ <entry>caption</entry>
+ <entry>Defines the caption content</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+ <section>
<title>Look-and-Feel Customization</title>
<para>For skinnability implementation, the components use a <emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/pickList.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/pickList.xml 2009-03-27 12:13:55 UTC (rev 13252)
+++ trunk/docs/userguide/en/src/main/docbook/included/pickList.xml 2009-03-27 12:24:33 UTC (rev 13253)
@@ -131,8 +131,40 @@
</imageobject>
</mediaobject>
</figure>
-
+ <para>
+ Alternative to the given attributes are the following facets: <emphasis><property>"copyAllControl"</property></emphasis>,
+ <emphasis><property>"removeAllControl"</property></emphasis>,
+ <emphasis><property>"copyControl"</property></emphasis>,
+ <emphasis><property>"removeControl"</property></emphasis>,
+ <emphasis><property>"copyAllControlDisabled"</property></emphasis>,
+ <emphasis><property>"removeAllControlDisabled"</property></emphasis>,
+ <emphasis><property>"copyControlDisabled"</property></emphasis>,
+ <emphasis><property>"removeControlDisabled"</property></emphasis>,
+ <emphasis><property>"caption"</property></emphasis>.
+ </para>
<para>
+ It is an example of usage of the facets and it is identical to the previous example.
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<rich:pickList value="#{pickBean.listValues}">
+ <f:facet name="copyAllControl">
+ <h:commandButton value="#{pickBean.copyAllLabel}" />
+ </f:facet>
+ <f:facet name="copyControl">
+ <h:commandButton value="#{pickBean.copyLabel}" />
+ </f:facet>
+ <f:facet name="removeControl">
+ <h:commandButton value="#{pickBean.removeLabel}" />
+ </f:facet>
+ <f:facet name="removeAllControl">
+ <h:commandButton value="#{pickBean.removeAllLabel}" />
+ </f:facet>
+ <f:selectItem itemValue="Bentley" itemLabel="Bentley"/>
+ <f:selectItem itemValue="Audi" itemLabel="Audi"/>
+ <f:selectItems value="#{pickBean.sourceList}"/>
+</rich:pickList>
+...]]></programlisting>
+ <para>
With the help of <emphasis><property>"moveControlsVerticalAlign"</property></emphasis> attribute
you can align <property>move controls</property> vertically.
</para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/subTable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/subTable.xml 2009-03-27 12:13:55 UTC (rev 13252)
+++ trunk/docs/userguide/en/src/main/docbook/included/subTable.xml 2009-03-27 12:24:33 UTC (rev 13253)
@@ -132,8 +132,33 @@
<link linkend="table_ex">component</link>.</para>
</section>
-
+
<section>
+ <title>Facets</title>
+ <table>
+ <title>Facets</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Facet name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>header</entry>
+ <entry>Defines the header content</entry>
+ </row>
+ <row>
+ <entry>footer</entry>
+ <entry>Defines the footer content</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+
+ <section>
<title>Look-and-Feel Customization</title>
<para>For skinnability implementation, the components use a <emphasis>
Modified: trunk/docs/userguide/en/src/main/resources/images/datascroller2.png
===================================================================
(Binary files differ)
15 years, 10 months
JBoss Rich Faces SVN: r13252 - trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2009-03-27 08:13:55 -0400 (Fri, 27 Mar 2009)
New Revision: 13252
Modified:
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/FileManager.java
Log:
Modified: trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/FileManager.java
===================================================================
--- trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/FileManager.java 2009-03-27 11:54:51 UTC (rev 13251)
+++ trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/FileManager.java 2009-03-27 12:13:55 UTC (rev 13252)
@@ -59,7 +59,6 @@
private static final String _SMALL80 = "_small80";
private static final String _SMALL200 = "_small200";
private static final String _MEDIUM = "_medium";
- private static final String _MINI = "_mini";
private static final String UPLOAD_ROOT_COMPONENT_NAME = "uploadRoot";
private static final String UPLOAD_ROOT_PATH_COMPONENT_NAME = "uploadRootPath";
@@ -69,12 +68,7 @@
private File uploadRoot;
private String uploadRootPath;
- //TODO nick - i suggest to hide this from external services at all
- public File getUploadRoot() {
- return uploadRoot;
- }
-
- @Create
+ /* @Create
public void create() {
uploadRoot = (File) Component.getInstance(UPLOAD_ROOT_COMPONENT_NAME, ScopeType.APPLICATION);
if (!uploadRoot.exists() && !uploadRoot.mkdir()) {
@@ -93,7 +87,30 @@
}
extract(jarFile);
- }
+ }*/
+
+ @Create
+ public void create() {
+ uploadRoot = (File)Component.getInstance(UPLOAD_ROOT_COMPONENT_NAME, ScopeType.APPLICATION);
+ uploadRootPath = (String)Component.getInstance(UPLOAD_ROOT_PATH_COMPONENT_NAME, ScopeType.APPLICATION);
+ }
+
+ public void setUploadRoot(String uploadRootPath) throws IOException {
+ if (uploadRootPath != null) {
+ this.uploadRoot = new File(uploadRootPath);
+ for (String f : uploadRoot.list()) {
+ File temp = new File(uploadRoot, f);
+ temp.delete();
+ }
+ uploadRoot.delete();
+ uploadRoot.mkdirs();
+ this.uploadRootPath = this.uploadRoot.getCanonicalPath()
+ + File.separator;
+ } else {
+ this.uploadRoot = null;
+ this.uploadRootPath = null;
+ }
+ }
private String joinFiles(String... files) {
final StringBuilder res = new StringBuilder();
@@ -151,7 +168,7 @@
}
}
- public void setUploadRoot(String uploadRootPath) throws IOException {
+/* public void setUploadRoot(String uploadRootPath) throws IOException {
if (uploadRootPath != null) {
this.uploadRoot = new File(uploadRootPath);
for (String f : uploadRoot.list()) {
@@ -165,7 +182,7 @@
this.uploadRoot = null;
this.uploadRootPath = null;
}
- }
+ }*/
private File getFileByPath(String path) {
15 years, 10 months