JBoss Rich Faces SVN: r4319 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-11-28 12:07:13 -0500 (Wed, 28 Nov 2007)
New Revision: 4319
Modified:
trunk/docs/userguide/en/src/main/docbook/included/dataDefinitionList.xml
trunk/docs/userguide/en/src/main/docbook/included/dataGrid.xml
trunk/docs/userguide/en/src/main/docbook/included/dataList.xml
trunk/docs/userguide/en/src/main/docbook/included/dataOrderedList.xml
trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml
trunk/docs/userguide/en/src/main/docbook/included/poll.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/poll.xml
trunk/docs/userguide/en/src/main/docbook/included/subTable.xml
Log:
http://jira.jboss.com/jira/browse/RF-657 - improved description
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataDefinitionList.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataDefinitionList.xml 2007-11-28 16:42:40 UTC (rev 4318)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataDefinitionList.xml 2007-11-28 17:07:13 UTC (rev 4319)
@@ -145,7 +145,7 @@
<property>"id"</property>
</emphasis> attribute for <emphasis role="bold">
<property><rich:dataDefinitionList></property>
- </emphasis> component. As a result the component are updated after an Ajax request.</para>
+ </emphasis> component. As a result the component is updated after an Ajax request.</para>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataGrid.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataGrid.xml 2007-11-28 16:42:40 UTC (rev 4318)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataGrid.xml 2007-11-28 17:07:13 UTC (rev 4319)
@@ -162,7 +162,7 @@
<property>"id"</property>
</emphasis> attribute for <emphasis role="bold">
<property><rich:dataGrid></property>
- </emphasis> component. As a result the component are updated after an Ajax request.</para>
+ </emphasis> component. As a result the component is updated after an Ajax request.</para>
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataList.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataList.xml 2007-11-28 16:42:40 UTC (rev 4318)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataList.xml 2007-11-28 17:07:13 UTC (rev 4319)
@@ -157,7 +157,7 @@
<property>"id"</property>
</emphasis> attribute for <emphasis role="bold">
<property><rich:dataList></property>
- </emphasis> component. As a result the component are updated after an Ajax request.</para>
+ </emphasis> component. As a result the component is updated after an Ajax request.</para>
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataOrderedList.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataOrderedList.xml 2007-11-28 16:42:40 UTC (rev 4318)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataOrderedList.xml 2007-11-28 17:07:13 UTC (rev 4319)
@@ -147,7 +147,7 @@
<property>"id"</property>
</emphasis> attribute for <emphasis role="bold">
<property><rich:dataOrderedList></property>
- </emphasis> component. As a result the component are updated after an Ajax request.</para>
+ </emphasis> component. As a result the component is updated after an Ajax request.</para>
</section>
<section>
<title>Look-and-Feel Customization</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml 2007-11-28 16:42:40 UTC (rev 4318)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml 2007-11-28 17:07:13 UTC (rev 4319)
@@ -52,7 +52,9 @@
</para>
<programlisting role="XML"><![CDATA[...
<rich:dataTable value="#{capitalsBean.capitals}" var="capitals">
- <!--...//Set of columns and header/footer facets-->
+ <rich:column>
+ ...
+ </rich:column>
</rich:dataTable>
...
]]></programlisting>
@@ -75,12 +77,12 @@
<property><rich:dataTable></property>
</emphasis> component is similar to the <emphasis role="bold">
<property><h:dataTable></property>
- </emphasis> one, except Ajax support and skinnability . Ajax support is possible, because the
+ </emphasis> one, except Ajax support and skinnability. Ajax support is possible, because the
component was created basing on the <emphasis role="bold">
<property><a4j:repeat></property>
</emphasis> component and as a result it could be partially updated with Ajax. <emphasis>
<property>"ajaxKeys"</property>
- </emphasis> attribute allows to define rows that are updated after an Ajax request.</para>
+ </emphasis> attribute allows to define rows that is updated after an Ajax request.</para>
<para>Here is an example:</para>
@@ -103,9 +105,9 @@
<property>"id"</property>
</emphasis> attribute for <emphasis role="bold">
<property><rich:dataTable></property>
- </emphasis> component. As a result the component are updated after an Ajax request.</para>
+ </emphasis> component. As a result the component is updated after an Ajax request.</para>
- <para>The component allows to use <emphasis>
+ <para id="table_ex">The component allows to use <emphasis>
<property>"header"</property>
</emphasis>, <emphasis>
<property>"footer"</property>
Modified: trunk/docs/userguide/en/src/main/docbook/included/poll.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/poll.desc.xml 2007-11-28 16:42:40 UTC (rev 4318)
+++ trunk/docs/userguide/en/src/main/docbook/included/poll.desc.xml 2007-11-28 17:07:13 UTC (rev 4319)
@@ -1,9 +1,10 @@
<?xml version='1.0' encoding='UTF-8'?>
<root>
-<section>
-<title>Description</title>
- <para>The <emphasis role="bold">
- <property><a4j:poll></property>
- </emphasis> component allows periodical sending of Ajax requests to the server and is used for a page update according to a specified in milliseconds time interval.</para>
-</section>
-</root>
\ No newline at end of file
+ <section>
+ <title>Description</title>
+ <para>The <emphasis role="bold">
+ <property><a4j:poll></property>
+ </emphasis> component allows periodical sending of Ajax requests to a server and is
+ used for a page updating according to a specified time interval.</para>
+ </section>
+</root>
Modified: trunk/docs/userguide/en/src/main/docbook/included/poll.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/poll.xml 2007-11-28 16:42:40 UTC (rev 4318)
+++ trunk/docs/userguide/en/src/main/docbook/included/poll.xml 2007-11-28 17:07:13 UTC (rev 4319)
@@ -1,57 +1,58 @@
<?xml version='1.0' encoding='UTF-8'?>
<chapter>
-
- <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.ajax4jsf.Poll</entry>
- </row>
- <row>
- <entry>component-family</entry>
- <entry>org.ajax4jsf.components.AjaxPoll</entry>
- </row>
- <row>
- <entry>component-class</entry>
- <entry>org.ajax4jsf.component.html.AjaxPoll</entry>
- </row>
- <row>
- <entry>renderer-type</entry>
- <entry>org.ajax4jsf.components.AjaxPollRenderer</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
+
+ <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.ajax4jsf.Poll</entry>
+ </row>
+ <row>
+ <entry>component-family</entry>
+ <entry>org.ajax4jsf.components.AjaxPoll</entry>
+ </row>
+ <row>
+ <entry>component-class</entry>
+ <entry>org.ajax4jsf.component.html.AjaxPoll</entry>
+ </row>
+ <row>
+ <entry>renderer-type</entry>
+ <entry>org.ajax4jsf.components.AjaxPollRenderer</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
<section>
<title>Creating on a page</title>
- <para>To use this component it's necessary only to set an update interval.</para>
+ <para id="creating">To create the simplest variant on a page use the following syntax:</para>
- <para>
+ <para>
<emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[<a4j:poll interval="1000" reRender="someDataTable" action="#{bean.action1}"/>
+ </para>
+ <programlisting role="XML"><![CDATA[<a4j:poll interval="500" reRender="grid"/>
]]></programlisting>
- <para>The <emphasis role="bold">
+ <!--para>The <emphasis role="bold">
<property><a4j:poll></property>
- </emphasis> component defined this way every second submits Ajax form onto the server, performs the corresponding action and renders a components with the <emphasis >
+ </emphasis> component defined this way every second submits Ajax form onto the server,
+ performs the corresponding action and renders a components with the <emphasis>
<property>"someDataTable"</property>
- </emphasis> id after a response comes back.</para>
+ </emphasis> id after a response comes back.</para-->
</section>
<section>
<title>Dynamical creation of a component from Java code</title>
- <para>
+ <para>
<emphasis role="bold">Example:</emphasis>
- </para>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.ajax4jsf.component.html.AjaxPoll;
...
AjaxPoll myPoll = new AjaxPoll();
@@ -60,35 +61,126 @@
</section>
<section>
<title>Key attributes and ways of usage</title>
- <para>The component decodes all necessary JavaScript for time count and on the expiry of some interval for calling of a RichFaces utility method for Ajax request sending (A4J.AJAX.Submit (Some request parameters)).
- </para>
- <para>
- The timer could be stopped or started in any time. The current state is controlled on the component with the <emphasis >
+ <para id="attributes">The <emphasis role="bold">
+ <property><a4j:poll></property>
+ </emphasis> componet is used for periodical polling of a server. In order to use the component
+ it's necessary to set an update interval. The <emphasis>
+ <property>"interval"</property>
+ </emphasis> attribute defines a polling interval in milliseconds beetween the previous
+ response and the next request. The total period beetween two requests generated by the
+ <emphasis role="bold">
+ <property><a4j:poll></property>
+ </emphasis> component is a sum of an<emphasis>
+ <property>"interval"</property>
+ </emphasis> attribute value and a server response time. Default value for <emphasis>
+ <property>"interval"</property>
+ </emphasis> attribute is set to 1000 milliseconds (1 second). See an example of definition in
+ the <link linkend="creating">"Creating on a page" section</link>. </para>
+ <para>The <emphasis>
+ <property>"timeout"</property>
+ </emphasis> attribute defines response wating time in milliseconds. If the response
+ isn't received during this period a connection is aborted and the next request is
+ sent. Default value for <emphasis>
+ <property>"timeout"</property>
+ </emphasis> attribute isn't set.</para>
+ <para>The <emphasis>
+ <property>"enabled"</property>
+ </emphasis> attribute defines should the <emphasis role="bold">
+ <property><a4j:poll></property>
+ </emphasis> send request or not. It's necessary to render the
+ <emphasis role="bold">
+ <property><a4j:poll></property>
+ </emphasis> to apply the current value of <emphasis>
+ <property>"enabled"</property>
+ </emphasis> attribute. You can use an EL-expression for <emphasis>
+ <property>"enabled"</property>
+ </emphasis> attribute to point to a bean property. An example of usage of <link
+ linkend="attributes">all mentioned above attributes</link> is placed below:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+
+ <programlisting role="XML"><![CDATA[...
+ <a4j:region>
+ <h:form>
+ <a4j:poll id="poll" interval="1000" enabled="#{userBean.pollEnabled}" reRender="poll,grid"/>
+ </h:form>
+ </a4j:region>
+ <h:form>
+ <h:panelGrid columns="2" width="80%" id="grid">
+ <h:panelGrid columns="1">
+ <h:outputText value="Polling Inactive" rendered="#{not userBean.pollEnabled}"></h:outputText>
+ <h:outputText value="Polling Active" rendered="#{userBean.pollEnabled}"></h:outputText>
+ <a4j:commandButton style="width:120px" id="control"
+ value="#{userBean.pollEnabled?'Stop':'Start'} Polling"
+ reRender="poll, grid">
+ <a4j:actionparam name="polling" value="#{!userBean.pollEnabled}"
+ assignTo="#{userBean.pollEnabled}"/>
+ </a4j:commandButton>
+ </h:panelGrid>
+ <h:outputText id="serverDate" style="font-size:16px" value="Server Date: #{userBean.date}"/>
+ </h:panelGrid>
+ </h:form>
+...
+]]></programlisting>
+
+ <para>The example shows how date and time are updated on a page in compliance with data taken
+ from a server. The <emphasis role="bold">
+ <property><a4j:poll></property>
+ </emphasis> componet sends requests to the server every second. <emphasis>
+ <property>"reRender"</property>
+ </emphasis> attribute for <emphasis role="bold">
+ <property><a4j:poll></property>
+ </emphasis> contains value of own Id. Hence, it renders itself for applying the current value
+ of <emphasis>
+ <property>"enabled"</property>
+ </emphasis> attribute.</para>
+
+ <!--It's also necessary to define an ID of the <emphasis role="bold">
+ <property><a4j:poll></property>
+ </emphasis> componet in its <emphasis>
+ <property>"reRender"</property>
+ </emphasis> attribute to apply the current value of <emphasis>
+ <property>"enabled"</property>
+ </emphasis> attribute. </para>
+
+ <para>The component decodes all necessary JavaScript for time count and on the expiry of some
+ interval for calling of a RichFaces utility method for Ajax request sending (A4J.AJAX.Submit
+ (Some request parameters)). </para>
+ <para> The timer could be stopped or started in any time. The current state is controlled on the
+ component with the <emphasis>
<property>"enabled"</property>
- </emphasis> attribute:
- </para>
- <programlisting role="XML"><![CDATA[<a4j:poll interval="1000" enabled="#{bean.boolProperty}"/>
+ </emphasis> attribute: </para>
+ <programlisting role="XML"><![CDATA[<a4j:poll interval="1000" enabled="#{bean.boolProperty}"/>
]]></programlisting>
-<para>As any RichFaces Action component, <emphasis role="bold">
+ <para>As any RichFaces Action component, <emphasis role="bold">
<property><a4j:poll></property>
</emphasis> has all described in the <emphasis role="bold">
- <property><ulink url="index.html#support"><a4j:support></ulink></property>
- </emphasis> chapter attributes to provide the necessary behavior of request sending (delay, limitation of a submit and render area, requests frequency, and etc.). For detailed information on these attributes see again the <emphasis role="bold">
- <property><ulink url="index.html#support"><a4j:support></ulink></property></emphasis> component description.
- </para>
+ <property>
+ <ulink url="index.html#support"><a4j:support></ulink>
+ </property>
+ </emphasis> chapter attributes to provide the necessary behavior of request sending (delay,
+ limitation of a submit and render area, requests frequency, and etc.). For detailed
+ information on these attributes see again the <emphasis role="bold">
+ <property>
+ <ulink url="index.html#support"><a4j:support></ulink>
+ </property>
+ </emphasis> component description. </para-->
</section>
-
+
<section>
<title>Relevant resources links</title>
-
+
<para><ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/poll.jsf?c=poll"
- >Here</ulink> you can see the example of <emphasis role="bold"
- ><property><a4j:poll></property></emphasis> usage and sources for the given example. </para>
- <para>The aditional information about component usage you can find here : <ulink
- url="http://jboss.com/index.html?module=bb&op=viewtopic&t=103909"
- >RichFaces Users Forum</ulink>.</para>
-
+ >Here</ulink> you can see the example of <emphasis role="bold">
+ <property><a4j:poll></property>
+ </emphasis> usage and sources for the given example. </para>
+ <para>The aditional information about component usage you can find here : <ulink
+ url="http://jboss.com/index.html?module=bb&op=viewtopic&t=103909">RichFaces
+ Users Forum</ulink>.</para>
+
</section>
-</chapter>
\ No newline at end of file
+</chapter>
Modified: trunk/docs/userguide/en/src/main/docbook/included/subTable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/subTable.xml 2007-11-28 16:42:40 UTC (rev 4318)
+++ trunk/docs/userguide/en/src/main/docbook/included/subTable.xml 2007-11-28 17:07:13 UTC (rev 4319)
@@ -1,46 +1,46 @@
<?xml version='1.0' encoding='UTF-8'?>
<section>
-<sectioninfo>
-<keywordset>
-<keyword>rich:subtable</keyword>
-<keyword>HtmlSubTable</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.SubTable</entry>
- </row>
- <row>
- <entry>component-class</entry>
- <entry>org.richfaces.component.html.HtmlSubTable</entry>
- </row>
- <row>
- <entry>component-family</entry>
- <entry>org.richfaces.SubTable</entry>
- </row>
- <row>
- <entry>renderer-type</entry>
- <entry>org.richfaces.SubTableRenderer</entry>
- </row>
- <row>
- <entry>tag-class</entry>
- <entry>org.richfaces.taglib.SubTableTag</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
+ <sectioninfo>
+ <keywordset>
+ <keyword>rich:subtable</keyword>
+ <keyword>HtmlSubTable</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.SubTable</entry>
+ </row>
+ <row>
+ <entry>component-class</entry>
+ <entry>org.richfaces.component.html.HtmlSubTable</entry>
+ </row>
+ <row>
+ <entry>component-family</entry>
+ <entry>org.richfaces.SubTable</entry>
+ </row>
+ <row>
+ <entry>renderer-type</entry>
+ <entry>org.richfaces.SubTableRenderer</entry>
+ </row>
+ <row>
+ <entry>tag-class</entry>
+ <entry>org.richfaces.taglib.SubTableTag</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>
@@ -49,10 +49,14 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <rich:dataTable value="#{capitalsBean.capitals}" var="capitals">
- <!--...//Set of columns and header/footer facets-->
+ <rich:dataTable value="#{capitalsBean.capitals}" var="capitals">
+ <rich:column>
+ ...
+ </rich:column>
<rich:subTable value=#{capitals.details} var="detail">
- <!--...//Set of columns and header/footer facets-->
+ <rich:column>
+ ...
+ </rich:column>
</rich:subTable>
</rich:dataTable>
...
@@ -72,77 +76,105 @@
</section>
<section>
<title>Details of Usage</title>
- <para>The <property>subtable</property> component is very similar to the custom JSF dataTable one, the only difference is that
- the component doesn't add the wrapping <emphasis role="bold"><property><table></property></emphasis> and <emphasis role="bold"><property><tbody></property></emphasis> tags.
- Hence, it's possible to add a subtable structure different from the main one to organize tables
- of the master - details type. The component is also has common peculiarities of any rich component:</para>
- <itemizedlist>
- <listitem>Skin support. The table completely meets a three-class principle of Rich Faces skinnability</listitem>
- <listitem>Support of Ajax updates for a limited set of rows</listitem>
- </itemizedlist>
- <para>Skins support is described in the <link linkend="ArchitectureOverview">corresponding section</link>. Ajax support is
- possible because the component is created basing on the <emphasis role="bold"><property><a4j:repeat></property></emphasis> component and as a result the
- component has its possibilities of Ajax updates for a limited set of rows. The component is implemented
- with the <emphasis ><property>"ajaxKeys"</property></emphasis> attribute for a table and in contrast to the <emphasis role="bold"><property><a4j:repeat></property></emphasis> outputs the standard HTML
- structure for table rendering.</para>
- <programlisting role="XML"><![CDATA[...
- <rich:dataTable value="#{capitalsBean.capitals}" var="capitals" id="table">
- <!--...//Set of columns and header/footer facets-->
- <rich:subTable value="#{capitals.details}" var="detail" ajaxKeys="#{bean.ajaxSet}" binding="#{bean.subtable}" >
- <!--...//Set of columns and header/footer facets-->
+
+ <para>The <emphasis role="bold">
+ <property><rich:subTable></property>
+ </emphasis> component is similar to the <emphasis role="bold">
+ <property><h:dataTable></property>
+ </emphasis> one, except Ajax support and skinnability. One more difference is that the
+ component doesn't add the wrapping <emphasis role="bold">
+ <property><table></property>
+ </emphasis> and <emphasis role="bold">
+ <property><tbody></property>
+ </emphasis> tags. Ajax support is possible, because the component was created basing on the
+ <emphasis role="bold">
+ <property><a4j:repeat></property>
+ </emphasis> component and as a result it could be partially updated with Ajax. <emphasis>
+ <property>"ajaxKeys"</property>
+ </emphasis> attribute allows to define rows that is updated after an Ajax request.</para>
+
+ <para>Here is an example:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+
+ <programlisting role="XML"><![CDATA[...
+ <rich:dataTable value="#{capitalsBean.capitals}" var="capitals">
+ <rich:column>
+ ...
+ </rich:column>
+ <rich:subTable value="#{capitals.details}" var="detail" ajaxKeys="#{bean.ajaxSet}" binding="#{bean.subtable}" id="subtable">
+ <rich:column>
+ ...
+ </rich:column>
</rich:subTable>
</rich:dataTable>
...
- <a4j:commandButton action="#{bean.someAction}" reRender="table"/>
+ <a4j:commandButton action="#{tableBean.action}" reRender="subtable"/>
...
]]></programlisting>
-<para>For such a table during someAction processing called with Ajax request when the key is pressed
- it's possible to fill in lot's of ajaxKeys with strings indices that are to be updated.
- A resulting output on the client contains only required rows and they are updated in the tree, even
- when update is specified for the whole table.</para>
+ <para> In the example <emphasis>
+ <property>"reRender"</property>
+ </emphasis> attribute contains value of <emphasis>
+ <property>"id"</property>
+ </emphasis> attribute for <emphasis role="bold">
+ <property><rich:subTable></property>
+ </emphasis> component. As a result the component is updated after an Ajax request.</para>
+
+ <para>The component allows to use <emphasis>
+ <property>"header"</property>
+ </emphasis> and <emphasis>
+ <property>"footer"</property>
+ </emphasis> facets for output. See an example for <emphasis role="bold">
+ <property><rich:dataTable></property>
+ </emphasis>
+ <link linkend="table_ex">component</link>.</para>
+
</section>
-
- <section>
- <title>Look-and-Feel Customization</title>
-
- <para>For skinnability implementation, the components use a <emphasis>
+
+ <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">
+
+ <para>There are two ways to redefine the appearance of all <emphasis role="bold">
<property><rich:subTable></property>
</emphasis> components at once:</para>
-
- <itemizedlist>
- <listitem>
- <para>Redefine the corresponding skin parameters</para>
- </listitem>
-
- <listitem>
- <para>Add to your style sheets <emphasis>
+
+ <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><rich:subTable></property>
</emphasis> component</para>
- </listitem>
- </itemizedlist>
- </section>
-
+ </listitem>
+ </itemizedlist>
+ </section>
+
<section>
<title>Skin Parameters Redefinition</title>
-
+
<para>Skin parameters redefinition for <emphasis role="bold">
- <property><rich:subTable></property>
- </emphasis> are the same as for the <emphasis role="bold">
- <property><rich:dataTable></property>
- </emphasis> <link linkend="SPR">component</link>.</para>
+ <property><rich:subTable></property>
+ </emphasis> are the same as for the <emphasis role="bold">
+ <property><rich:dataTable></property>
+ </emphasis>
+ <link linkend="SPR">component</link>.</para>
</section>
-
+
<section>
<title>Definition of Custom Style Classes</title>
-
+
<table>
<title>Classes names that define a component appearance</title>
<tgroup cols="2">
@@ -161,11 +193,11 @@
<entry>rich-subtable-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">
@@ -176,12 +208,12 @@
</row>
</thead>
<tbody>
-
+
<row>
<entry>rich-subtable-header</entry>
<entry>Defines styles for a subtable header row</entry>
</row>
-
+
<row>
<entry>rich-subtable-header-continue</entry>
<entry>Defines styles for all subtable header lines after the first</entry>
@@ -190,17 +222,17 @@
<entry>rich-subtable-subheader</entry>
<entry>Defines styles for a column header of subtable</entry>
</row>
-
+
<row>
<entry>rich-subtable-subfooter</entry>
<entry>Defines styles for a column footer of subtable</entry>
</row>
-
+
<row>
<entry>rich-subtable-footer</entry>
<entry>Defines styles for a subtable footer row</entry>
</row>
-
+
<row>
<entry>rich-subtable-footer-continue</entry>
<entry>Defines styles for all subtable footer lines after the first</entry>
@@ -208,7 +240,7 @@
</tbody>
</tgroup>
</table>
-
+
<table>
<title>Classes names that define rows and cells</title>
<tgroup cols="2">
@@ -223,7 +255,7 @@
<entry>rich-subtable-headercell</entry>
<entry>Defines styles for a subtable header cell</entry>
</row>
-
+
<row>
<entry>rich-subtable-subheadercell</entry>
<entry>Defines styles for a column header cell of subtable</entry>
@@ -240,30 +272,30 @@
<entry>rich-subtable-firstrow</entry>
<entry>Defines styles for a subtable start row</entry>
</row>
-
+
<row>
<entry>rich-subtable-subfootercell</entry>
<entry>Defines styles for a column footer cell of subtable</entry>
</row>
-
+
<row>
<entry>rich-subtable-footercell</entry>
<entry>Defines styles for a subtable footer cell</entry>
</row>
-
+
</tbody>
</tgroup>
</table>
<para>In order to redefine styles for all <emphasis role="bold">
- <property><rich:subTable></property>
- </emphasis> components on a page using CSS, it's enough to create classes with the
+ <property><rich:subTable></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
same names and define necessary properties in them.</para>
-
+
<para>To change styles of particular <emphasis role="bold">
- <property><rich:subTable></property>
- </emphasis> components, define your own style classes in the corresponding <emphasis
- role="bold">
- <property><rich:subTable></property>
- </emphasis>attributes.</para>
+ <property><rich:subTable></property>
+ </emphasis> components, define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:subTable></property>
+ </emphasis>attributes.</para>
</section>
-</section>
\ No newline at end of file
+</section>
17 years, 1 month
JBoss Rich Faces SVN: r4318 - in branches/3.1.x/samples/contextMenuDemo/src/main/webapp: pages and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-11-28 11:42:40 -0500 (Wed, 28 Nov 2007)
New Revision: 4318
Modified:
branches/3.1.x/samples/contextMenuDemo/src/main/webapp/WEB-INF/faces-config.xml
branches/3.1.x/samples/contextMenuDemo/src/main/webapp/WEB-INF/web.xml
branches/3.1.x/samples/contextMenuDemo/src/main/webapp/pages/index.jsp
Log:
Dynamic skins added to context menu demo
Modified: branches/3.1.x/samples/contextMenuDemo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- branches/3.1.x/samples/contextMenuDemo/src/main/webapp/WEB-INF/faces-config.xml 2007-11-28 16:26:42 UTC (rev 4317)
+++ branches/3.1.x/samples/contextMenuDemo/src/main/webapp/WEB-INF/faces-config.xml 2007-11-28 16:42:40 UTC (rev 4318)
@@ -7,4 +7,9 @@
<managed-bean-class>org.richfaces.Bean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
+ <managed-bean>
+ <managed-bean-name>skinBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.SkinBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
</faces-config>
Modified: branches/3.1.x/samples/contextMenuDemo/src/main/webapp/WEB-INF/web.xml
===================================================================
--- branches/3.1.x/samples/contextMenuDemo/src/main/webapp/WEB-INF/web.xml 2007-11-28 16:26:42 UTC (rev 4317)
+++ branches/3.1.x/samples/contextMenuDemo/src/main/webapp/WEB-INF/web.xml 2007-11-28 16:42:40 UTC (rev 4318)
@@ -14,6 +14,10 @@
<param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
<param-value>false</param-value>
</context-param>
+ <context-param>
+ <param-name>org.ajax4jsf.SKIN</param-name>
+ <param-value>#{skinBean.skin}</param-value>
+ </context-param>
<!--
-->
<filter>
Modified: branches/3.1.x/samples/contextMenuDemo/src/main/webapp/pages/index.jsp
===================================================================
--- branches/3.1.x/samples/contextMenuDemo/src/main/webapp/pages/index.jsp 2007-11-28 16:26:42 UTC (rev 4317)
+++ branches/3.1.x/samples/contextMenuDemo/src/main/webapp/pages/index.jsp 2007-11-28 16:42:40 UTC (rev 4318)
@@ -25,6 +25,11 @@
</head>
<body>
<f:view>
+ <h:form id="skinForm" >
+ <h:selectOneRadio binding="#{skinBean.component}"/>
+ <h:commandLink action="#{skinBean.change}" value="Set Skin"/>
+ <h:outputText value=" Current skin: #{skinBean.skin}" />
+ </h:form>
<div id="sgs" style="height:50px">
<a4j:outputPanel ajaxRendered="true">
<h:messages></h:messages>
17 years, 1 month
JBoss Rich Faces SVN: r4316 - in trunk: ui/calendar/src/main/resources/org/richfaces/renderkit/html/css and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2007-11-28 11:24:32 -0500 (Wed, 28 Nov 2007)
New Revision: 4316
Modified:
trunk/samples/calendar-sample/src/main/webapp/pages/Calendar.jsp
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
RF-1192
Modified: trunk/samples/calendar-sample/src/main/webapp/pages/Calendar.jsp
===================================================================
--- trunk/samples/calendar-sample/src/main/webapp/pages/Calendar.jsp 2007-11-28 15:37:25 UTC (rev 4315)
+++ trunk/samples/calendar-sample/src/main/webapp/pages/Calendar.jsp 2007-11-28 16:24:32 UTC (rev 4316)
@@ -38,7 +38,7 @@
</h:panelGrid>
<br />
<br />
- <calendar:calendar datePattern="" showApplyButton="#{calendarBean.showApplyButton}" popup="#{calendarBean.popup}"/>
+ <calendar:calendar datePattern="#{calendarBean.pattern}" showApplyButton="#{calendarBean.showApplyButton}" popup="#{calendarBean.popup}"/>
<calendar:calendar cellWidth="5" cellHeight="5"/>
<calendar:calendar cellWidth="40" cellHeight="40"/>
<calendar:calendar
Modified: trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss
===================================================================
--- trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss 2007-11-28 15:37:25 UTC (rev 4315)
+++ trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss 2007-11-28 16:24:32 UTC (rev 4316)
@@ -40,7 +40,7 @@
.rich-calendar-tool{
vertical-align : middle;
text-align : center;
- width : 25px;
+ width : 20px;
height : 22px;
}
@@ -74,9 +74,8 @@
}
.rich-calendar-toolfooter{
-
- padding : 0px 4px 0px 4px;
height : 22px;
+ padding : 1px 2px 1px 1px;
}
.rich-calendar-footer-optional{
@@ -136,6 +135,7 @@
<u:style name="font-family" skin="headerFamilyFont"/>
<u:style name="font-weight" skin="headerWeightFont"/>
<u:style name="color" skin="headerTextColor"/>
+ <u:style name="white-space" value="nowrap"/>
</u:selector>
<u:selector name=".rich-calendar-days">
@@ -193,8 +193,34 @@
<u:style name="background" skin="additionalBackgroundColor"/>
<u:style name="font-size" skin="generalSizeFont"/>
<u:style name="font-family" skin="generalFamilyFont"/>
+ <u:style name="background-image">
+ <f:resource f:key="org.richfaces.renderkit.html.iconimages.CalendarSeparator" />
+ </u:style>
+ <u:style name="background-repeat" value="no-repeat" />
+ <u:style name="background-position" value="right center" />
</u:selector>
+
+ <u:selector name=".rich-calendar-tool-btn">
+ <u:style name="cursor" value="pointer"/>
+ <u:style name="padding" value="2px 3px 2px 3px"/>
+ <u:style name="white-space" value="nowrap"/>
+ </u:selector>
+
+ <u:selector name=".rich-calendar-tool-btn-hover">
+ <u:style name="background" skin="calendarWeekBackgroundColor"/>
+ <u:style name="border" value="1px solid"/>
+ <u:style name="border-color" skin="tableBackgroundColor"/>
+ <u:style name="border-right-color" skin="panelBorderColor"/>
+ <u:style name="border-bottom-color" skin="panelBorderColor"/>
+ <u:style name="padding" value="1px 2px 1px 2px"/>
+ </u:selector>
+ <u:selector name=".rich-calendar-tool-btn-press">
+ <u:style name="border-color" skin="panelBorderColor"/>
+ <u:style name="border-right-color" skin="tableBackgroundColor"/>
+ <u:style name="border-bottom-color" skin="tableBackgroundColor"/>
+ </u:selector>
+
<u:selector name=".rich-calendar-footer-optional">
<u:style name="border-top-color" skin="panelBorderColor"/>
<u:style name="border-right-color" skin="panelBorderColor"/>
@@ -210,20 +236,20 @@
<u:style name="font-size" skin="generalSizeFont"/>
<u:style name="font-family" skin="generalFamilyFont"/>
</u:selector>
-
- <u:selector name=".rich-calendar-button">
- <u:style name="cursor" value="pointer"/>
- <u:style name="vertical-align" value="middle"/>
- </u:selector>
-
- <u:selector name=".rich-calendar-close-tool">
+
+ <u:selector name=".rich-calendar-tool-close">
+ <u:style name="padding" value="2px 2px 2px 4px"/>
<u:style name="background-image">
<f:resource f:key="org.richfaces.renderkit.html.iconimages.CalendarSeparator" />
</u:style>
<u:style name="background-repeat" value="no-repeat" />
<u:style name="background-position" value="left center" />
- <u:style name="background-attachment" value="scroll" />
- <u:style name="background-color" skin="headerBackgroundColor"/>
</u:selector>
+
+ <u:selector name=".rich-calendar-button">
+ <u:style name="cursor" value="pointer"/>
+ <u:style name="vertical-align" value="middle"/>
+ </u:selector>
+
</f:template>
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 2007-11-28 15:37:25 UTC (rev 4315)
+++ trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-11-28 16:24:32 UTC (rev 4316)
@@ -481,7 +481,7 @@
if (this.params.showWeekDaysBar==undefined) this.params.showWeekDaysBar = true;
if (this.params.showWeeksBar==undefined) this.params.showWeeksBar = true;
- if (!this.params.datePattern) this.params.datePattern = "MMM d, y h:mm a";
+ if (!this.params.datePattern) this.params.datePattern = "MMM d, y";
// time
this.setTimeProperties();
@@ -687,7 +687,7 @@
ts.value = a;
h = (h==0 ? '12' : (h>12 ? h-12 : h));
}
- th.value = (h<10 ? '0'+h : h);
+ th.value = (this.timeHoursDigits==2 && h<10 ? '0'+h : h);
tm.value = (m<10 ? '0'+m : m);
div.style.width = element.clientWidth+'px';
@@ -715,7 +715,7 @@
var id = this.id;
var getString = function (p) {
- return (i==0 || p.length==0 ? obj.marker : dateTimePattern.substring(pattern[i-1].str.length+pattern[i-1].idx, obj.idx+obj.str.length));
+ return (p.length==0 ? obj.marker : dateTimePattern.substring(pattern[i-1].str.length+pattern[i-1].idx, obj.idx+obj.str.length));
};
for (var i=0;i<pattern.length;i++)
@@ -755,8 +755,10 @@
function($1,$2,$3) {
switch ($3) {
case 'a' : return $2+'<input style="width:22px; margin: 0px 2px;" id="'+id+'TimeSign"/>';
- case 'H' :
- case 'h' : return $2+'<input style="width:22px; margin: 0px 2px;" id="'+id+'TimeHours"/>';
+ case 'H' :
+ case 'HH' :
+ case 'h' :
+ case 'hh' : return $2+'<input style="width:22px; margin: 0px 2px;" id="'+id+'TimeHours"/>';
case 'mm' : return $2+'<input style="width:22px; margin: 0px 2px;" id="'+id+'TimeMinutes"/>';
}
}
@@ -1545,6 +1547,11 @@
this.selectedDate = newSelectedDate;
if (this.selectedDate!=null)
{
+ if (oldSelectedDate!=null)
+ {
+ this.selectedDate.setHours(oldSelectedDate.getHours());
+ this.selectedDate.setMinutes(oldSelectedDate.getMinutes());
+ }
if (!this.showApplyButton) field.value=this.getSelectedDateString(this.params.datePattern);
var d = new Date(this.selectedDate);
@@ -1700,11 +1707,11 @@
});
CalendarView = {};
-CalendarView.getControl = function(text, functionName, paramsStr) {
- var attr = {
- onclick: (functionName ? "Richfaces.getComponent('calendar',this)."+functionName+"("+(paramsStr ? paramsStr : "")+");" : "")+"return true;",
- className: "rich-calendar-btn"
- };
+CalendarView.getControl = function(text, attributes, functionName, paramsStr) {
+ var attr = Object.extend({
+ onclick: (functionName ? "Richfaces.getComponent('calendar',this)."+functionName+"("+(paramsStr ? paramsStr : "")+");" : "")+"return true;",
+ className: "rich-calendar-btn"
+ }, attributes);
return new E('div',attr,[new T(text)]);
};
@@ -1715,7 +1722,7 @@
var text = Richfaces.Calendar.formatDate(calendar.selectedDate,(calendar.timeType ? calendar.datePattern : calendar.params.datePattern), calendar.params.monthLabels, calendar.params.monthLabelsShort);
- var markup = new E('div', {'class': 'rich-calendar-btn', 'style': 'white-space:nowrap', 'onclick': "Richfaces.getComponent('calendar',this).showSelectedDate(); return true;"}, [new ET(text)]);
+ var markup = new E('div', {'class': 'rich-calendar-tool-btn', 'onclick': "Richfaces.getComponent('calendar',this).showSelectedDate(); return true;"}, [new ET(text)]);
return markup;
};
@@ -1726,22 +1733,25 @@
var text = Richfaces.Calendar.formatDate(calendar.selectedDate, calendar.timePattern, calendar.params.monthLabels, calendar.params.monthLabelsShort);
- var markup = new E('div', {'class': 'rich-calendar-btn rich-calendar-time', 'style': 'white-space:nowrap', 'onclick': "Richfaces.getComponent('calendar',this).showTimeEditor(this);return true;"}, [new ET(text)]);
+ var markup = new E('div', {'class': 'rich-calendar-tool-btn rich-calendar-tool-btn-hover rich-calendar-tool-btn-press', 'onclick': "Richfaces.getComponent('calendar',this).showTimeEditor(this);return true;",
+ 'onmouseover': "Element.removeClassName(this, 'rich-calendar-tool-btn-press');",
+ 'onmouseout' : "Element.addClassName(this, 'rich-calendar-tool-btn-press');"}, [new ET(text)]);
return markup;
};
-CalendarView.nextYearControl = CalendarView.getControl(">>", "nextYear");
-CalendarView.previousYearControl = CalendarView.getControl("<<", "prevYear");
-CalendarView.nextMonthControl = CalendarView.getControl(">", "nextMonth");
-CalendarView.previousMonthControl = CalendarView.getControl("<", "prevMonth");
+CalendarView.toolButtonAttributes = {className: "rich-calendar-tool-btn", onmouseover:"this.className='rich-calendar-tool-btn rich-calendar-tool-btn-hover'", onmouseout:"this.className='rich-calendar-tool-btn'", onmousedown:"this.className='rich-calendar-tool-btn rich-calendar-tool-btn-hover rich-calendar-tool-btn-press'", onmouseup:"this.className='rich-calendar-tool-btn rich-calendar-tool-btn-hover'"};
+CalendarView.nextYearControl = CalendarView.getControl(">>", null, "nextYear");
+CalendarView.previousYearControl = CalendarView.getControl("<<", null, "prevYear");
+CalendarView.nextMonthControl = CalendarView.getControl(">", null, "nextMonth");
+CalendarView.previousMonthControl = CalendarView.getControl("<", null, "prevMonth");
CalendarView.currentMonthControl = function (context) { return Richfaces.Calendar.formatDate(context.calendar.getCurrentDate(), "MMMM, yyyy", context.monthLabels, context.monthLabelsShort);};
-CalendarView.todayControl = CalendarView.getControl("Today", "today");
+CalendarView.todayControl = CalendarView.getControl("Today", CalendarView.toolButtonAttributes, "today");
CalendarView.selectedDateControl = function (context) { return CalendarView.getSelectedDateControl(context.calendar);};
CalendarView.timeControl = function (context) { return CalendarView.getTimeControl(context.calendar);};
-CalendarView.closeControl = CalendarView.getControl("x", "close", "false");
-CalendarView.applyControl = function (context) { return (context.calendar.showApplyButton ? CalendarView.getControl("OK", "close", "true") : "");};
-CalendarView.cleanControl = function (context) { return (context.calendar.selectedDate ? CalendarView.getControl("Clean", "resetSelectedDate") : "");};
+CalendarView.closeControl = CalendarView.getControl("x", CalendarView.toolButtonAttributes, "close", "false");
+CalendarView.applyControl = function (context) { return (context.calendar.showApplyButton ? CalendarView.getControl("OK", CalendarView.toolButtonAttributes, "close", "true") : "");};
+CalendarView.cleanControl = function (context) { return (context.calendar.selectedDate ? CalendarView.getControl("Clean", CalendarView.toolButtonAttributes, "resetSelectedDate") : "");};
CalendarView.header = [
new E('table',{'border': '0', 'cellpadding': '0', 'cellspacing': '0', 'width': '100%'},
@@ -1770,7 +1780,7 @@
[
new ET(function (context) { return Richfaces.evalMacro("nextYearControl", context)})
]),
- new E('td',{'class': 'rich-calendar-tool rich-calendar-close-tool'},
+ new E('td',{'class': 'rich-calendar-tool rich-calendar-tool-close'},
[
new ET(function (context) { return Richfaces.evalMacro("closeControl", context)})
])
@@ -1794,16 +1804,16 @@
[
new ET(function (context) { return Richfaces.evalMacro("cleanControl", context)})
]),
- new E('td',{'class': 'rich-calendar-toolfooter', 'style':function(context){return (this.isEmpty ? 'display:none;' : '')+'background-color:#ffffff;';}},
+ new E('td',{'class': 'rich-calendar-toolfooter', 'style':function(context){return (this.isEmpty ? 'display:none;' : '');}},
[
new ET(function (context) { return Richfaces.evalMacro("timeControl", context)})
]),
new E('td',{'width': '100%'}, []),
- new E('td',{'class': 'rich-calendar-toolfooter', 'style':function(context){return (this.isEmpty ? 'display:none;' : '');}},
+ new E('td',{'class': 'rich-calendar-toolfooter', 'style':function(context){return (this.isEmpty ? 'display:none;' : '')+(!context.calendar.showApplyButton ? 'background-image:none;' : '');}},
[
new ET(function (context) { return Richfaces.evalMacro("todayControl", context)})
]),
- new E('td',{'class': 'rich-calendar-toolfooter', 'style':function(context){return (this.isEmpty ? 'display:none;' : '');}},
+ new E('td',{'class': 'rich-calendar-toolfooter', 'style':function(context){return (this.isEmpty ? 'display:none;' : '')+'background-image:none;';}},
[
new ET(function (context) { return Richfaces.evalMacro("applyControl", context)})
])
17 years, 1 month
JBoss Rich Faces SVN: r4315 - in management/design/fileUpload: markup and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-11-28 10:37:25 -0500 (Wed, 28 Nov 2007)
New Revision: 4315
Added:
management/design/fileUpload/markup/
management/design/fileUpload/markup/file_upload.html
management/design/fileUpload/markup/images/
management/design/fileUpload/markup/images/bg_button.png
management/design/fileUpload/markup/images/bg_press.png
management/design/fileUpload/markup/images/bg_uploaded.png
management/design/fileUpload/markup/images/ico_delete.gif
Log:
file upload preliminary markup committed
Added: management/design/fileUpload/markup/file_upload.html
===================================================================
--- management/design/fileUpload/markup/file_upload.html (rev 0)
+++ management/design/fileUpload/markup/file_upload.html 2007-11-28 15:37:25 UTC (rev 4315)
@@ -0,0 +1,66 @@
+<html>
+<head>
+<title>1</title>
+<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
+
+<style>
+body{margin : 20px}
+*{font-family : verdana; font-size : 11px}
+.file_item{ white-space : nowrap;}
+.file_delete_button{border : 1px solid #CCCCCC; padding : 1px; width : 12px; cursor : pointer; float : left; margin : 1px 2px 1px 7px;}
+.file_field{float : left; width : 200; height : 18; margin-bottom : 5px;}
+.file_bar_height{height : 16px}
+.file_bar_width{width : 200px}
+.file_bar_uploaded{width : 99px; overflow : hidden; position : absolute; border : 1px solid #cccccc;}
+.file_bar_shell{position : relative; margin-bottom : 2px;float : left;}
+.file_bar_track{background : #F1F1F1; text-align : center; border : 1px solid #cccccc; color : #000000; font-weight : bold; position : absolute;}
+.file_bar_ststusline{background : #FF9409; text-align : center; color : #FFFFFF;; font-weight : bold; background-image : url(images/bg_uploaded.png);background-repeat : repeat-x; position : absolute;}
+.file_stop_button{background : url(images/bg_button.png);border : 1px solid #CCCCCC; padding : 0px 5px 0px 5px;cursor : pointer; float : left; margin : 0px 0px 0px 2px;}
+</style>
+</head>
+<body>
+
+
+<div class="file_item">
+ <input type="File" class="file_field">
+ <div class="file_delete_button"><img src="images/ico_delete.gif" width="12" height="12" alt="" border="0"></div>
+</div>
+<br clear="all">
+<div class="file_item">
+ <input type="File" class="file_field">
+ <div class="file_delete_button"><img src="images/ico_delete.gif" width="12" height="12" alt="" border="0"></div>
+</div>
+<br clear="all">
+<div class="file_item">
+ <input type="File" class="file_field" >
+ <div class="file_delete_button"><img src="images/ico_delete.gif" width="12" height="12" alt="" border="0"></div>
+</div>
+<br clear="all">
+<div class="file_item">
+ <input type="File" class="file_field">
+
+</div>
+<br clear="all">
+<div class="file_stop_button file_bar_height">Upload</div>
+
+
+<br><br><br><br>
+
+<div class="file_item">
+<div class="file_bar_height file_bar_width file_bar_shell">
+ <div class="file_bar_height file_bar_width file_bar_track">
+ 50%
+ </div>
+ <div class="file_bar_height file_bar_uploaded">
+ <div class="file_bar_height file_bar_width file_bar_ststusline">
+ 50%
+ </div>
+ </div>
+</div>
+<div class="file_stop_button file_bar_height">Stop</div>
+</div><br clear="all">
+Uploaded 200Kb from 500Kb
+
+</div>
+</body>
+</html>
\ No newline at end of file
Added: management/design/fileUpload/markup/images/bg_button.png
===================================================================
(Binary files differ)
Property changes on: management/design/fileUpload/markup/images/bg_button.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: management/design/fileUpload/markup/images/bg_press.png
===================================================================
(Binary files differ)
Property changes on: management/design/fileUpload/markup/images/bg_press.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: management/design/fileUpload/markup/images/bg_uploaded.png
===================================================================
(Binary files differ)
Property changes on: management/design/fileUpload/markup/images/bg_uploaded.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: management/design/fileUpload/markup/images/ico_delete.gif
===================================================================
(Binary files differ)
Property changes on: management/design/fileUpload/markup/images/ico_delete.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 1 month
JBoss Rich Faces SVN: r4313 - trunk/samples/richfaces-demo.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-11-28 10:15:42 -0500 (Wed, 28 Nov 2007)
New Revision: 4313
Modified:
trunk/samples/richfaces-demo/pom.xml
Log:
http://jira.jboss.com/jira/browse/RF-1417
Modified: trunk/samples/richfaces-demo/pom.xml
===================================================================
--- trunk/samples/richfaces-demo/pom.xml 2007-11-28 15:08:20 UTC (rev 4312)
+++ trunk/samples/richfaces-demo/pom.xml 2007-11-28 15:15:42 UTC (rev 4313)
@@ -133,10 +133,6 @@
<directory>${basedir}/src/main/java</directory>
<targetPath>/WEB-INF/src</targetPath>
</resource>
- <resource>
- <directory>${basedir}/target/classes</directory>
- <targetPath>/WEB-INF/classes</targetPath>
- </resource>
</webResources>
</configuration>
</plugin>
@@ -202,4 +198,4 @@
<version>2.8.1</version>
</dependency>
</dependencies>
-</project>
\ No newline at end of file
+</project>
17 years, 1 month
JBoss Rich Faces SVN: r4312 - in trunk/samples/richfaces-demo: src/main/java/org/richfaces/demo/capitals and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-11-28 10:08:20 -0500 (Wed, 28 Nov 2007)
New Revision: 4312
Added:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/capitals-rules.xml
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/capitals.xml
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/digester-rules.dtd
Removed:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/capitals-rules.xml
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/capitals.xml
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/digester-rules.dtd
Modified:
trunk/samples/richfaces-demo/pom.xml
Log:
http://jira.jboss.com/jira/browse/RF-1417
Modified: trunk/samples/richfaces-demo/pom.xml
===================================================================
--- trunk/samples/richfaces-demo/pom.xml 2007-11-28 15:03:57 UTC (rev 4311)
+++ trunk/samples/richfaces-demo/pom.xml 2007-11-28 15:08:20 UTC (rev 4312)
@@ -133,6 +133,10 @@
<directory>${basedir}/src/main/java</directory>
<targetPath>/WEB-INF/src</targetPath>
</resource>
+ <resource>
+ <directory>${basedir}/target/classes</directory>
+ <targetPath>/WEB-INF/classes</targetPath>
+ </resource>
</webResources>
</configuration>
</plugin>
Deleted: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/capitals-rules.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/capitals-rules.xml 2007-11-28 15:03:57 UTC (rev 4311)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/capitals-rules.xml 2007-11-28 15:08:20 UTC (rev 4312)
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- <!DOCTYPE digester-rules SYSTEM "digester-rules.dtd">
--->
-
-<digester-rules>
- <pattern value="*/capital">
- <object-create-rule classname="org.richfaces.demo.capitals.Capital" />
- <bean-property-setter-rule pattern="name" propertyname="name"/>
- <bean-property-setter-rule pattern="state" propertyname="state"/>
- <bean-property-setter-rule pattern="timeZone" propertyname="timeZone"/>
- <set-next-rule methodname="addCapital"/>
- </pattern>
-</digester-rules>
\ No newline at end of file
Deleted: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/capitals.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/capitals.xml 2007-11-28 15:03:57 UTC (rev 4311)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/capitals.xml 2007-11-28 15:08:20 UTC (rev 4312)
@@ -1,253 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<capitals>
- <capital>
- <state>Alabama</state>
- <name>Montgomery</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Alaska</state>
- <name>Juneau</name>
- <timeZone>GMT-9</timeZone>
- </capital>
- <capital>
- <state>Arizona</state>
- <name>Phoenix</name>
- <timeZone>GMT-7</timeZone>
- </capital>
- <capital>
- <state>Arkansas</state>
- <name>Little Rock</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>California</state>
- <name>Sacramento</name>
- <timeZone>GMT-8</timeZone>
- </capital>
- <capital>
- <state>Colorado</state>
- <name>Denver</name>
- <timeZone>GMT-7</timeZone>
- </capital>
- <capital>
- <state>Connecticut</state>
- <name>Hartford</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Delaware</state>
- <name>Dover</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Florida</state>
- <name>Tallahassee</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Georgia</state>
- <name>Atlanta</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Hawaii</state>
- <name>Honolulu</name>
- <timeZone>GMT-10</timeZone>
- </capital>
- <capital>
- <state>Idaho</state>
- <name>Boise</name>
- <timeZone>GMT-8</timeZone>
- </capital>
- <capital>
- <state>Illinois</state>
- <name>Springfield</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Indiana</state>
- <name>Indianapolis</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Iowa</state>
- <name>Des Moines</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Kansas</state>
- <name>Topeka</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Kentucky</state>
- <name>Frankfort</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Louisiana</state>
- <name>Baton Rouge</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Maine</state>
- <name>Augusta</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Maryland</state>
- <name>Annapolis</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Massachusetts</state>
- <name>Boston</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Michigan</state>
- <name>Lansing</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Minnesota</state>
- <name>St. Paul</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Mississippi</state>
- <name>Jackson</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Missouri</state>
- <name>Jefferson City</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Montana</state>
- <name>Helena</name>
- <timeZone>GMT-7</timeZone>
- </capital>
- <capital>
- <state>Nebraska</state>
- <name>Lincoln</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Nevada</state>
- <name>Carson City</name>
- <timeZone>GMT-8</timeZone>
- </capital>
- <capital>
- <state>New Hampshire</state>
- <name>Concord</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>New Jersey</state>
- <name>Trenton</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>New Mexico</state>
- <name>Santa Fe</name>
- <timeZone>GMT-7</timeZone>
- </capital>
- <capital>
- <state>New York</state>
- <name>Albany</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>North Carolina</state>
- <name>Raleigh</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>North Dakota</state>
- <name>Bismarck</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Ohio</state>
- <name>Columbus</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Oklahoma</state>
- <name>Oklahoma City</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Oregon</state>
- <name>Salem</name>
- <timeZone>GMT-8</timeZone>
- </capital>
- <capital>
- <state>Pennsylvania</state>
- <name>Harrisburg</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Rhode Island</state>
- <name>Providence</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>South Carolina</state>
- <name>Columbia</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>South Dakota</state>
- <name>Pierre</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Tennessee</state>
- <name>Nashville</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Texas</state>
- <name>Austin</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Utah</state>
- <name>Salt Lake City</name>
- <timeZone>GMT-7</timeZone>
- </capital>
- <capital>
- <state>Vermont</state>
- <name>Montpelier</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Virginia</state>
- <name>Richmond</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Washington</state>
- <name>Olympia</name>
- <timeZone>GMT-8</timeZone>
- </capital>
- <capital>
- <state>West Virginia</state>
- <name>Charleston</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Wisconsin</state>
- <name>Madison</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Wyoming</state>
- <name>Cheyenne</name>
- <timeZone>GMT-7</timeZone>
- </capital>
-</capitals>
\ No newline at end of file
Deleted: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/digester-rules.dtd
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/digester-rules.dtd 2007-11-28 15:03:57 UTC (rev 4311)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/digester-rules.dtd 2007-11-28 15:08:20 UTC (rev 4312)
@@ -1,146 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<!--
- "Digester" component of the Jakarta Commons Subproject
- DTD for the definition of Digester rules in XML.
- $Id: digester-rules.dtd,v 1.8 2003/03/27 18:54:45 rdonkin Exp $
--->
-
-<!-- This document type defines an XML format for defining Digester rules.
- Digester is a framework for pattern-matching-based parsing of XML into
- Java objects. See http://jakarta.apache.org/commons/digester.html. -->
-
-<!ENTITY % rule-elements "bean-property-setter-rule | call-method-rule | call-param-rule |
- factory-create-rule | object-create-rule |
- set-properties-rule | set-property-rule | set-top-rule |
- set-next-rule" >
-
-<!-- digester-rules is the root element. -->
-<!ELEMENT digester-rules (pattern | include | bean-property-setter-rule | call-method-rule | call-param-rule | factory-create-rule | object-create-rule | set-properties-rule | set-property-rule | set-top-rule | set-next-rule )*>
-
-
-<!-- <pattern> defines a matching pattern, or part of a matching pattern. Any
- rule nested in a pattern element prepends its parent's to its pattern.
- Patterns may be recursively nested.
- Example:
- <pattern value="foo">
- <pattern value="bar">
- <object-create-rule pattern="baz" classname="Fubar" />
- </pattern>
- </pattern>
-
- The above sample fragment defines an ObjectCreateRule associated
- with the pattern "foo/bar/baz".
-
- Note that the use of pattern elements is optional; an alternative is for
- each rule element to contain a 'pattern' attribute. -->
-<!ELEMENT pattern (pattern | include | bean-property-setter-rule | call-method-rule | call-param-rule |
- factory-create-rule | object-create-rule |
- set-properties-rule | set-property-rule | set-top-rule |
- set-next-rule )*>
-<!ATTLIST pattern
- value CDATA #REQUIRED>
-
-
-<!--
- <include> allows one set of digester rules to be included inside
- another. The 'path' attribute contains the URI of the document to
- include. Inclusion behaves as if the included rules document is
- 'macro-expanded' within the outer document.
- Programmatically initialized rules can be included as well, via the
- 'class' attribute. The 'class' attribute should contain the name
- of a class that implements
- org.apache.commons.digester.xmlrules.DigesterRulesSource.
--->
-<!ELEMENT include EMPTY>
-<!ATTLIST include
- path CDATA #IMPLIED
- class CDATA #IMPLIED>
-
-
-<!-- Each 'rule' element below corresponds to a concrete subclass
- of org.apache.framework.digester.Rule.
- Each 'rule' element has an optional 'pattern' attribute, which
- defines the pattern for that rule instance. If the rule element
- is nested inside one or more <pattern> elements, those patterns
- will be prepended to the pattern specified in the rule's 'pattern'
- attribute. -->
-
-<!-- Bean Property Setter Rule -->
-<!ELEMENT bean-property-setter-rule EMPTY>
-<!ATTLIST bean-property-setter-rule
- pattern CDATA #IMPLIED
- propertyname CDATA #IMPLIED>
-
-<!-- CallMethodRule -->
-<!ELEMENT call-method-rule EMPTY>
-<!ATTLIST call-method-rule
- pattern CDATA #IMPLIED
- methodname CDATA #REQUIRED
- paramcount CDATA #IMPLIED
- paramtypes CDATA #IMPLIED>
-
-<!--
- CallParamRule
- attrname - set param from attribute value (cannot be combined with from-stack)
- from-stack - set param from stack (cannot be combined with attrname)
- -->
-<!ELEMENT call-param-rule EMPTY>
-<!ATTLIST call-param-rule
- pattern CDATA #IMPLIED
- paramnumber CDATA #REQUIRED
- attrname CDATA #IMPLIED
- from-stack CDATA #IMPLIED>
-
-<!--
- FactoryCreateRule
-
- ignore-exceptions - if this attribute is (ignore case) 'true' then any exceptions
- thrown by the object create rule will be ignore.
- This will allow processing to continue.
- -->
-<!ELEMENT factory-create-rule EMPTY>
-<!ATTLIST factory-create-rule
- pattern CDATA #IMPLIED
- classname CDATA #REQUIRED
- attrname CDATA #IMPLIED
- ignore-exceptions CDATA #IMPLIED>
-
-<!-- ObjectCreateRule -->
-<!ELEMENT object-create-rule EMPTY>
-<!ATTLIST object-create-rule
- pattern CDATA #IMPLIED
- classname CDATA #REQUIRED
- attrname CDATA #IMPLIED>
-
-<!-- SetPropertiesRule -->
-<!ELEMENT set-properties-rule (alias)*>
-<!ATTLIST factory-create-rule
- pattern CDATA #IMPLIED>
-
-<!-- An alias is a custom attribute->property name mapping -->
-<!ELEMENT alias EMPTY>
-<!ATTLIST alias
- attr-name CDATA #REQUIRED
- prop-name CDATA #IMPLIED>
-
-<!-- SetPropertyRule -->
-<!ELEMENT set-property-rule EMPTY>
-<!ATTLIST set-property-rule
- pattern CDATA #IMPLIED
- name CDATA #IMPLIED
- value CDATA #IMPLIED>
-
-<!-- SetTopRule -->
-<!ELEMENT set-top-rule EMPTY>
-<!ATTLIST set-top-rule
- pattern CDATA #IMPLIED
- methodname CDATA #REQUIRED
- paramtype CDATA #IMPLIED>
-
-<!-- SetNextRule -->
-<!ELEMENT set-next-rule EMPTY>
-<!ATTLIST set-next-rule
- pattern CDATA #IMPLIED
- methodname CDATA #REQUIRED
- paramtype CDATA #IMPLIED>
Added: trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/capitals-rules.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/capitals-rules.xml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/capitals-rules.xml 2007-11-28 15:08:20 UTC (rev 4312)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ <!DOCTYPE digester-rules SYSTEM "digester-rules.dtd">
+-->
+
+<digester-rules>
+ <pattern value="*/capital">
+ <object-create-rule classname="org.richfaces.demo.capitals.Capital" />
+ <bean-property-setter-rule pattern="name" propertyname="name"/>
+ <bean-property-setter-rule pattern="state" propertyname="state"/>
+ <bean-property-setter-rule pattern="timeZone" propertyname="timeZone"/>
+ <set-next-rule methodname="addCapital"/>
+ </pattern>
+</digester-rules>
\ No newline at end of file
Property changes on: trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/capitals-rules.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/capitals.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/capitals.xml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/capitals.xml 2007-11-28 15:08:20 UTC (rev 4312)
@@ -0,0 +1,253 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<capitals>
+ <capital>
+ <state>Alabama</state>
+ <name>Montgomery</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Alaska</state>
+ <name>Juneau</name>
+ <timeZone>GMT-9</timeZone>
+ </capital>
+ <capital>
+ <state>Arizona</state>
+ <name>Phoenix</name>
+ <timeZone>GMT-7</timeZone>
+ </capital>
+ <capital>
+ <state>Arkansas</state>
+ <name>Little Rock</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>California</state>
+ <name>Sacramento</name>
+ <timeZone>GMT-8</timeZone>
+ </capital>
+ <capital>
+ <state>Colorado</state>
+ <name>Denver</name>
+ <timeZone>GMT-7</timeZone>
+ </capital>
+ <capital>
+ <state>Connecticut</state>
+ <name>Hartford</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Delaware</state>
+ <name>Dover</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Florida</state>
+ <name>Tallahassee</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Georgia</state>
+ <name>Atlanta</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Hawaii</state>
+ <name>Honolulu</name>
+ <timeZone>GMT-10</timeZone>
+ </capital>
+ <capital>
+ <state>Idaho</state>
+ <name>Boise</name>
+ <timeZone>GMT-8</timeZone>
+ </capital>
+ <capital>
+ <state>Illinois</state>
+ <name>Springfield</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Indiana</state>
+ <name>Indianapolis</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Iowa</state>
+ <name>Des Moines</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Kansas</state>
+ <name>Topeka</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Kentucky</state>
+ <name>Frankfort</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Louisiana</state>
+ <name>Baton Rouge</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Maine</state>
+ <name>Augusta</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Maryland</state>
+ <name>Annapolis</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Massachusetts</state>
+ <name>Boston</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Michigan</state>
+ <name>Lansing</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Minnesota</state>
+ <name>St. Paul</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Mississippi</state>
+ <name>Jackson</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Missouri</state>
+ <name>Jefferson City</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Montana</state>
+ <name>Helena</name>
+ <timeZone>GMT-7</timeZone>
+ </capital>
+ <capital>
+ <state>Nebraska</state>
+ <name>Lincoln</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Nevada</state>
+ <name>Carson City</name>
+ <timeZone>GMT-8</timeZone>
+ </capital>
+ <capital>
+ <state>New Hampshire</state>
+ <name>Concord</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>New Jersey</state>
+ <name>Trenton</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>New Mexico</state>
+ <name>Santa Fe</name>
+ <timeZone>GMT-7</timeZone>
+ </capital>
+ <capital>
+ <state>New York</state>
+ <name>Albany</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>North Carolina</state>
+ <name>Raleigh</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>North Dakota</state>
+ <name>Bismarck</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Ohio</state>
+ <name>Columbus</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Oklahoma</state>
+ <name>Oklahoma City</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Oregon</state>
+ <name>Salem</name>
+ <timeZone>GMT-8</timeZone>
+ </capital>
+ <capital>
+ <state>Pennsylvania</state>
+ <name>Harrisburg</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Rhode Island</state>
+ <name>Providence</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>South Carolina</state>
+ <name>Columbia</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>South Dakota</state>
+ <name>Pierre</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Tennessee</state>
+ <name>Nashville</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Texas</state>
+ <name>Austin</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Utah</state>
+ <name>Salt Lake City</name>
+ <timeZone>GMT-7</timeZone>
+ </capital>
+ <capital>
+ <state>Vermont</state>
+ <name>Montpelier</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Virginia</state>
+ <name>Richmond</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Washington</state>
+ <name>Olympia</name>
+ <timeZone>GMT-8</timeZone>
+ </capital>
+ <capital>
+ <state>West Virginia</state>
+ <name>Charleston</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Wisconsin</state>
+ <name>Madison</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Wyoming</state>
+ <name>Cheyenne</name>
+ <timeZone>GMT-7</timeZone>
+ </capital>
+</capitals>
\ No newline at end of file
Property changes on: trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/capitals.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/digester-rules.dtd
===================================================================
--- trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/digester-rules.dtd (rev 0)
+++ trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/digester-rules.dtd 2007-11-28 15:08:20 UTC (rev 4312)
@@ -0,0 +1,146 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ "Digester" component of the Jakarta Commons Subproject
+ DTD for the definition of Digester rules in XML.
+ $Id: digester-rules.dtd,v 1.8 2003/03/27 18:54:45 rdonkin Exp $
+-->
+
+<!-- This document type defines an XML format for defining Digester rules.
+ Digester is a framework for pattern-matching-based parsing of XML into
+ Java objects. See http://jakarta.apache.org/commons/digester.html. -->
+
+<!ENTITY % rule-elements "bean-property-setter-rule | call-method-rule | call-param-rule |
+ factory-create-rule | object-create-rule |
+ set-properties-rule | set-property-rule | set-top-rule |
+ set-next-rule" >
+
+<!-- digester-rules is the root element. -->
+<!ELEMENT digester-rules (pattern | include | bean-property-setter-rule | call-method-rule | call-param-rule | factory-create-rule | object-create-rule | set-properties-rule | set-property-rule | set-top-rule | set-next-rule )*>
+
+
+<!-- <pattern> defines a matching pattern, or part of a matching pattern. Any
+ rule nested in a pattern element prepends its parent's to its pattern.
+ Patterns may be recursively nested.
+ Example:
+ <pattern value="foo">
+ <pattern value="bar">
+ <object-create-rule pattern="baz" classname="Fubar" />
+ </pattern>
+ </pattern>
+
+ The above sample fragment defines an ObjectCreateRule associated
+ with the pattern "foo/bar/baz".
+
+ Note that the use of pattern elements is optional; an alternative is for
+ each rule element to contain a 'pattern' attribute. -->
+<!ELEMENT pattern (pattern | include | bean-property-setter-rule | call-method-rule | call-param-rule |
+ factory-create-rule | object-create-rule |
+ set-properties-rule | set-property-rule | set-top-rule |
+ set-next-rule )*>
+<!ATTLIST pattern
+ value CDATA #REQUIRED>
+
+
+<!--
+ <include> allows one set of digester rules to be included inside
+ another. The 'path' attribute contains the URI of the document to
+ include. Inclusion behaves as if the included rules document is
+ 'macro-expanded' within the outer document.
+ Programmatically initialized rules can be included as well, via the
+ 'class' attribute. The 'class' attribute should contain the name
+ of a class that implements
+ org.apache.commons.digester.xmlrules.DigesterRulesSource.
+-->
+<!ELEMENT include EMPTY>
+<!ATTLIST include
+ path CDATA #IMPLIED
+ class CDATA #IMPLIED>
+
+
+<!-- Each 'rule' element below corresponds to a concrete subclass
+ of org.apache.framework.digester.Rule.
+ Each 'rule' element has an optional 'pattern' attribute, which
+ defines the pattern for that rule instance. If the rule element
+ is nested inside one or more <pattern> elements, those patterns
+ will be prepended to the pattern specified in the rule's 'pattern'
+ attribute. -->
+
+<!-- Bean Property Setter Rule -->
+<!ELEMENT bean-property-setter-rule EMPTY>
+<!ATTLIST bean-property-setter-rule
+ pattern CDATA #IMPLIED
+ propertyname CDATA #IMPLIED>
+
+<!-- CallMethodRule -->
+<!ELEMENT call-method-rule EMPTY>
+<!ATTLIST call-method-rule
+ pattern CDATA #IMPLIED
+ methodname CDATA #REQUIRED
+ paramcount CDATA #IMPLIED
+ paramtypes CDATA #IMPLIED>
+
+<!--
+ CallParamRule
+ attrname - set param from attribute value (cannot be combined with from-stack)
+ from-stack - set param from stack (cannot be combined with attrname)
+ -->
+<!ELEMENT call-param-rule EMPTY>
+<!ATTLIST call-param-rule
+ pattern CDATA #IMPLIED
+ paramnumber CDATA #REQUIRED
+ attrname CDATA #IMPLIED
+ from-stack CDATA #IMPLIED>
+
+<!--
+ FactoryCreateRule
+
+ ignore-exceptions - if this attribute is (ignore case) 'true' then any exceptions
+ thrown by the object create rule will be ignore.
+ This will allow processing to continue.
+ -->
+<!ELEMENT factory-create-rule EMPTY>
+<!ATTLIST factory-create-rule
+ pattern CDATA #IMPLIED
+ classname CDATA #REQUIRED
+ attrname CDATA #IMPLIED
+ ignore-exceptions CDATA #IMPLIED>
+
+<!-- ObjectCreateRule -->
+<!ELEMENT object-create-rule EMPTY>
+<!ATTLIST object-create-rule
+ pattern CDATA #IMPLIED
+ classname CDATA #REQUIRED
+ attrname CDATA #IMPLIED>
+
+<!-- SetPropertiesRule -->
+<!ELEMENT set-properties-rule (alias)*>
+<!ATTLIST factory-create-rule
+ pattern CDATA #IMPLIED>
+
+<!-- An alias is a custom attribute->property name mapping -->
+<!ELEMENT alias EMPTY>
+<!ATTLIST alias
+ attr-name CDATA #REQUIRED
+ prop-name CDATA #IMPLIED>
+
+<!-- SetPropertyRule -->
+<!ELEMENT set-property-rule EMPTY>
+<!ATTLIST set-property-rule
+ pattern CDATA #IMPLIED
+ name CDATA #IMPLIED
+ value CDATA #IMPLIED>
+
+<!-- SetTopRule -->
+<!ELEMENT set-top-rule EMPTY>
+<!ATTLIST set-top-rule
+ pattern CDATA #IMPLIED
+ methodname CDATA #REQUIRED
+ paramtype CDATA #IMPLIED>
+
+<!-- SetNextRule -->
+<!ELEMENT set-next-rule EMPTY>
+<!ATTLIST set-next-rule
+ pattern CDATA #IMPLIED
+ methodname CDATA #REQUIRED
+ paramtype CDATA #IMPLIED>
Property changes on: trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/digester-rules.dtd
___________________________________________________________________
Name: svn:executable
+ *
17 years, 1 month
JBoss Rich Faces SVN: r4311 - management/design/orderingList.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2007-11-28 10:03:57 -0500 (Wed, 28 Nov 2007)
New Revision: 4311
Modified:
management/design/orderingList/FuncSpec - orderingList.doc
Log:
Modified: management/design/orderingList/FuncSpec - orderingList.doc
===================================================================
(Binary files differ)
17 years, 1 month
JBoss Rich Faces SVN: r4310 - trunk/docs/userguide/en/src/main/resources/images.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2007-11-28 09:48:59 -0500 (Wed, 28 Nov 2007)
New Revision: 4310
Added:
trunk/docs/userguide/en/src/main/resources/images/scrollableDataTable.png
Log:
RF-391 - scrollableDataTable. Add screenshot for example.
Added: trunk/docs/userguide/en/src/main/resources/images/scrollableDataTable.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/scrollableDataTable.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 1 month