JBoss Rich Faces SVN: r15225 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-08-19 14:54:02 -0400 (Wed, 19 Aug 2009)
New Revision: 15225
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_dropSupport.xml
Log:
RF-7690: rich_dropSupport component description review
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_dropSupport.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_dropSupport.xml 2009-08-19 16:40:58 UTC (rev 15224)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_dropSupport.xml 2009-08-19 18:54:02 UTC (rev 15225)
@@ -1,73 +1,56 @@
<section role="NotInToc" id="rich_dropSupport">
- <title>
- <
- rich:dropSupport
- >
- <emphasis role="since">
- <superscript> available since <emphasis role="version">3.0.0</emphasis>
- </superscript>
- </emphasis>
- </title>
- <section>
- <title>Description</title>
- <para>This component transforms a parent component into a target zone for
- drag-and-drop operations. When a draggable element is moved and dropped onto
- the area of the parent component, Ajax request processing for this event is
- started.</para>
+ <title> < rich:dropSupport > <emphasis role="since">
+ <superscript> available since <emphasis role="version">3.0.0</emphasis>
+ </superscript>
+ </emphasis>
+ </title>
+ <section>
+ <title>Description</title>
+ <para>This component transforms a parent component into a target zone for drag-and-drop operations. When a draggable element is moved and dropped onto the area of the parent component, Ajax request processing for this event is
+ started.</para>
- <figure>
- <title>
- <emphasis role="bold">
- <property><rich:dropSupport></property>
- </emphasis> component</title>
+ <figure>
+ <title>
+ <emphasis role="bold">
+ <property><rich:dropSupport></property>
+ </emphasis> component</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/dropSupport_init.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- <section>
- <title>Key Features</title>
- <itemizedlist>
- <listitem>
- <para>
- Encodes all necessary JavaScript to perform drop actions
- </para>
- </listitem>
-
- <listitem>
- <para>
- Can be used within any component type that provides the required properties for drop operations
- </para>
- </listitem>
-
- <listitem>
- <para>
- Built-in Ajax processing
- </para>
- </listitem>
-
- <listitem>
- <para>
- Supports drag-and-drop between different forms
- </para>
- </listitem>
- </itemizedlist>
- </section>
- <section>
- <title>Details of Usage</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/dropSupport_init.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section>
+ <title>Key Features</title>
+ <itemizedlist>
+ <listitem>
+ <para> Encodes all necessary JavaScript to perform drop actions </para>
+ </listitem>
- <para>The key attribute for <emphasis role="bold">
- <property><rich:dropSupport></property>
- </emphasis> is <emphasis>
- <property>"acceptedTypes"</property>
- </emphasis>.
- It defines, which types of dragable items (zones) could be accepted by the current drop zone. Check the example below:
- </para>
- <programlisting role="XML">...
-<rich:panel styleClass="dropTargetPanel">
+ <listitem>
+ <para> Can be used within any component type that provides the required properties for drop operations </para>
+ </listitem>
+
+ <listitem>
+ <para> Built-in Ajax processing </para>
+ </listitem>
+
+ <listitem>
+ <para> Supports drag-and-drop between different forms </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+ <section>
+ <title>Details of Usage</title>
+
+ <para>The key attribute for <emphasis role="bold">
+ <property><rich:dropSupport></property>
+ </emphasis> is <emphasis>
+ <property>"acceptedTypes"</property>
+ </emphasis>. It defines, which types of dragable items (zones) could be accepted by the current drop zone. Check the example below: </para>
+ <programlisting role="XML"><rich:panel styleClass="dropTargetPanel">
<f:facet name="header">
<h:outputText value="PHP Frameworks" />
</f:facet>
@@ -75,37 +58,28 @@
<rich:dropSupport id="php" acceptedTypes="PHP" dropValue="PHP" dropListener="#{eventBean.processDrop}" reRender="phptable, src">
</rich:dropSupport>
...
-</rich:panel>
-...
-</programlisting>
- <para>and here is what happens on the page:</para>
- <figure>
- <title>Drop zone accepts dragable item with "PHP" type only</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/dropSupport1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Using the <emphasis>
- <property>"typeMapping"</property>
- </emphasis> attribute. Previous example shows that a drop zone could accept a dragable item or not.
- Special markers, which are placed at <emphasis role="bold">
- <property><rich:dragIndicator></property>
- </emphasis>, inform user about drop zone’s possible behaviors:
- "checkmark" appears if drop is accepted and "No" symbol if it is not.
- Moreover, some extra information (e.g. text message) could be put into the Indicator to reinforce the signal about drop zone’s behavior or pass some other additional sense.
- This reinforcement could be programmed and attributed to drop zone via <emphasis>
- <property>"typeMapping"</property>
- </emphasis> attribute using JSON syntax.
- The type of dragged zone (dragType) should be passed as "key" and name of <emphasis role="bold">
- <property><rich:dndParam></property>
- </emphasis>
- that gives needed message to Indicator as "value":
- </para>
- <programlisting role="XML">...
-<rich:panel styleClass="dropTargetPanel">
+</rich:panel></programlisting>
+ <para>and here is what happens on the page:</para>
+ <figure>
+ <title>Drop zone accepts dragable item with "PHP" type only</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/dropSupport1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Using the <emphasis>
+ <property>"typeMapping"</property>
+ </emphasis> attribute. Previous example shows that a drop zone could accept a dragable item or not. Special markers, which are placed at <emphasis role="bold">
+ <property><rich:dragIndicator></property>
+ </emphasis>, inform user about drop zone’s possible behaviors: "checkmark" appears if drop is accepted and "No" symbol if it is not. Moreover, some extra information (e.g. text message) could be put into the Indicator to
+ reinforce the signal about drop zone’s behavior or pass some other additional sense. This reinforcement could be programmed and attributed to drop zone via <emphasis>
+ <property>"typeMapping"</property>
+ </emphasis> attribute using JSON syntax. The type of dragged zone (dragType) should be passed as "key" and name of <emphasis role="bold">
+ <property><rich:dndParam></property>
+ </emphasis> that gives needed message to Indicator as "value": </para>
+ <programlisting role="XML"><rich:panel styleClass="dropTargetPanel">
<f:facet name="header">
<h:outputText value="PHP Frameworks" />
</f:facet>
@@ -116,49 +90,28 @@
<rich:dndParam name="text_for_rejecting" value="Drop is not accepted!" />
</rich:dropSupport>
...
-</rich:panel>
-...
-</programlisting>
- <para>What happens on the page:</para>
- <figure>
- <title>
- <emphasis>
- <property>"typeMapping"</property>
- </emphasis> helps to add some extra information to <emphasis role="bold">
- <property><rich:dragIndicator></property>
- </emphasis>
- </title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/dropSupport1a.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>In examples above dropping a dragable item triggers the use a parameter in the event processing; Ajax request is sent and dropListener defined for the component is called.
- </para>
+</rich:panel></programlisting>
+ <para>What happens on the page:</para>
+ <figure>
+ <title>
+ <emphasis>
+ <property>"typeMapping"</property>
+ </emphasis> helps to add some extra information to <emphasis role="bold">
+ <property><rich:dragIndicator></property>
+ </emphasis>
+ </title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/dropSupport1a.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <para>
- Here is an example of moving records between tables. The
- example describes all the pieces for drag-and-drop. (To get
- extra information on these components, read the sections for
- these components.)
- </para>
+ <para>
+ Here is an example of moving records between tables. The example describes all the pieces for drag-and-drop.
+ As draggable items, this table contains a list of such items designated as being of type <code>"text"</code> : </para>
- <para>
- As draggable items, this table contains a list of such items
- designated as being of type
- <code>"text"</code>
- :
- </para>
-
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
-
- <programlisting role="XML">...
-<rich:dataTable value="#{capitalsBean.capitals}" var="caps">
+ <programlisting role="XML"><rich:dataTable value="#{capitalsBean.capitals}" var="caps">
<f:facet name="caption">Capitals List</f:facet>
<h:column>
<a4j:outputPanel>
@@ -168,235 +121,159 @@
<h:outputText value="#{caps.name}"/>
</a4j:outputPanel>
</h:column>
-</rich:dataTable>
-...
-</programlisting>
+</rich:dataTable></programlisting>
- <para>
- As a drop zone, this panel will accept draggable items of
- type
- <code>text</code>
- and then rerender an element with the ID of
- <code>box</code>
- :
- </para>
+ <para> As a drop zone, this panel will accept draggable items of type <code>text</code> and then rerender an element with the ID of <code>box</code> : </para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
+
- <programlisting role="XML">...
-<rich:panel style="width:100px;height:100px;">
+ <programlisting role="XML"><rich:panel style="width:100px;height:100px;">
<f:facet name="header">Drop Zone</f:facet>
<rich:dropSupport acceptedTypes="text" reRender="box"
dropListener="#{capitalsBean.addCapital2}"/>
-</rich:panel>
-...
-</programlisting>
+</rich:panel></programlisting>
- <para>
- As a part of the page that can be updated in a partial page
- update, this table has an ID of
- <code>box</code>
- :
- </para>
+ <para> As a part of the page that can be updated in a partial page update, this table has an ID of <code>box</code> : </para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML">...
-<rich:dataTable value="#{capitalsBean.capitals2}" var="cap2" id="box">
+
+ <programlisting role="XML"><rich:dataTable value="#{capitalsBean.capitals2}" var="cap2" id="box">
<f:facet name="caption">Capitals chosen</f:facet>
<h:column>
<h:outputText value="#{cap2.name}"/>
</h:column>
-</rich:dataTable>
-...</programlisting>
+</rich:dataTable></programlisting>
- <para>
- And finally, as a listener, this listener will implement the
- dropped element:
- </para>
-
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="JAVA">...
-public void addCapital2(DropEvent event) {
+ <para> And finally, as a listener, this listener will implement the dropped element: </para>
+
+ <programlisting role="JAVA">public void addCapital2(DropEvent event) {
FacesContext context = FacesContext.getCurrentInstance();
Capital cap = new Capital();
cap.setName(context.getExternalContext().getRequestParameterMap().get("name").toString());
capitals2.add(cap);
-}
-...
-</programlisting>
+}</programlisting>
- <para>
- Here is the result after a few drops of items from the first
- table:
- </para>
+ <para> Here is the result after a few drops of items from the first table: </para>
- <figure>
- <title>Results of drop actions</title>
+ <figure>
+ <title>Results of drop actions</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/dropSupport2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/dropSupport2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <para>
- In this example, items are dragged element-by-element from
- the rendered list in the first table and dropped on a panel
- in the middle. After each drop, a drop event is generated
- and a common Ajax request is performed that renders results
- in the third table.
- </para>
+ <para> In this example, items are dragged element-by-element from the rendered list in the first table and dropped on a panel in the middle. After each drop, a drop event is generated and a common Ajax request is performed that
+ renders results in the third table. </para>
- <para>
- As with every Ajax action component,
- <emphasis role="bold">
- <property><rich:dropSupport></property>
- </emphasis>
- has all the common attributes (
- <emphasis>
- <property>"timeout"</property>
- ,
- </emphasis>
- <emphasis>
- <property>"limitToList"</property>
- ,
- </emphasis>
- <emphasis>
- <property>"reRender"</property>
- ,
- </emphasis>
- etc.) for Ajax request customization.
- </para>
+ <para> As with every Ajax action component, <emphasis role="bold">
+ <property><rich:dropSupport></property>
+ </emphasis> has all the common attributes ( <emphasis>
+ <property>"timeout"</property> , </emphasis>
+ <emphasis>
+ <property>"limitToList"</property> , </emphasis>
+ <emphasis>
+ <property>"reRender"</property> , </emphasis> etc.) for Ajax request customization. </para>
- <para>
- Finally, the component has the following extra attributes
- for event processing on the client:
- </para>
+ <para> Finally, the component has the following extra attributes for event processing on the client: </para>
- <itemizedlist>
- <listitem>
- <para>
- <emphasis>
- <property>"ondragenter"</property>
- </emphasis>
- </para>
- </listitem>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <emphasis>
+ <property>"ondragenter"</property>
+ </emphasis>
+ </para>
+ </listitem>
- <listitem>
- <para>
- <emphasis>
- <property>"ondragexit"</property>
- </emphasis>
- </para>
- </listitem>
+ <listitem>
+ <para>
+ <emphasis>
+ <property>"ondragexit"</property>
+ </emphasis>
+ </para>
+ </listitem>
- <listitem>
- <para>
- <emphasis>
- <property>"ondrop"</property>
- </emphasis>
- </para>
- </listitem>
+ <listitem>
+ <para>
+ <emphasis>
+ <property>"ondrop"</property>
+ </emphasis>
+ </para>
+ </listitem>
- <listitem>
- <para>
- <emphasis>
- <property>"ondropend"</property>
- </emphasis>
- </para>
- </listitem>
- </itemizedlist>
+ <listitem>
+ <para>
+ <emphasis>
+ <property>"ondropend"</property>
+ </emphasis>
+ </para>
+ </listitem>
+ </itemizedlist>
- <para>
- Developers can use their own custom JavaScript functions to
- handle these events.
- </para>
- <para>
- Information about the
- <emphasis>
- <property>"process"</property>
- </emphasis>
- attribute usage you can find in the
- <link linkend="process"> "Decide what to process" </link> guide section
- .
- </para>
- </section>
- <section>
- <title>Reference Data</title>
- <para>
- <ulink url="&tlddoc;rich/dropSupport.html">Table of
- <rich:dropSupport>
- attributes</ulink>.
- </para>
- <table>
- <title>Component Identification Parameters</title>
+ <para> Developers can use their own custom JavaScript functions to handle these events. </para>
+ <para> Information about the <emphasis>
+ <property>"process"</property>
+ </emphasis> attribute usage you can find in the <link linkend="process"> "Decide what to process" </link> guide section . </para>
+ </section>
+ <section>
+ <title>Reference Data</title>
+ <para>
+ <ulink url="&tlddoc;rich/dropSupport.html">Table of <rich:dropSupport> attributes</ulink>. </para>
+ <table>
+ <title>Component Identification Parameters</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Name</entry>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Name</entry>
- <entry>Value</entry>
- </row>
- </thead>
+ <entry>Value</entry>
+ </row>
+ </thead>
- <tbody>
- <row>
- <entry>component-type</entry>
+ <tbody>
+ <row>
+ <entry>component-type</entry>
- <entry>org.richfaces.DropSupport</entry>
- </row>
+ <entry>org.richfaces.DropSupport</entry>
+ </row>
- <row>
- <entry>component-class</entry>
+ <row>
+ <entry>component-class</entry>
- <entry>
- org.richfaces.component.html.HtmlDropSupport
- </entry>
- </row>
+ <entry> org.richfaces.component.html.HtmlDropSupport </entry>
+ </row>
- <row>
- <entry>component-family</entry>
+ <row>
+ <entry>component-family</entry>
- <entry>org.richfaces.DropSupport</entry>
- </row>
+ <entry>org.richfaces.DropSupport</entry>
+ </row>
- <row>
- <entry>renderer-type</entry>
+ <row>
+ <entry>renderer-type</entry>
- <entry>org.richfaces.DropSupportRenderer</entry>
- </row>
+ <entry>org.richfaces.DropSupportRenderer</entry>
+ </row>
- <row>
- <entry>tag-class</entry>
+ <row>
+ <entry>tag-class</entry>
- <entry>org.richfaces.taglib.DropSupportTag</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- </section>
- <section>
- <title>Relevant Resources Links</title>
- <para>
- <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/dragSupport.jsf?c=dro...">
- On the component Live Demo page
- </ulink>
- you can see the example of
- <emphasis role="bold">
- <property><rich:dropSupport></property>
- </emphasis>
- usage and sources for the given example.
- </para>
- </section>
-</section>
\ No newline at end of file
+ <entry>org.richfaces.taglib.DropSupportTag</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+ <section>
+ <title>Relevant Resources Links</title>
+ <para>
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/dragSupport.jsf?c=dro..."> On the component Live Demo page </ulink> you can see the example of <emphasis role="bold">
+ <property><rich:dropSupport></property>
+ </emphasis> usage and sources for the given example. </para>
+ </section>
+</section>
15 years, 4 months
JBoss Rich Faces SVN: r15224 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-08-19 12:40:58 -0400 (Wed, 19 Aug 2009)
New Revision: 15224
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_dndParam.xml
Log:
RF-7691: rich_dndParam component description review
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_dndParam.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_dndParam.xml 2009-08-19 15:50:10 UTC (rev 15223)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_dndParam.xml 2009-08-19 16:40:58 UTC (rev 15224)
@@ -1,48 +1,35 @@
<section role="NotInToc" id="rich_dndParam">
- <title>
- <
- rich:dndParam
- >
- <emphasis role="since">
- <superscript> available since <emphasis role="version">3.0.0</emphasis>
- </superscript>
- </emphasis>
- </title>
- <section>
- <title>Description</title>
- <para>This component is used for passing parameters during drag-and-drop
- operations.</para>
- </section>
- <section>
- <title>Details of Usage</title>
+ <title>
+ <rich:dndParam> <emphasis role="since"><superscript> available since <emphasis role="version">3.0.0</emphasis></superscript></emphasis>
+ </title>
+ <section>
+ <title>Description</title>
+ <para>
+ The component is used for passing parameters during drag-and-drop operations.
+ </para>
+ </section>
+ <section>
+ <title>Details of Usage</title>
+ <para>
+ The <emphasis role="bold"><property><rich:dndParam></property></emphasis> is used during drag-and-drop operations for passing parameters to an indicator.
+ To use the component it is necessary to set <property>"type"</property> attribute that specifies what kind of functionality the component will provide: dragging or dropping.
+ Attributes <property>"name"</property> and <property>"value"</property> are also should be defiend.
+ Instead of the <property>"value"</property> attribute definition it is possible to define value of the component using nested contents.
+ </para>
+ <para>Variants of usage:</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Passing parameters for indicator's drag icon.
+ The <emphasis role="bold"><property><rich:dndParam></property></emphasis> can define the indicator's drag icon that will be used during dragging instead of indicator's default icon.
+ For example, a drag icon may be represented with a minimized image of a dragged element.
+ In this case <code>type="drag"</code>:
+ </para>
+ </listitem>
+ </itemizedlist>
- <para>
- <property>dndParam</property> is used during drag-and-drop
- operations to pass parameters to an indicator. At first, a parameter type
- is defined with the type attribute (to specify parameter functionality),
- then a parameter name could be defined with the name and value attribute.
- Although, it's possible to use nested content defined inside
- <property>dndParam</property> for value definition, instead of the
- attribute.</para>
-
- <para>Variants of usage:</para>
-
- <itemizedlist>
- <listitem>
- <para>Parameters passing for a drag icon when an indicator is in
- drag.</para>
- </listitem>
- </itemizedlist>
-
- <para>In this case, <property>dndParam</property> is of a drag type
- and is defined in the following way:</para>
-
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML">...
-<rich:dragSupport ... >
+ <programlisting role="XML">...
+ <rich:dragSupport ... >
<rich:dndParam type="drag" name="dragging">
<h:graphicImage value="/img/product1_small.png"/>
</rich:dndParam>
@@ -50,25 +37,17 @@
</rich:dragSupport>
...
</programlisting>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ Passing parameters for indicator's informational part.
+ The <emphasis role="bold"><property><rich:dndParam></property></emphasis> can transmit it's value into indicator's.
+ In this case <code>type="drag"</code>:
+ </para>
+ </listitem>
+ </itemizedlist>
- <para>Here <property>dndParam</property> defines an icon that is used by
- an indicator when a drag is on the place of a default icon (e.g. a
- minimized image of a draggable element)</para>
-
- <itemizedlist>
- <listitem>
- <para>Parameters passing for an indicator informational part during
- a drag.</para>
- </listitem>
- </itemizedlist>
-
- <para>In this case <property>dndParam</property> is of a drag type
- and is defined in the following way:</para>
-
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
<programlisting role="XML">...
<rich:dragSupport ... >
<rich:dndParam type="drag" name="label" value="#{msg.subj}"/>
@@ -76,26 +55,16 @@
</rich:dragSupport>
...
</programlisting>
-
- <para>The parameter is transmitted into an indicator for usage in an
- informational part of the <property>dragIndicator</property> component (inside an indicator a
- call to {label} happens)</para>
-
<itemizedlist>
- <listitem>
- <para>Parameters passing happens when dragged content is brought
- onto some zone with <property>dropSupport</property>
- </para>
- </listitem>
+ <listitem>
+ <para>
+ Passing parameters to a component that supports drop after drop happens.
+ The <emphasis role="bold"><property><rich:dndParam></property></emphasis> can pass icons into an indicator, if dragged content of a comp type is above the given drop zone that processes it on the next drop event.
+ In this case <code>type="drop"</code>:
+ </para>
+ </listitem>
</itemizedlist>
- <para>In this case <property>dndParam</property> is of a drop type and is
- defined in the following way:</para>
-
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
<programlisting role="XML">...
<rich:dropSupport ... >
<rich:dndParam type="drop" name="comp" >
@@ -105,50 +74,38 @@
</rich:dropSupport >
...
</programlisting>
+</section>
+ <section>
+ <title>Reference Data</title>
+ <para>
+ <ulink url="&tlddoc;rich/dndParam.html">Table of <rich:dndParam> attributes</ulink>.
+ </para>
- <para>Here, <property>dndParam</property> passes icons into an indicator,
- if dragged content of a comp type is above the given drop zone that
- processes it on the next drop event.</para>
- </section>
- <section>
- <title>Reference Data</title>
- <para>
- <ulink url="&tlddoc;rich/dndParam.html">Table of
- <rich:dndParam>
- attributes</ulink>.
- </para>
- <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.DndParam</entry>
- </row>
-
- <row>
- <entry>component-class</entry>
-
- <entry>org.richfaces.component.html.HtmlDndParam</entry>
- </row>
-
- <row>
- <entry>tag-class</entry>
-
- <entry>org.richfaces.taglib.DndParamTag</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- </section>
+ <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.DndParam</entry>
+ </row>
+ <row>
+ <entry>component-class</entry>
+ <entry>org.richfaces.component.html.HtmlDndParam</entry>
+ </row>
+ <row>
+ <entry>tag-class</entry>
+ <entry>org.richfaces.taglib.DndParamTag</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
</section>
\ No newline at end of file
15 years, 4 months
JBoss Rich Faces SVN: r15223 - in root: ui/trunk/components/core/src/main/java/org/richfaces/component and 5 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2009-08-19 11:50:10 -0400 (Wed, 19 Aug 2009)
New Revision: 15223
Added:
root/examples/trunk/components/core-demo/src/main/webapp/log.xhtml
root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlAjaxLog.java
root/ui/trunk/components/core/src/main/resources/META-INF/resources/
root/ui/trunk/components/core/src/main/resources/META-INF/resources/richfaces.css/
root/ui/trunk/components/core/src/main/resources/META-INF/resources/richfaces.css/4_0_0.css
Modified:
root/ui/trunk/components/core/src/main/java/org/richfaces/component/UIAjaxLog.java
root/ui/trunk/components/core/src/main/resources/META-INF/a4j.taglib.xml
root/ui/trunk/components/core/src/main/resources/META-INF/faces-config.xml
root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/renderkit/html/log.template.xml
Log:
a4j:log initial integration into 4.0
Added: root/examples/trunk/components/core-demo/src/main/webapp/log.xhtml
===================================================================
--- root/examples/trunk/components/core-demo/src/main/webapp/log.xhtml (rev 0)
+++ root/examples/trunk/components/core-demo/src/main/webapp/log.xhtml 2009-08-19 15:50:10 UTC (rev 15223)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:a4j="http://richfaces.org/a4j">
+<f:view>
+ <h:head>
+ <style>
+ <!--
+ .log{
+ background: gray;
+ }
+ -->
+ </style>
+ </h:head>
+ <h:body>
+ <input id="input" type="text" />
+ <select id="select" class="rich-log-element">
+ <option value="debug">debug</option>
+ <option value="info">info</option>
+ <option value="warn">warn</option>
+ <option value="error">error</option>
+ </select>
+ <input type="button" value="Log" onclick="eval('RichFaces.log.' + jQuery('#select').val() + '(\'' + jQuery('#input').val() + '\')')"/>
+ <a4j:log level="debug" style="border: solid red 1px" styleClass="log"/>
+ </h:body>
+</f:view>
+</html>
\ No newline at end of file
Modified: root/ui/trunk/components/core/src/main/java/org/richfaces/component/UIAjaxLog.java
===================================================================
--- root/ui/trunk/components/core/src/main/java/org/richfaces/component/UIAjaxLog.java 2009-08-19 15:09:57 UTC (rev 15222)
+++ root/ui/trunk/components/core/src/main/java/org/richfaces/component/UIAjaxLog.java 2009-08-19 15:50:10 UTC (rev 15223)
@@ -21,12 +21,19 @@
package org.richfaces.component;
+import javax.faces.application.ResourceDependencies;
+import javax.faces.application.ResourceDependency;
import javax.faces.component.UIComponentBase;
/**
* @author Nick Belaevski
*
*/
+@ResourceDependencies(value = {
+ @ResourceDependency(name = "jquery.js"),
+ @ResourceDependency(name = "richfaces.js"),
+ @ResourceDependency(name = "richfaces.css")
+ })
public class UIAjaxLog extends UIComponentBase {
public static final String COMPONENT_FAMILY = "org.richfaces.AjaxLog";
Added: root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlAjaxLog.java
===================================================================
--- root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlAjaxLog.java (rev 0)
+++ root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlAjaxLog.java 2009-08-19 15:50:10 UTC (rev 15223)
@@ -0,0 +1,66 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.component.html;
+
+/**
+ * @author Konstantin Mishin
+ *
+ */
+
+import org.richfaces.component.UIAjaxLog;
+
+public class HtmlAjaxLog extends UIAjaxLog {
+
+ public final static String COMPONENT_TYPE = "org.richfaces.AjaxLog";
+
+ private static enum PropertyKeys {
+ style, level, styleClass
+ }
+
+ public HtmlAjaxLog(){
+ setRendererType("org.richfaces.AjaxLogRenderer");
+ }
+
+ public String getStyle() {
+ return (String) getStateHelper().eval(PropertyKeys.style, "");
+ }
+
+ public void setStyle(String style) {
+ getStateHelper().put(PropertyKeys.style, style);
+ }
+
+ public String getLevel() {
+ return (String) getStateHelper().eval(PropertyKeys.level, "");
+ }
+
+ public void setLevel(String level) {
+ getStateHelper().put(PropertyKeys.level, level);
+ }
+
+ public String getStyleClass() {
+ return (String) getStateHelper().eval(PropertyKeys.styleClass, "");
+ }
+
+ public void setStyleClass(String styleClass) {
+ getStateHelper().put(PropertyKeys.styleClass, styleClass);
+ }
+}
Modified: root/ui/trunk/components/core/src/main/resources/META-INF/a4j.taglib.xml
===================================================================
--- root/ui/trunk/components/core/src/main/resources/META-INF/a4j.taglib.xml 2009-08-19 15:09:57 UTC (rev 15222)
+++ root/ui/trunk/components/core/src/main/resources/META-INF/a4j.taglib.xml 2009-08-19 15:50:10 UTC (rev 15223)
@@ -33,5 +33,12 @@
<handler-class>org.richfaces.taglib.html.facelets.MediaOutputHandler</handler-class>
</component>
</tag>
+ <tag>
+ <tag-name>log</tag-name>
+ <component>
+ <component-type>org.richfaces.AjaxLog</component-type>
+ <renderer-type>org.richfaces.AjaxLogRenderer</renderer-type>
+ </component>
+ </tag>
</facelet-taglib>
Modified: root/ui/trunk/components/core/src/main/resources/META-INF/faces-config.xml
===================================================================
--- root/ui/trunk/components/core/src/main/resources/META-INF/faces-config.xml 2009-08-19 15:09:57 UTC (rev 15222)
+++ root/ui/trunk/components/core/src/main/resources/META-INF/faces-config.xml 2009-08-19 15:50:10 UTC (rev 15223)
@@ -29,6 +29,11 @@
<component-class>org.richfaces.component.html.HtmlOutputPanel</component-class>
</component>
+ <component>
+ <component-type>org.richfaces.AjaxLog</component-type>
+ <component-class>org.richfaces.component.html.HtmlAjaxLog</component-class>
+ </component>
+
<render-kit>
<render-kit-id>HTML_BASIC</render-kit-id>
<renderer>
@@ -51,5 +56,10 @@
<renderer-type>org.richfaces.OutputPanelRenderer</renderer-type>
<renderer-class>org.richfaces.renderkit.html.AjaxOutputPanelRenderer</renderer-class>
</renderer>
+ <renderer>
+ <component-family>org.richfaces.AjaxLog</component-family>
+ <renderer-type>org.richfaces.AjaxLogRenderer</renderer-type>
+ <renderer-class>org.richfaces.renderkit.html.AjaxLogRenderer</renderer-class>
+ </renderer>
</render-kit>
</faces-config>
\ No newline at end of file
Added: root/ui/trunk/components/core/src/main/resources/META-INF/resources/richfaces.css/4_0_0.css
===================================================================
--- root/ui/trunk/components/core/src/main/resources/META-INF/resources/richfaces.css/4_0_0.css (rev 0)
+++ root/ui/trunk/components/core/src/main/resources/META-INF/resources/richfaces.css/4_0_0.css 2009-08-19 15:50:10 UTC (rev 15223)
@@ -0,0 +1,5 @@
+.rich-log{
+ height: 300px;
+ overflow: auto;
+ width: 100%;
+}
Modified: root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/renderkit/html/log.template.xml
===================================================================
--- root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/renderkit/html/log.template.xml 2009-08-19 15:09:57 UTC (rev 15222)
+++ root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/renderkit/html/log.template.xml 2009-08-19 15:50:10 UTC (rev 15223)
@@ -2,11 +2,11 @@
<cdk:root xmlns="http://richfaces.org/xhtml-el" xmlns:cdk="http://richfaces.org/cdk"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- class="org.richfaces.renderkit.html.LogRenderer"
- superclass="org.richfaces.renderkit.AjaxComponentRendererBase"
+ class="org.richfaces.renderkit.html.AjaxLogRenderer"
+ superclass="javax.faces.render.Renderer"
componentclass="org.richfaces.component.UIAjaxLog">
- <!-- f:clientid var="clientId"/ -->
+ <!-- f:clientid var="clientId"/ >
<cdk:choose>
<cdk:when test="#{component.isPopup()}">
<script id="#{clientId}" type="text/javascript">
@@ -28,5 +28,11 @@
</script>
</div>
</cdk:otherwise>
- </cdk:choose>
+ </cdk:choose-->
+ <div id="richfaces.log" class="rich-log #{component.attributes['styleClass']}"
+ cdk:passThroughWithExclusions="class">
+ <script type="text/javascript">
+ RichFaces.log.setLevel("#{component.attributes['level']}");
+ </script>
+ </div>
</cdk:root>
15 years, 4 months
JBoss Rich Faces SVN: r15222 - branches/community/3.3.X/docs/userguide/en/src/main/resources/images.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2009-08-19 11:09:57 -0400 (Wed, 19 Aug 2009)
New Revision: 15222
Removed:
branches/community/3.3.X/docs/userguide/en/src/main/resources/images/dataOrderedList_cn.png
branches/community/3.3.X/docs/userguide/en/src/main/resources/images/dataOrderedList_oc.png
branches/community/3.3.X/docs/userguide/en/src/main/resources/images/dataOrderedList_pc.png
Log:
https://jira.jboss.org/jira/browse/RF-7684 - deleting unnecessary images;
Deleted: branches/community/3.3.X/docs/userguide/en/src/main/resources/images/dataOrderedList_cn.png
===================================================================
(Binary files differ)
Deleted: branches/community/3.3.X/docs/userguide/en/src/main/resources/images/dataOrderedList_oc.png
===================================================================
(Binary files differ)
Deleted: branches/community/3.3.X/docs/userguide/en/src/main/resources/images/dataOrderedList_pc.png
===================================================================
(Binary files differ)
15 years, 4 months
JBoss Rich Faces SVN: r15221 - in root/examples/trunk/richfaces-demo/src/main: java and 21 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2009-08-19 10:10:45 -0400 (Wed, 19 Aug 2009)
New Revision: 15221
Added:
root/examples/trunk/richfaces-demo/src/main/java/
root/examples/trunk/richfaces-demo/src/main/java/org/
root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/
root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/
root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/function/
root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/function/FunctionBean.java
root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/mediaOutput/
root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/mediaOutput/MediaBean.java
root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/mediaOutput/MediaData.java
root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/push/
root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/push/Choice.java
root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/push/ChoicesBean.java
root/examples/trunk/richfaces-demo/src/main/resources/
root/examples/trunk/richfaces-demo/src/main/resources/org/
root/examples/trunk/richfaces-demo/src/main/resources/org/richfaces/
root/examples/trunk/richfaces-demo/src/main/resources/org/richfaces/demo/
root/examples/trunk/richfaces-demo/src/main/resources/org/richfaces/demo/mediaOutput/
root/examples/trunk/richfaces-demo/src/main/resources/org/richfaces/demo/mediaOutput/text.swf
root/examples/trunk/richfaces-demo/src/main/webapp/CSS/
root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/
root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/fonts-context.css
root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/fonts.css
root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/grids-context.css
root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/grids.css
root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/layout.css
root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/page.css
root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/reset-context.css
root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/reset-fonts-grids.css
root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/reset.css
root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/simple.css
root/examples/trunk/richfaces-demo/src/main/webapp/images/
root/examples/trunk/richfaces-demo/src/main/webapp/images/richfaces-banner.png
root/examples/trunk/richfaces-demo/src/main/webapp/index.jsp
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/jsFunction.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/jsFunction/
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/jsFunction/usage.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/mediaOutput/
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/mediaOutput/flashUsage.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/mediaOutput/imgUsage.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/push.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/push/
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/push/usage.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/templates/
root/examples/trunk/richfaces-demo/src/main/webapp/templates/includes/
root/examples/trunk/richfaces-demo/src/main/webapp/templates/includes/navigation.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/templates/main.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/welcome.xhtml
Log:
components gallery cases drafts
Added: root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/function/FunctionBean.java
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/function/FunctionBean.java (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/function/FunctionBean.java 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,25 @@
+package org.richfaces.demo.function;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.RequestScoped;
+import javax.faces.context.FacesContext;
+
+@ManagedBean(name = "functionBean")
+@RequestScoped
+public class FunctionBean {
+ private String text;
+
+ public void processHover() {
+ setText(FacesContext.getCurrentInstance().getExternalContext()
+ .getRequestParameterMap().get("name"));
+ }
+
+ public String getText() {
+ return text;
+ }
+
+ public void setText(String text) {
+ this.text = text;
+ }
+
+}
Added: root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/mediaOutput/MediaBean.java
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/mediaOutput/MediaBean.java (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/mediaOutput/MediaBean.java 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,76 @@
+package org.richfaces.demo.mediaOutput;
+
+import java.awt.Color;
+import java.awt.Font;
+import java.awt.Graphics2D;
+import java.awt.geom.AffineTransform;
+import java.awt.image.BufferedImage;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+import javax.imageio.ImageIO;
+@ManagedBean(name="mediaBean")
+@SessionScoped
+public class MediaBean {
+
+ public void paint(OutputStream out, Object data) throws IOException{
+ if (data instanceof MediaData) {
+ MediaData paintData = (MediaData) data;
+ BufferedImage img = new BufferedImage(paintData.width, paintData.height, BufferedImage.TYPE_INT_RGB);
+ Graphics2D g2d = img.createGraphics();
+
+ g2d.setColor(Color.WHITE);
+ g2d.fillRect(0, 0, 300, 120);
+
+ int testLenght = paintData.text.length();
+ int fontSize = testLenght < 8? 40 : 40 - (testLenght - 8);
+ if (fontSize < 12)fontSize = 12;
+ Font font = new Font("Serif", Font.HANGING_BASELINE, fontSize);
+ g2d.setFont(font);
+
+ int x = 10;
+ int y = fontSize*5/2;
+ g2d.translate(x, y);
+ Color color = new Color(paintData.color);
+ g2d.setPaint(new Color(color.getRed(),color.getGreen(), color.getBlue(), 30));
+ AffineTransform origTransform = g2d.getTransform();
+ g2d.shear(-0.5*paintData.scale, 0);
+ g2d.scale(1, paintData.scale);
+ g2d.drawString(paintData.text, 0, 0);
+
+ g2d.setTransform(origTransform);
+ g2d.setPaint(color);
+ g2d.drawString(paintData.text, 0, 0);
+ ImageIO.write(img,"jpeg",out);
+
+ }
+ }
+
+ private void copy(InputStream in, OutputStream out) throws IOException {
+ byte[] buffer = new byte[2048];
+ int read;
+
+ while ((read = in.read(buffer)) != -1) {
+ out.write(buffer, 0, read);
+ }
+ }
+
+ public void paintFlash(OutputStream out, Object data) throws IOException {
+ ClassLoader loader = Thread.currentThread().getContextClassLoader();
+ if (loader == null) {
+ loader = getClass().getClassLoader();
+ }
+
+ InputStream stream = loader.getResourceAsStream("org/richfaces/demo/mediaoutput/text.swf");
+ if (stream != null) {
+ try {
+ copy(stream, out);
+ } finally {
+ stream.close();
+ }
+ }
+ }
+}
\ No newline at end of file
Added: root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/mediaOutput/MediaData.java
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/mediaOutput/MediaData.java (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/mediaOutput/MediaData.java 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,64 @@
+package org.richfaces.demo.mediaOutput;
+
+import java.awt.Color;
+import java.io.Serializable;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+
+@ManagedBean(name="mediaData")
+@SessionScoped
+public class MediaData implements Serializable{
+ /**
+ *
+ */
+ private static final long serialVersionUID = 1L;
+ int width = 300;
+ int height = 120;
+ String text;
+ Integer color;
+ float scale;
+
+ public MediaData() {
+ setText("RichFaces 4.0");
+ setColor(1000);
+ setScale(2);
+ System.out.println("MediaData instantiated");
+ }
+
+ public Integer getColor() {
+ return color;
+ }
+ public void setColor(Integer color) {
+ this.color = color;
+ }
+ public float getScale() {
+ return scale;
+ }
+ public void setScale(float scale) {
+ this.scale = scale;
+ }
+
+ public String getText() {
+ return text;
+ }
+ public void setText(String text) {
+ this.text = text;
+ }
+
+ public int getWidth() {
+ return width;
+ }
+
+ public void setWidth(int width) {
+ this.width = width;
+ }
+
+ public int getHeight() {
+ return height;
+ }
+
+ public void setHeight(int height) {
+ this.height = height;
+ }
+}
Added: root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/push/Choice.java
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/push/Choice.java (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/push/Choice.java 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,29 @@
+package org.richfaces.demo.push;
+
+public class Choice {
+ private String label;
+ private int votesCount;
+
+ public Choice(String label) {
+ this.label = label;
+ this.votesCount = 0;
+ }
+
+ public void increment(int i) {
+ this.votesCount+=i;
+ }
+
+ public String getLabel() {
+ return label;
+ }
+ public void setLabel(String label) {
+ this.label = label;
+ }
+ public int getVotesCount() {
+ return votesCount;
+ }
+ public void setVotesCount(int votesCount) {
+ this.votesCount = votesCount;
+ }
+
+}
Added: root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/push/ChoicesBean.java
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/push/ChoicesBean.java (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/push/ChoicesBean.java 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,151 @@
+package org.richfaces.demo.push;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.EventListener;
+import java.util.EventObject;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Random;
+import java.util.Set;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+
+import org.ajax4jsf.event.PushEventListener;
+
+@ManagedBean(name="choicesBean")
+@SessionScoped
+public class ChoicesBean implements Runnable {
+ private List<Choice> choices;
+ private List<Choice> lastVotes;
+ private Thread thread;
+ private boolean enabled = false;
+ private Date startDate;
+ private String updateInfo;
+ PushEventListener listener;
+
+ public ChoicesBean() {
+ choices = new ArrayList<Choice>();
+ lastVotes = new ArrayList<Choice>();
+
+ choices.add(new Choice("Orange"));
+ choices.add(new Choice("Pineapple"));
+ choices.add(new Choice("Banana"));
+ choices.add(new Choice("Kiwifruit"));
+ choices.add(new Choice("Apple"));
+
+ lastVotes.add(new Choice("Orange"));
+ lastVotes.add(new Choice("Pineapple"));
+ lastVotes.add(new Choice("Banana"));
+ lastVotes.add(new Choice("Kiwifruit"));
+ lastVotes.add(new Choice("Apple"));
+ }
+
+ public List<Choice> getChoices() {
+ return choices;
+ }
+
+ public void setChoices(List<Choice> choices) {
+ this.choices = choices;
+ }
+
+ public void addListener(EventListener listener) {
+ if (this.listener != listener) {
+ this.listener = (PushEventListener) listener;
+ }
+ }
+
+ public String getTimeStamp() {
+ return new Date().toGMTString();
+ }
+
+ public synchronized void start() {
+ if (thread == null) {
+ setStartDate(new Date());
+ setEnabled(true);
+ thread = new Thread(this);
+ thread.setDaemon(true);
+ thread.start();
+ }
+ }
+
+ public synchronized void stop() {
+ if (thread != null) {
+ setStartDate(null);
+ setEnabled(false);
+ thread = null;
+ }
+ }
+
+ public static int rand(int lo, int hi) {
+ Random rn2 = new Random();
+ int n = hi - lo + 1;
+ int i = rn2.nextInt() % n;
+ if (i < 0)
+ i = -i;
+ return lo + i;
+ }
+ public void run() {
+ while (thread != null) {
+ try {
+ if (((new Date()).getTime() - startDate.getTime()) >= 60000) {
+ stop();
+ }
+ // changing votes count
+ for (Choice choice : lastVotes) {
+ choice.setVotesCount(rand(0, 3));
+ }
+ System.out.println("New Event!");
+ listener.onEvent(new EventObject(this));
+ Thread.sleep(10000);
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+ }
+
+ public void processUpdates() {
+ for (Choice choice : lastVotes) {
+ if (choice.getVotesCount() > 0) {
+ int index = lastVotes.indexOf(choice);
+ choices.get(index).increment(choice.getVotesCount());
+ }
+ }
+ updateInfo="[ ";
+ for (Choice choice : lastVotes) {
+ updateInfo+=choice.getVotesCount()+" ";
+ }
+ updateInfo+="] ";
+ System.out.println("ChoicesBean.processUpdates()");
+ }
+
+ public Thread getThread() {
+ return thread;
+ }
+
+ public boolean isEnabled() {
+ return enabled;
+ }
+
+ public void setEnabled(boolean enabled) {
+ this.enabled = enabled;
+ }
+
+ public Date getStartDate() {
+ return startDate;
+ }
+
+ public void setStartDate(Date startDate) {
+ this.startDate = startDate;
+ }
+
+ public String getUpdateInfo() {
+ return updateInfo;
+ }
+
+ public List<Choice> getLastVotes() {
+ return lastVotes;
+ }
+
+}
Added: root/examples/trunk/richfaces-demo/src/main/resources/org/richfaces/demo/mediaOutput/text.swf
===================================================================
(Binary files differ)
Property changes on: root/examples/trunk/richfaces-demo/src/main/resources/org/richfaces/demo/mediaOutput/text.swf
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/fonts-context.css
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/fonts-context.css (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/fonts-context.css 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,46 @@
+/*
+Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 3.0.0pr2
+*/
+/**
+ * Percents could work for IE, but for backCompat purposes, we are using keywords.
+ * x-small is for IE6/7 quirks mode.
+ */
+.yui-cssfonts body, .yui-cssfonts {
+ font:13px/1.231 arial,helvetica,clean,sans-serif;
+ *font-size:small; /* for IE */
+ *font:x-small; /* for IE in quirks mode */
+}
+
+/**
+ * Nudge down to get to 13px equivalent for these form elements
+ */
+.yui-cssfonts select,
+.yui-cssfonts input,
+.yui-cssfonts button,
+.yui-cssfonts textarea {
+ font:99% arial,helvetica,clean,sans-serif;
+}
+
+/**
+ * To help tables remember to inherit
+ */
+.yui-cssfonts table {
+ font-size:inherit;
+ font:100%;
+}
+
+/**
+ * Bump up IE to get to 13px equivalent for these fixed-width elements
+ */
+.yui-cssfonts pre,
+.yui-cssfonts code,
+.yui-cssfonts kbd,
+.yui-cssfonts samp,
+.yui-cssfonts tt {
+ font-family:monospace;
+ *font-size:108%;
+ line-height:100%;
+}
\ No newline at end of file
Added: root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/fonts.css
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/fonts.css (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/fonts.css 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,46 @@
+/*
+Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 3.0.0pr2
+*/
+/**
+ * Percents could work for IE, but for backCompat purposes, we are using keywords.
+ * x-small is for IE6/7 quirks mode.
+ */
+body {
+ font:13px/1.231 arial,helvetica,clean,sans-serif;
+ *font-size:small; /* for IE */
+ *font:x-small; /* for IE in quirks mode */
+}
+
+/**
+ * Nudge down to get to 13px equivalent for these form elements
+ */
+select,
+input,
+button,
+textarea {
+ font:99% arial,helvetica,clean,sans-serif;
+}
+
+/**
+ * To help tables remember to inherit
+ */
+table {
+ font-size:inherit;
+ font:100%;
+}
+
+/**
+ * Bump up IE to get to 13px equivalent for these fixed-width elements
+ */
+pre,
+code,
+kbd,
+samp,
+tt {
+ font-family:monospace;
+ *font-size:108%;
+ line-height:100%;
+}
\ No newline at end of file
Added: root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/grids-context.css
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/grids-context.css (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/grids-context.css 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,490 @@
+/*
+Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 3.0.0pr2
+*/
+/*
+*
+* The YUI CSS Foundation uses the *property and _property CSS filter
+* techniques to shield a value from A-grade browsers [1] other than
+* IE6 & IE7 (*property) and IE6 (_property)
+*
+/
+Section: General Rules
+*/
+.yui-cssgrids body {
+ /* center the page - removed (SS)*/
+ /* text-align: center; */
+ margin-left: auto;
+ margin-right: auto;
+}
+/*
+Section: Page Width Rules (#doc, #doc2, #doc3, #doc4)
+*/
+/*
+Subsection: General
+*/
+.yui-cssgrids .yui-d0, /* 100% */
+.yui-cssgrids .yui-d1, /* 750px */
+.yui-cssgrids .yui-d1f, /* 750px fixed */
+.yui-cssgrids .yui-d2, /* 950px */
+.yui-cssgrids .yui-d2f, /* 950px fixed */
+.yui-cssgrids .yui-d3, /* 974px */
+.yui-cssgrids .yui-d3f { /* 974px fixed */
+ margin: auto;
+ text-align: left;
+ width: 57.69em;
+ *width: 56.25em; /* doc1*/
+}
+
+.yui-cssgrids .yui-t1,
+.yui-cssgrids .yui-t2,
+.yui-cssgrids .yui-t3,
+.yui-cssgrids .yui-t4,
+.yui-cssgrids .yui-t5,
+.yui-cssgrids .yui-t6 {
+ margin: auto;
+ text-align: left;
+ width: 100%;
+}
+
+/*
+Subsection: 100% (doc)
+*/
+.yui-cssgrids .yui-d0 {
+ /* Left and Right margins are not a structural part of Grids. Without them Grids
+ works fine, but content bleeds to the very edge of the document, which often
+ impairs readability and usability. They are
+ provided because they prevent the content from "bleeding" into the browser's chrome.*/
+ margin: auto 10px;
+ width: auto;
+}
+.yui-cssgrids .yui-d0f {
+ width: 100%;
+}
+
+/*
+Subsection: 950 Centered (doc2)
+*/
+.yui-cssgrids .yui-d2 {
+ width: 73.076em;
+ *width: 71.25em;
+}
+.yui-cssgrids .yui-d2f {
+ width: 950px;
+}
+/*
+Subsection: 974 Centered (doc3)
+*/
+.yui-cssgrids .yui-d3 {
+ width: 74.923em;
+ *width: 73.05em;
+}
+.yui-cssgrids .yui-d3f {
+ width: 974px;
+}
+/*
+Section: Preset Template Rules (.yui-t[1-6])
+*/
+/*
+Subsection: General
+*/
+
+/* to preserve source-order independence for Gecko without breaking IE */
+.yui-cssgrids .yui-b {
+ position: relative;
+}
+.yui-cssgrids .yui-b {
+ _position: static;
+}
+.yui-cssgrids .yui-main .yui-b {
+ position: static;
+}
+.yui-cssgrids .yui-main {
+ width: 100%;
+}
+.yui-cssgrids .yui-t1 .yui-main,
+.yui-cssgrids .yui-t2 .yui-main,
+.yui-cssgrids .yui-t3 .yui-main {
+ float: right;
+ /* IE: preserve layout at narrow widths */
+ margin-left: -25em;
+}
+.yui-cssgrids .yui-t4 .yui-main,
+.yui-cssgrids .yui-t5 .yui-main,
+.yui-cssgrids .yui-t6 .yui-main {
+ float: left;
+ /* IE: preserve layout at narrow widths */
+ margin-right: -25em;
+}
+
+/* Subsection: For Specific Template Presets */
+
+/**
+* Nudge down to get to 13px equivalent for these form elements
+*/
+
+/*
+TODO Create t1-6's that are based on fixed widths
+*/
+/* t1 narrow block = left, equivalent of 160px */
+.yui-cssgrids .yui-t1 .yui-b {
+ float: left;
+ width: 12.30769em;
+ *width: 12.00em;
+}
+.yui-cssgrids .yui-t1 .yui-main .yui-b {
+ margin-left: 13.30769em;
+ *margin-left:12.975em;
+}
+/* t2 narrow block = left, equivalent of 180px */
+.yui-cssgrids .yui-t2 .yui-b {
+ float: left;
+ width: 13.84615em;
+ *width: 13.50em;
+}
+.yui-cssgrids .yui-t2 .yui-main .yui-b {
+ margin-left: 14.84615em;
+ *margin-left: 14.475em;
+}
+/* t3 narrow block = left, equivalent of 300px */
+.yui-cssgrids .yui-t3 .yui-b {
+ float: left;
+ width: 23.0769em;
+ *width: 22.50em;
+}
+.yui-cssgrids .yui-t3 .yui-main .yui-b {
+ margin-left: 24.0769em;
+ *margin-left: 23.475em;
+}
+/* t4 narrow block = right, equivalent of 180px */
+.yui-cssgrids .yui-t4 .yui-b {
+ float: right;
+ width: 13.8456em;
+ *width: 13.50em;
+}
+.yui-cssgrids .yui-t4 .yui-main .yui-b {
+ margin-right: 14.8456em;
+ *margin-right: 14.475em;
+}
+/* t5 narrow block = right, equivalent of 240px */
+.yui-cssgrids .yui-t5 .yui-b {
+ float: right;
+ width: 18.4615em;
+ *width: 18.00em;
+}
+.yui-cssgrids .yui-t5 .yui-main .yui-b {
+ margin-right: 19.4615em;
+ *margin-right: 18.975em;
+}
+/* t6 narrow block = equivalent of 300px */
+.yui-cssgrids .yui-t6 .yui-b {
+ float: right;
+ width: 23.0769em;
+ *width: 22.50em;
+}
+.yui-cssgrids .yui-t6 .yui-main .yui-b {
+ margin-right: 24.0769em;
+ *margin-right: 23.475em;
+}
+
+.yui-cssgrids .yui-main .yui-b {
+ float: none;
+ width: auto;
+}
+
+/*
+Section: Grids and Nesting Grids
+*/
+
+/*
+Subsection: Children generally take half the available space
+*/
+
+.yui-cssgrids .yui-gb .yui-u,
+.yui-cssgrids .yui-g .yui-gb .yui-u,
+.yui-cssgrids .yui-gb .yui-g,
+.yui-cssgrids .yui-gb .yui-gb,
+.yui-cssgrids .yui-gb .yui-gc,
+.yui-cssgrids .yui-gb .yui-gd,
+.yui-cssgrids .yui-gb .yui-ge,
+.yui-cssgrids .yui-gb .yui-gf,
+.yui-cssgrids .yui-gc .yui-u,
+.yui-cssgrids .yui-gc .yui-g,
+.yui-cssgrids .yui-gd .yui-u {
+ float: left;
+}
+
+/*Float units (and sub grids) to the right */
+.yui-cssgrids .yui-g .yui-u,
+.yui-cssgrids .yui-g .yui-g,
+.yui-cssgrids .yui-g .yui-gb,
+.yui-cssgrids .yui-g .yui-gc,
+.yui-cssgrids .yui-g .yui-gd,
+.yui-cssgrids .yui-g .yui-ge,
+.yui-cssgrids .yui-g .yui-gf,
+.yui-cssgrids .yui-gc .yui-u,
+.yui-cssgrids .yui-gd .yui-g,
+.yui-cssgrids .yui-g .yui-gc .yui-u,
+.yui-cssgrids .yui-ge .yui-u,
+.yui-cssgrids .yui-ge .yui-g,
+.yui-cssgrids .yui-gf .yui-g,
+.yui-cssgrids .yui-gf .yui-u {
+ float: right;
+}
+
+/*Float units (and sub grids) to the left */
+.yui-cssgrids .yui-g div.first,
+.yui-cssgrids .yui-gb div.first,
+.yui-cssgrids .yui-gc div.first,
+.yui-cssgrids .yui-gd div.first,
+.yui-cssgrids .yui-ge div.first,
+.yui-cssgrids .yui-gf div.first,
+.yui-cssgrids .yui-g .yui-gc div.first,
+.yui-cssgrids .yui-g .yui-ge div.first,
+.yui-cssgrids .yui-gc div.first div.first {
+ float: left;
+}
+
+.yui-cssgrids .yui-g .yui-u,
+.yui-cssgrids .yui-g .yui-g,
+.yui-cssgrids .yui-g .yui-gb,
+.yui-cssgrids .yui-g .yui-gc,
+.yui-cssgrids .yui-g .yui-gd,
+.yui-cssgrids .yui-g .yui-ge,
+.yui-cssgrids .yui-g .yui-gf {
+ width: 49.1%;
+}
+
+.yui-cssgrids .yui-gb .yui-u,
+.yui-cssgrids .yui-g .yui-gb .yui-u,
+.yui-cssgrids .yui-gb .yui-g,
+.yui-cssgrids .yui-gb .yui-gb,
+.yui-cssgrids .yui-gb .yui-gc,
+.yui-cssgrids .yui-gb .yui-gd,
+.yui-cssgrids .yui-gb .yui-ge,
+.yui-cssgrids .yui-gb .yui-gf,
+.yui-cssgrids .yui-gc .yui-u,
+.yui-cssgrids .yui-gc .yui-g,
+.yui-cssgrids .yui-gd .yui-u {
+ width: 32%;
+ margin-left: 2.0%;
+}
+
+/* Give IE some extra breathing room for 1/3-based rounding issues */
+.yui-cssgrids .yui-gb .yui-u {
+ *width: 31.8%;
+ *margin-left: 1.9%;
+}
+
+.yui-cssgrids .yui-gc div.first,
+.yui-cssgrids .yui-gd .yui-u {
+ width: 66%;
+ _width: 65.7%;
+}
+.yui-cssgrids .yui-gd div.first {
+ width: 32%;
+ _width: 31.5%;
+}
+
+.yui-cssgrids .yui-ge div.first,
+.yui-cssgrids .yui-gf .yui-u {
+ width: 74.2%;
+ _width: 74%;
+}
+
+.yui-cssgrids .yui-ge .yui-u,
+.yui-cssgrids .yui-gf div.first {
+ width: 24%;
+ _width: 23.8%;
+}
+
+.yui-cssgrids .yui-g .yui-gb div.first,
+.yui-cssgrids .yui-gb div.first,
+.yui-cssgrids .yui-gc div.first,
+.yui-cssgrids .yui-gd div.first {
+ margin-left: 0;
+}
+
+/*
+Section: Deep Nesting
+*/
+.yui-cssgrids .yui-g .yui-g .yui-u,
+.yui-cssgrids .yui-gb .yui-g .yui-u,
+.yui-cssgrids .yui-gc .yui-g .yui-u,
+.yui-cssgrids .yui-gd .yui-g .yui-u,
+.yui-cssgrids .yui-ge .yui-g .yui-u,
+.yui-cssgrids .yui-gf .yui-g .yui-u {
+ width: 49%;
+ *width: 48.1%;
+ *margin-left: 0;
+}
+
+.yui-cssgrids .yui-g .yui-gb div.first,
+.yui-cssgrids .yui-gb .yui-gb div.first {
+ *margin-right: 0;
+ *width: 32%;
+ _width: 31.7%;
+}
+
+.yui-cssgrids .yui-g .yui-gc div.first,
+.yui-cssgrids .yui-gd .yui-g {
+ width: 66%;
+}
+
+.yui-cssgrids .yui-gb .yui-g div.first {
+ *margin-right: 4%;
+ _margin-right: 1.3%;
+}
+
+.yui-cssgrids .yui-gb .yui-gc div.first,
+.yui-cssgrids .yui-gb .yui-gd div.first {
+ *margin-right: 0;
+}
+
+.yui-cssgrids .yui-gb .yui-gb .yui-u,
+.yui-cssgrids .yui-gb .yui-gc .yui-u {
+ *margin-left: 1.8%;
+ _margin-left: 4%;
+}
+
+.yui-cssgrids .yui-g .yui-gb .yui-u {
+ _margin-left: 1.0%;
+}
+
+.yui-cssgrids .yui-gb .yui-gd .yui-u {
+ *width: 66%;
+ _width: 61.2%;
+}
+.yui-cssgrids .yui-gb .yui-gd div.first {
+ *width: 31%;
+ _width: 29.5%;
+}
+
+.yui-cssgrids .yui-g .yui-gc .yui-u,
+.yui-cssgrids .yui-gb .yui-gc .yui-u {
+ width: 32%;
+ _float: right;
+ margin-right: 0;
+ _margin-left: 0;
+}
+.yui-cssgrids .yui-gb .yui-gc div.first {
+ width: 66%;
+ *float: left;
+ *margin-left: 0;
+}
+
+.yui-cssgrids .yui-gb .yui-ge .yui-u,
+.yui-cssgrids .yui-gb .yui-gf .yui-u {
+ margin: 0;
+}
+
+.yui-cssgrids .yui-gb .yui-gb .yui-u {
+ _margin-left: .7%;
+}
+
+.yui-cssgrids .yui-gb .yui-g div.first,
+.yui-cssgrids .yui-gb .yui-gb div.first {
+ *margin-left:0;
+}
+
+.yui-cssgrids .yui-gc .yui-g .yui-u,
+.yui-cssgrids .yui-gd .yui-g .yui-u {
+ *width: 48.1%;
+ *margin-left: 0;
+}
+
+.yui-cssgrids .yui-gb .yui-gd div.first {
+ width: 32%;
+}
+.yui-cssgrids .yui-g .yui-gd div.first {
+ _width: 29.9%;
+}
+
+.yui-cssgrids .yui-ge .yui-g {
+ width: 24%;
+}
+.yui-cssgrids .yui-gf .yui-g {
+ width: 74.2%;
+}
+
+.yui-cssgrids .yui-gb .yui-ge div.yui-u,
+.yui-cssgrids .yui-gb .yui-gf div.yui-u {
+ float: right;
+}
+.yui-cssgrids .yui-gb .yui-ge div.first,
+.yui-cssgrids .yui-gb .yui-gf div.first {
+ float: left;
+}
+
+/* Width Accommodation for Nested Contexts */
+.yui-cssgrids .yui-gb .yui-ge .yui-u,
+.yui-cssgrids .yui-gb .yui-gf div.first {
+ *width: 24%;
+ _width: 20%;
+}
+
+/* Width Accommodation for Nested Contexts */
+
+.yui-cssgrids .yui-gc .yui-gf .yui-u {
+ width: 74%;
+ _width: 73%;
+}
+
+.yui-cssgrids .yui-gc .yui-gf div.first {
+ width: 24%;
+}
+
+.yui-cssgrids .yui-gb .yui-ge div.first,
+.yui-cssgrids .yui-gb .yui-gf .yui-u {
+ *width: 73.5%;
+ _width: 65.5%;
+}
+
+/* Patch for GD within GE */
+.yui-cssgrids .yui-ge div.first .yui-gd .yui-u {
+ width: 65%;
+}
+.yui-cssgrids .yui-ge div.first .yui-gd div.first {
+ width: 32%;
+}
+
+/*
+Section: Clearing. zoom for IE, :after for others
+*/
+
+.yui-cssgrids #bd:after,
+.yui-cssgrids .yui-g:after,
+.yui-cssgrids .yui-gb:after,
+.yui-cssgrids .yui-gc:after,
+.yui-cssgrids .yui-gd:after,
+.yui-cssgrids .yui-ge:after,
+.yui-cssgrids .yui-gf:after,
+.yui-cssgrids .yui-t1:after,
+.yui-cssgrids .yui-t2:after,
+.yui-cssgrids .yui-t3:after,
+.yui-cssgrids .yui-t4:after,
+.yui-cssgrids .yui-t5:after,
+.yui-cssgrids .yui-t6:after {
+ content: ".";
+ display: block;
+ height: 0;
+ clear: both;
+ visibility: hidden;
+}
+.yui-cssgrids #bd,
+.yui-cssgrids .yui-g,
+.yui-cssgrids .yui-gb,
+.yui-cssgrids .yui-gc,
+.yui-cssgrids .yui-gd,
+.yui-cssgrids .yui-ge,
+.yui-cssgrids .yui-gf,
+.yui-cssgrids .yui-t1,
+.yui-cssgrids .yui-t2,
+.yui-cssgrids .yui-t3,
+.yui-cssgrids .yui-t4,
+.yui-cssgrids .yui-t5,
+.yui-cssgrids .yui-t6 {
+ zoom: 1;
+}
\ No newline at end of file
Added: root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/grids.css
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/grids.css (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/grids.css 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,480 @@
+/*
+Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 3.0.0pr2
+*/
+/*
+*
+* The YUI CSS Foundation uses the *property and _property CSS filter
+* techniques to shield a value from A-grade browsers [1] other than
+* IE6 & IE7 (*property) and IE6 (_property)
+*
+/
+Section: General Rules
+*/
+body {
+ /* center the page - removed (SS)*/
+ /*text-align: center; */
+ margin-left: auto;
+ margin-right: auto;
+}
+/*
+Section: Page Width Rules (#doc, #doc2, #doc3, #doc4)
+*/
+/*
+Subsection: General
+*/
+.yui-d0, /* 100% */
+.yui-d1, /* 750px */
+.yui-d1f, /* 750px fixed */
+.yui-d2, /* 950px */
+.yui-d2f, /* 950px fixed */
+.yui-d3, /* 974px */
+.yui-d3f { /* 974px fixed */
+ margin: auto;
+ text-align: left;
+ width: 57.69em;
+ *width: 56.25em; /* doc1*/
+}
+
+.yui-t1,
+.yui-t2,
+.yui-t3,
+.yui-t4,
+.yui-t5,
+.yui-t6 {
+ margin: auto;
+ text-align: left;
+ width: 100%;
+}
+
+/*
+Subsection: 100% (doc)
+*/
+.yui-d0 {
+ /* Left and Right margins are not a structural part of Grids. Without them Grids
+ works fine, but content bleeds to the very edge of the document, which often
+ impairs readability and usability. They are
+ provided because they prevent the content from "bleeding" into the browser's chrome.*/
+ margin: auto 10px;
+ width: auto;
+}
+.yui-d0f {
+ width: 100%;
+}
+
+/*
+Subsection: 950 Centered (doc2)
+*/
+.yui-d2 {
+ width: 73.076em;
+ *width: 71.25em;
+}
+.yui-d2f {
+ width: 950px;
+}
+/*
+Subsection: 974 Centered (doc3)
+*/
+.yui-d3 {
+ width: 74.923em;
+ *width: 73.05em;
+}
+.yui-d3f {
+ width: 974px;
+}
+/*
+Section: Preset Template Rules (.yui-t[1-6])
+*/
+/*
+Subsection: General
+*/
+
+/* to preserve source-order independence for Gecko without breaking IE */
+.yui-b {
+ position: relative;
+}
+.yui-b {
+ _position: static;
+}
+.yui-main .yui-b {
+ position: static;
+}
+.yui-main {
+ width: 100%;
+}
+.yui-t1 .yui-main,
+.yui-t2 .yui-main,
+.yui-t3 .yui-main {
+ float: right;
+ /* IE: preserve layout at narrow widths */
+ margin-left: -25em;
+}
+.yui-t4 .yui-main,
+.yui-t5 .yui-main,
+.yui-t6 .yui-main {
+ float: left;
+ /* IE: preserve layout at narrow widths */
+ margin-right: -25em;
+}
+
+/* Subsection: For Specific Template Presets */
+
+/**
+* Nudge down to get to 13px equivalent for these form elements
+*/
+
+/*
+TODO Create t1-6's that are based on fixed widths
+*/
+/* t1 narrow block = left, equivalent of 160px */
+.yui-t1 .yui-b {
+ float: left;
+ width: 12.30769em;
+ *width: 12.00em;
+}
+.yui-t1 .yui-main .yui-b {
+ margin-left: 13.30769em;
+ *margin-left:12.975em;
+}
+/* t2 narrow block = left, equivalent of 180px */
+.yui-t2 .yui-b {
+ float: left;
+ width: 13.84615em;
+ *width: 13.50em;
+}
+.yui-t2 .yui-main .yui-b {
+ margin-left: 14.84615em;
+ *margin-left: 14.475em;
+}
+/* t3 narrow block = left, equivalent of 300px */
+.yui-t3 .yui-b {
+ float: left;
+ width: 23.0769em;
+ *width: 22.50em;
+}
+.yui-t3 .yui-main .yui-b {
+ margin-left: 24.0769em;
+ *margin-left: 23.475em;
+}
+/* t4 narrow block = right, equivalent of 180px */
+.yui-t4 .yui-b {
+ float: right;
+ width: 13.8456em;
+ *width: 13.50em;
+}
+.yui-t4 .yui-main .yui-b {
+ margin-right: 14.8456em;
+ *margin-right: 14.475em;
+}
+/* t5 narrow block = right, equivalent of 240px */
+.yui-t5 .yui-b {
+ float: right;
+ width: 18.4615em;
+ *width: 18.00em;
+}
+.yui-t5 .yui-main .yui-b {
+ margin-right: 19.4615em;
+ *margin-right: 18.975em;
+}
+/* t6 narrow block = equivalent of 300px */
+.yui-t6 .yui-b {
+ float: right;
+ width: 23.0769em;
+ *width: 22.50em;
+}
+.yui-t6 .yui-main .yui-b {
+ margin-right: 24.0769em;
+ *margin-right: 23.475em;
+}
+
+.yui-main .yui-b {
+ float: none;
+ width: auto;
+}
+
+/*
+Section: Grids and Nesting Grids
+*/
+
+/*
+Subsection: Children generally take half the available space
+*/
+
+.yui-gb .yui-u,
+.yui-g .yui-gb .yui-u,
+.yui-gb .yui-g,
+.yui-gb .yui-gb,
+.yui-gb .yui-gc,
+.yui-gb .yui-gd,
+.yui-gb .yui-ge,
+.yui-gb .yui-gf,
+.yui-gc .yui-u,
+.yui-gc .yui-g,
+.yui-gd .yui-u {
+ float: left;
+}
+
+/*Float units (and sub grids) to the right */
+.yui-g .yui-u,
+.yui-g .yui-g,
+.yui-g .yui-gb,
+.yui-g .yui-gc,
+.yui-g .yui-gd,
+.yui-g .yui-ge,
+.yui-g .yui-gf,
+.yui-gc .yui-u,
+.yui-gd .yui-g,
+.yui-g .yui-gc .yui-u,
+.yui-ge .yui-u,
+.yui-ge .yui-g,
+.yui-gf .yui-g,
+.yui-gf .yui-u {
+ float: right;
+}
+
+/*Float units (and sub grids) to the left */
+.yui-g div.first,
+.yui-gb div.first,
+.yui-gc div.first,
+.yui-gd div.first,
+.yui-ge div.first,
+.yui-gf div.first,
+.yui-g .yui-gc div.first,
+.yui-g .yui-ge div.first,
+.yui-gc div.first div.first {
+ float: left;
+}
+
+.yui-g .yui-u,
+.yui-g .yui-g,
+.yui-g .yui-gb,
+.yui-g .yui-gc,
+.yui-g .yui-gd,
+.yui-g .yui-ge,
+.yui-g .yui-gf {
+ width: 49.1%;
+}
+
+.yui-gb .yui-u,
+.yui-g .yui-gb .yui-u,
+.yui-gb .yui-g,
+.yui-gb .yui-gb,
+.yui-gb .yui-gc,
+.yui-gb .yui-gd,
+.yui-gb .yui-ge,
+.yui-gb .yui-gf,
+.yui-gc .yui-u,
+.yui-gc .yui-g,
+.yui-gd .yui-u {
+ width: 32%;
+ margin-left: 2.0%;
+}
+
+/* Give IE some extra breathing room for 1/3-based rounding issues */
+.yui-gb .yui-u {
+ *width: 31.8%;
+ *margin-left: 1.9%;
+}
+
+.yui-gc div.first,
+.yui-gd .yui-u {
+ width: 66%;
+ _width: 65.7%;
+}
+.yui-gd div.first {
+ width: 32%;
+ _width: 31.5%;
+}
+
+.yui-ge div.first,
+.yui-gf .yui-u {
+ width: 74.2%;
+ _width: 74%;
+}
+
+.yui-ge .yui-u,
+.yui-gf div.first {
+ width: 24%;
+ _width: 23.8%;
+}
+
+.yui-g .yui-gb div.first,
+.yui-gb div.first,
+.yui-gc div.first,
+.yui-gd div.first {
+ margin-left: 0;
+}
+
+/*
+Section: Deep Nesting
+*/
+.yui-g .yui-g .yui-u,
+.yui-gb .yui-g .yui-u,
+.yui-gc .yui-g .yui-u,
+.yui-gd .yui-g .yui-u,
+.yui-ge .yui-g .yui-u,
+.yui-gf .yui-g .yui-u {
+ width: 49%;
+ *width: 48.1%;
+ *margin-left: 0;
+}
+
+.yui-g .yui-gb div.first,
+.yui-gb .yui-gb div.first {
+ *margin-right: 0;
+ *width: 32%;
+ _width: 31.7%;
+}
+
+.yui-g .yui-gc div.first,
+.yui-gd .yui-g {
+ width: 66%;
+}
+
+.yui-gb .yui-g div.first {
+ *margin-right: 4%;
+ _margin-right: 1.3%;
+}
+
+.yui-gb .yui-gc div.first,
+.yui-gb .yui-gd div.first {
+ *margin-right: 0;
+}
+
+.yui-gb .yui-gb .yui-u,
+.yui-gb .yui-gc .yui-u {
+ *margin-left: 1.8%;
+ _margin-left: 4%;
+}
+
+.yui-g .yui-gb .yui-u {
+ _margin-left: 1.0%;
+}
+
+.yui-gb .yui-gd .yui-u {
+ *width: 66%;
+ _width: 61.2%;
+}
+.yui-gb .yui-gd div.first {
+ *width: 31%;
+ _width: 29.5%;
+}
+
+.yui-g .yui-gc .yui-u,
+.yui-gb .yui-gc .yui-u {
+ width: 32%;
+ _float: right;
+ margin-right: 0;
+ _margin-left: 0;
+}
+.yui-gb .yui-gc div.first {
+ width: 66%;
+ *float: left;
+ *margin-left: 0;
+}
+
+.yui-gb .yui-ge .yui-u,
+.yui-gb .yui-gf .yui-u {
+ margin: 0;
+}
+
+.yui-gb .yui-gb .yui-u {
+ _margin-left: .7%;
+}
+
+.yui-gb .yui-g div.first,
+.yui-gb .yui-gb div.first {
+ *margin-left:0;
+}
+
+.yui-gc .yui-g .yui-u,
+.yui-gd .yui-g .yui-u {
+ *width: 48.1%;
+ *margin-left: 0;
+}
+
+.yui-gb .yui-gd div.first {
+ width: 32%;
+}
+.yui-g .yui-gd div.first {
+ _width: 29.9%;
+}
+
+.yui-ge .yui-g {
+ width: 24%;
+}
+.yui-gf .yui-g {
+ width: 74.2%;
+}
+
+.yui-gb .yui-ge div.yui-u,
+.yui-gb .yui-gf div.yui-u {
+ float: right;
+}
+.yui-gb .yui-ge div.first,
+.yui-gb .yui-gf div.first {
+ float: left;
+}
+
+/* Width Accommodation for Nested Contexts */
+.yui-gb .yui-ge .yui-u,
+.yui-gb .yui-gf div.first {
+ *width: 24%;
+ _width: 20%;
+}
+
+/* Width Accommodation for Nested Contexts */
+.yui-gb .yui-ge div.first,
+.yui-gb .yui-gf .yui-u {
+ *width: 73.5%;
+ _width: 65.5%;
+}
+
+/* Patch for GD within GE */
+.yui-ge div.first .yui-gd .yui-u {
+ width: 65%;
+}
+.yui-ge div.first .yui-gd div.first {
+ width: 32%;
+}
+
+/*
+Section: Clearing. zoom for IE, :after for others
+*/
+
+#bd:after,
+.yui-g:after,
+.yui-gb:after,
+.yui-gc:after,
+.yui-gd:after,
+.yui-ge:after,
+.yui-gf:after,
+.yui-t1:after,
+.yui-t2:after,
+.yui-t3:after,
+.yui-t4:after,
+.yui-t5:after,
+.yui-t6:after {
+ content: ".";
+ display: block;
+ height: 0;
+ clear: both;
+ visibility: hidden;
+}
+#bd,
+.yui-g,
+.yui-gb,
+.yui-gc,
+.yui-gd,
+.yui-ge,
+.yui-gf,
+.yui-t1,
+.yui-t2,
+.yui-t3,
+.yui-t4,
+.yui-t5,
+.yui-t6 {
+ zoom: 1;
+}
\ No newline at end of file
Added: root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/layout.css
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/layout.css (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/layout.css 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,285 @@
+/*
+Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 3.0.0pr2
+*/
+/*
+*
+* The YUI CSS Foundation uses the *property and _property CSS filter
+* techniques to shield a value from A-grade browsers [1] other than
+* IE6 & IE7 (*property) and IE6 (_property)
+*
+
+/*
+Section: Grids and Nesting Grids
+*/
+
+/*
+Subsection: Children generally take half the available space
+*/
+
+.yui-gb .yui-u,
+.yui-g .yui-gb .yui-u,
+.yui-gb .yui-g,
+.yui-gb .yui-gb,
+.yui-gb .yui-gc,
+.yui-gb .yui-gd,
+.yui-gb .yui-ge,
+.yui-gb .yui-gf,
+.yui-gc .yui-u,
+.yui-gc .yui-g,
+.yui-gd .yui-u {
+ float: left;
+}
+
+/*Float units (and sub grids) to the right */
+.yui-g .yui-u,
+.yui-g .yui-g,
+.yui-g .yui-gb,
+.yui-g .yui-gc,
+.yui-g .yui-gd,
+.yui-g .yui-ge,
+.yui-g .yui-gf,
+.yui-gc .yui-u,
+.yui-gd .yui-g,
+.yui-g .yui-gc .yui-u,
+.yui-ge .yui-u,
+.yui-ge .yui-g,
+.yui-gf .yui-g,
+.yui-gf .yui-u {
+ float: right;
+}
+
+/*Float units (and sub grids) to the left */
+.yui-g div.first,
+.yui-gb div.first,
+.yui-gc div.first,
+.yui-gd div.first,
+.yui-ge div.first,
+.yui-gf div.first,
+.yui-g .yui-gc div.first,
+.yui-g .yui-ge div.first,
+.yui-gc div.first div.first {
+ float: left;
+}
+
+.yui-g .yui-u,
+.yui-g .yui-g,
+.yui-g .yui-gb,
+.yui-g .yui-gc,
+.yui-g .yui-gd,
+.yui-g .yui-ge,
+.yui-g .yui-gf {
+ width: 49.1%;
+}
+
+.yui-gb .yui-u,
+.yui-g .yui-gb .yui-u,
+.yui-gb .yui-g,
+.yui-gb .yui-gb,
+.yui-gb .yui-gc,
+.yui-gb .yui-gd,
+.yui-gb .yui-ge,
+.yui-gb .yui-gf,
+.yui-gc .yui-u,
+.yui-gc .yui-g,
+.yui-gd .yui-u {
+ width: 32%;
+ margin-left: 2.0%;
+}
+
+/* Give IE some extra breathing room for 1/3-based rounding issues */
+.yui-gb .yui-u {
+ *width: 31.8%;
+ *margin-left: 1.9%;
+}
+
+.yui-gc div.first,
+.yui-gd .yui-u {
+ width: 66%;
+ _width: 65.7%;
+}
+.yui-gd div.first {
+ width: 32%;
+ _width: 31.5%;
+}
+
+.yui-ge div.first,
+.yui-gf .yui-u {
+ width: 74.2%;
+ _width: 74%;
+}
+
+.yui-ge .yui-u,
+.yui-gf div.first {
+ width: 24%;
+ _width: 23.8%;
+}
+
+.yui-g .yui-gb div.first,
+.yui-gb div.first,
+.yui-gc div.first,
+.yui-gd div.first {
+ margin-left: 0;
+}
+
+/*
+Section: Deep Nesting
+*/
+.yui-g .yui-g .yui-u,
+.yui-gb .yui-g .yui-u,
+.yui-gc .yui-g .yui-u,
+.yui-gd .yui-g .yui-u,
+.yui-ge .yui-g .yui-u,
+.yui-gf .yui-g .yui-u {
+ width: 49%;
+ *width: 48.1%;
+ *margin-left: 0;
+}
+
+.yui-g .yui-gb div.first,
+.yui-gb .yui-gb div.first {
+ *margin-right: 0;
+ *width: 32%;
+ _width: 31.7%;
+}
+
+.yui-g .yui-gc div.first,
+.yui-gd .yui-g {
+ width: 66%;
+}
+
+.yui-gb .yui-g div.first {
+ *margin-right: 4%;
+ _margin-right: 1.3%;
+}
+
+.yui-gb .yui-gc div.first,
+.yui-gb .yui-gd div.first {
+ *margin-right: 0;
+}
+
+.yui-gb .yui-gb .yui-u,
+.yui-gb .yui-gc .yui-u {
+ *margin-left: 1.8%;
+ _margin-left: 4%;
+}
+
+.yui-g .yui-gb .yui-u {
+ _margin-left: 1.0%;
+}
+
+.yui-gb .yui-gd .yui-u {
+ *width: 66%;
+ _width: 61.2%;
+}
+.yui-gb .yui-gd div.first {
+ *width: 31%;
+ _width: 29.5%;
+}
+
+.yui-g .yui-gc .yui-u,
+.yui-gb .yui-gc .yui-u {
+ width: 32%;
+ _float: right;
+ margin-right: 0;
+ _margin-left: 0;
+}
+.yui-gb .yui-gc div.first {
+ width: 66%;
+ *float: left;
+ *margin-left: 0;
+}
+
+.yui-gb .yui-ge .yui-u,
+.yui-gb .yui-gf .yui-u {
+ margin: 0;
+}
+
+.yui-gb .yui-gb .yui-u {
+ _margin-left: .7%;
+}
+
+.yui-gb .yui-g div.first,
+.yui-gb .yui-gb div.first {
+ *margin-left:0;
+}
+
+.yui-gc .yui-g .yui-u,
+.yui-gd .yui-g .yui-u {
+ *width: 48.1%;
+ *margin-left: 0;
+}
+
+.yui-gb .yui-gd div.first {
+ width: 32%;
+}
+.yui-g .yui-gd div.first {
+ _width: 29.9%;
+}
+
+.yui-ge .yui-g {
+ width: 24%;
+}
+.yui-gf .yui-g {
+ width: 74.2%;
+}
+
+.yui-gb .yui-ge div.yui-u,
+.yui-gb .yui-gf div.yui-u {
+ float: right;
+}
+.yui-gb .yui-ge div.first,
+.yui-gb .yui-gf div.first {
+ float: left;
+}
+
+/* Width Accommodation for Nested Contexts */
+.yui-gb .yui-ge .yui-u,
+.yui-gb .yui-gf div.first {
+ *width: 24%;
+ _width: 20%;
+}
+
+/* Width Accommodation for Nested Contexts */
+.yui-gb .yui-ge div.first,
+.yui-gb .yui-gf .yui-u {
+ *width: 73.5%;
+ _width: 65.5%;
+}
+
+/* Patch for GD within GE */
+.yui-ge div.first .yui-gd .yui-u {
+ width: 65%;
+}
+.yui-ge div.first .yui-gd div.first {
+ width: 32%;
+}
+
+/*
+Section: Clearing. zoom for IE, :after for others
+*/
+
+#bd:after,
+.yui-g:after,
+.yui-gb:after,
+.yui-gc:after,
+.yui-gd:after,
+.yui-ge:after,
+.yui-gf:after {
+ content: ".";
+ display: block;
+ height: 0;
+ clear: both;
+ visibility: hidden;
+}
+#bd,
+.yui-g,
+.yui-gb,
+.yui-gc,
+.yui-gd,
+.yui-ge,
+.yui-gf {
+ zoom: 1;
+}
\ No newline at end of file
Added: root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/page.css
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/page.css (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/page.css 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,57 @@
+/*
+Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 2.5.2
+*/
+/*
+ Note: Throughout this file, the *property filter is used to
+ give a value to IE that other browsers do not see.
+*/
+
+/*
+ Section: General Rules
+*/
+
+ body {
+ text-align:center;
+ }
+
+ .rich-page-footer {
+ clear:both;
+ }
+
+/*
+ Section: Page Width Rules (#doc, #doc2, #doc3, #doc4)
+*/
+
+ /*
+ Subsection: General
+ */
+
+ .rich-page {
+ margin:auto;
+ text-align:left;
+ min-width:750px;
+ }
+
+/*
+ Section: Preset Template Rules (.yui-t[1-6])
+*/
+
+ /*
+ Subsection: General
+ */
+
+ /* to preserve source-order independence for Gecko */
+ .rich-page-sidebar{position:relative;}
+ .rich-page-sidebar,.rich-page-body{_position:static;}
+ .rich-page-body{position:static;}
+
+ .rich-page-main {width:100%;}
+/*
+ Section: Clearing
+*/
+
+.rich-page-content:after {content:".";display:block;height:0;clear:both;visibility:hidden;}
+.rich-page-content {zoom:1;}
Added: root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/reset-context.css
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/reset-context.css (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/reset-context.css 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,125 @@
+/*
+Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 3.0.0pr2
+*/
+/*e
+ TODO will need to remove settings on HTML since we can't namespace it.
+ TODO with the prefix, should I group by selector or property for weight savings?
+*/
+.yui-cssreset html{
+ color:#000;
+ background:#FFF;
+}
+/*
+ TODO remove settings on BODY since we can't namespace it.
+*/
+/*
+ TODO test putting a class on HEAD.
+ - Fails on FF.
+*/
+.yui-cssreset body,
+.yui-cssreset div,
+.yui-cssreset dl,
+.yui-cssreset dt,
+.yui-cssreset dd,
+.yui-cssreset ul,
+.yui-cssreset ol,
+.yui-cssreset li,
+.yui-cssreset h1,
+.yui-cssreset h2,
+.yui-cssreset h3,
+.yui-cssreset h4,
+.yui-cssreset h5,
+.yui-cssreset h6,
+.yui-cssreset pre,
+.yui-cssreset code,
+.yui-cssreset form,
+.yui-cssreset fieldset,
+.yui-cssreset legend,
+.yui-cssreset input,
+.yui-cssreset textarea,
+.yui-cssreset p,
+.yui-cssreset blockquote,
+.yui-cssreset th,
+.yui-cssreset td {
+ margin:0;
+ padding:0;
+}
+.yui-cssreset table {
+ border-collapse:collapse;
+ border-spacing:0;
+}
+.yui-cssreset fieldset,
+.yui-cssreset img {
+ border:0;
+}
+/*
+ TODO think about hanlding inheritence differently, maybe letting IE6 fail a bit...
+*/
+.yui-cssreset address,
+.yui-cssreset caption,
+.yui-cssreset cite,
+.yui-cssreset code,
+.yui-cssreset dfn,
+.yui-cssreset em,
+.yui-cssreset strong,
+.yui-cssreset th,
+.yui-cssreset var {
+ font-style:normal;
+ font-weight:normal;
+}
+/*
+ TODO Figure out where this list-style rule is best set. Hedger has a request to investigate.
+*/
+.yui-cssreset li {
+ list-style:none;
+}
+
+.yui-cssreset caption,
+.yui-cssreset th {
+ text-align:left;
+}
+.yui-cssreset h1,
+.yui-cssreset h2,
+.yui-cssreset h3,
+.yui-cssreset h4,
+.yui-cssreset h5,
+.yui-cssreset h6 {
+ font-size:100%;
+ font-weight:normal;
+}
+.yui-cssreset q:before,
+.yui-cssreset q:after {
+ content:'';
+}
+.yui-cssreset abbr,
+.yui-cssreset acronym {
+ border:0;
+ font-variant:normal;
+}
+/* to preserve line-height and selector appearance */
+.yui-cssreset sup {
+ vertical-align:text-top;
+}
+.yui-cssreset sub {
+ vertical-align:text-bottom;
+}
+.yui-cssreset input,
+.yui-cssreset textarea,
+.yui-cssreset select {
+ font-family:inherit;
+ font-size:inherit;
+ font-weight:inherit;
+}
+/*to enable resizing for IE*/
+.yui-cssreset input,
+.yui-cssreset textarea,
+.yui-cssreset select {
+ *font-size:100%;
+}
+/*because legend doesn't inherit in IE */
+.yui-cssreset legend {
+ color:#000;
+}
\ No newline at end of file
Added: root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/reset-fonts-grids.css
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/reset-fonts-grids.css (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/reset-fonts-grids.css 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,8 @@
+/*
+Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 2.5.2
+*/
+html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym {border:0;font-variant:normal;}sup {vertical-align:text-top;}sub {vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;}body {font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}table {font-size:inherit;font:100%;}pre,code,kbd,samp,tt{font-family:monospace;*font-size:108%;line-height:100%;}
+body{text-align:center;}#ft{clear:both;}#doc,#doc2,#doc3,#doc4,.yui-t1,.yui-t2,.yui-t3,.yui-t4,.yui-t5,.yui-t6,.yui-t7{margin:auto;text-align:left;width:57.69em;*width:56.25em;min-width:750px;}#doc2{width:73.076em;*width:71.25em;}#doc3{margin:auto 10px;width:auto;}#doc4{width:74.923em;*width:73.05em;}.yui-b{position:relative;}.yui-b{_position:static;}#yui-main .yui-b{position:static;}#yui-main{width:100%;}.yui-t1 #yui-main,.yui-t2 #yui-main,.yui-t3 #yui-main{float:right;margin-left:-25em;}.yui-t4 #yui-main,.yui-t5 #yui-main,.yui-t6 #yui-main{float:left;margin-right:-25em;}.yui-t1 .yui-b{float:left;width:12.30769em;*width:12.00em;}.yui-t1 #yui-main .yui-b{margin-left:13.30769em;*margin-left:13.05em;}.yui-t2 .yui-b{float:left;width:13.8461em;*width:13.50em;}.yui-t2 #yui-main .yui-b{margin-left:14.8461em;*margin-left:14.55em;}.yui-t3 .yui-b{float:left;width:23.0769em;*width:22.50em;}.yui-t3 #yui-main .yui-b{margin-left:24.0769em;*margin-left:23.62em;}.yui-t4 .yui-b{float:right!
;width:13.8456em;*width:13.50em;}.yui-t4 #yui-main .yui-b{margin-right:14.8456em;*margin-right:14.55em;}.yui-t5 .yui-b{float:right;width:18.4615em;*width:18.00em;}.yui-t5 #yui-main .yui-b{margin-right:19.4615em;*margin-right:19.125em;}.yui-t6 .yui-b{float:right;width:23.0769em;*width:22.50em;}.yui-t6 #yui-main .yui-b{margin-right:24.0769em;*margin-right:23.62em;}.yui-t7 #yui-main .yui-b{display:block;margin:0 0 1em 0;}#yui-main .yui-b{float:none;width:auto;}.yui-gb .yui-u,.yui-g .yui-gb .yui-u,.yui-gb .yui-g,.yui-gb .yui-gb,.yui-gb .yui-gc,.yui-gb .yui-gd,.yui-gb .yui-ge,.yui-gb .yui-gf,.yui-gc .yui-u,.yui-gc .yui-g,.yui-gd .yui-u{float:left;}.yui-g .yui-u,.yui-g .yui-g,.yui-g .yui-gb,.yui-g .yui-gc,.yui-g .yui-gd,.yui-g .yui-ge,.yui-g .yui-gf,.yui-gc .yui-u,.yui-gd .yui-g,.yui-g .yui-gc .yui-u,.yui-ge .yui-u,.yui-ge .yui-g,.yui-gf .yui-g,.yui-gf .yui-u{float:right;}.yui-g div.first,.yui-gb div.first,.yui-gc div.first,.yui-gd div.first,.yui-ge div.first,.yui-gf div.first,.y!
ui-g .yui-gc div.first,.yui-g .yui-ge div.first,.yui-gc div.fi!
rst div.
first{float:left;}.yui-g .yui-u,.yui-g .yui-g,.yui-g .yui-gb,.yui-g .yui-gc,.yui-g .yui-gd,.yui-g .yui-ge,.yui-g .yui-gf{width:49.1%;}.yui-gb .yui-u,.yui-g .yui-gb .yui-u,.yui-gb .yui-g,.yui-gb .yui-gb,.yui-gb .yui-gc,.yui-gb .yui-gd,.yui-gb .yui-ge,.yui-gb .yui-gf,.yui-gc .yui-u,.yui-gc .yui-g,.yui-gd .yui-u{width:32%;margin-left:1.99%;}.yui-gb .yui-u{*margin-left:1.9%;*width:31.9%;}.yui-gc div.first,.yui-gd .yui-u{width:66%;}.yui-gd div.first{width:32%;}.yui-ge div.first,.yui-gf .yui-u{width:74.2%;}.yui-ge .yui-u,.yui-gf div.first{width:24%;}.yui-g .yui-gb div.first,.yui-gb div.first,.yui-gc div.first,.yui-gd div.first{margin-left:0;}.yui-g .yui-g .yui-u,.yui-gb .yui-g .yui-u,.yui-gc .yui-g .yui-u,.yui-gd .yui-g .yui-u,.yui-ge .yui-g .yui-u,.yui-gf .yui-g .yui-u{width:49%;*width:48.1%;*margin-left:0;}.yui-g .yui-gb div.first,.yui-gb .yui-gb div.first{*margin-right:0;*width:32%;_width:31.7%;}.yui-g .yui-gc div.first,.yui-gd .yui-g{width:66%;}.yui-gb .yui-g div.first{*margin!
-right:4%;_margin-right:1.3%;}.yui-gb .yui-gc div.first,.yui-gb .yui-gd div.first{*margin-right:0;}.yui-gb .yui-gb .yui-u,.yui-gb .yui-gc .yui-u{*margin-left:1.8%;_margin-left:4%;}.yui-g .yui-gb .yui-u{_margin-left:1.0%;}.yui-gb .yui-gd .yui-u{*width:66%;_width:61.2%;}.yui-gb .yui-gd div.first{*width:31%;_width:29.5%;}.yui-g .yui-gc .yui-u,.yui-gb .yui-gc .yui-u{width:32%;_float:right;margin-right:0;_margin-left:0;}.yui-gb .yui-gc div.first{width:66%;*float:left;*margin-left:0;}.yui-gb .yui-ge .yui-u,.yui-gb .yui-gf .yui-u{margin:0;}.yui-gb .yui-gb .yui-u{_margin-left:.7%;}.yui-gb .yui-g div.first,.yui-gb .yui-gb div.first{*margin-left:0;}.yui-gc .yui-g .yui-u,.yui-gd .yui-g .yui-u{*width:48.1%;*margin-left:0;}s .yui-gb .yui-gd div.first{width:32%;}.yui-g .yui-gd div.first{_width:29.9%;}.yui-ge .yui-g{width:24%;}.yui-gf .yui-g{width:74.2%;}.yui-gb .yui-ge div.yui-u,.yui-gb .yui-gf div.yui-u{float:right;}.yui-gb .yui-ge div.first,.yui-gb .yui-gf div.first{float:left;}.yui-gb!
.yui-ge .yui-u,.yui-gb .yui-gf div.first{*width:24%;_width:20!
%;}.yui-
gb .yui-ge div.first,.yui-gb .yui-gf .yui-u{*width:73.5%;_width:65.5%;}.yui-ge div.first .yui-gd .yui-u{width:65%;}.yui-ge div.first .yui-gd div.first{width:32%;}#bd:after,.yui-g:after,.yui-gb:after,.yui-gc:after,.yui-gd:after,.yui-ge:after,.yui-gf:after{content:".";display:block;height:0;clear:both;visibility:hidden;}#bd,.yui-g,.yui-gb,.yui-gc,.yui-gd,.yui-ge,.yui-gf{zoom:1;}
\ No newline at end of file
Added: root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/reset.css
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/reset.css (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/reset.css 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,125 @@
+/*
+Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 3.0.0pr2
+*/
+/*
+ TODO will need to remove settings on HTML since we can't namespace it.
+ TODO with the prefix, should I group by selector or property for weight savings?
+*/
+html{
+ color:#000;
+ background:#FFF;
+}
+/*
+ TODO remove settings on BODY since we can't namespace it.
+*/
+/*
+ TODO test putting a class on HEAD.
+ - Fails on FF.
+*/
+body,
+div,
+dl,
+dt,
+dd,
+ul,
+ol,
+li,
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
+pre,
+code,
+form,
+fieldset,
+legend,
+input,
+textarea,
+p,
+blockquote,
+th,
+td {
+ margin:0;
+ padding:0;
+}
+table {
+ border-collapse:collapse;
+ border-spacing:0;
+}
+fieldset,
+img {
+ border:0;
+}
+/*
+ TODO think about hanlding inheritence differently, maybe letting IE6 fail a bit...
+*/
+address,
+caption,
+cite,
+code,
+dfn,
+em,
+strong,
+th,
+var {
+ font-style:normal;
+ font-weight:normal;
+}
+/*
+ TODO Figure out where this list-style rule is best set. Hedger has a request to investigate.
+*/
+li {
+ list-style:none;
+}
+
+caption,
+th {
+ text-align:left;
+}
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ font-size:100%;
+ font-weight:normal;
+}
+q:before,
+q:after {
+ content:'';
+}
+abbr,
+acronym {
+ border:0;
+ font-variant:normal;
+}
+/* to preserve line-height and selector appearance */
+sup {
+ vertical-align:text-top;
+}
+sub {
+ vertical-align:text-bottom;
+}
+input,
+textarea,
+select {
+ font-family:inherit;
+ font-size:inherit;
+ font-weight:inherit;
+}
+/*to enable resizing for IE*/
+input,
+textarea,
+select {
+ *font-size:100%;
+}
+/*because legend doesn't inherit in IE */
+legend {
+ color:#000;
+}
\ No newline at end of file
Added: root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/simple.css
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/simple.css (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/CSS/yuiLayouts/simple.css 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,117 @@
+body {
+ background: #CACACA url(../images/background.png) repeat-x;
+ font-family: "Trebuchet MS", Verdana, serif
+}
+#container {
+ margin: 0 auto;
+ width: 750px
+}
+#header {
+ width: 100%
+}
+#sub_header {
+ text-align: right;
+ font-weight: bold;
+ font-size: 20px;
+ color: #FFFFFF;
+ padding-right: 20px;
+ padding-bottom: 20px;
+}
+#main_content {
+ margin: 0 auto;
+ width: 100%;
+ background: #FFFFFF url('../images/background_content.gif');
+ background-repeat: repeat-y
+}
+#main_content_top {
+ height: 30px;
+ background: #FFFFFF url('../images/background_top.gif');
+}
+#main_content_bottom {
+ height: 30px;
+ background: #FFFFFF url('../images/background_bottom.gif');
+}
+#footer {
+ text-align: center;
+ font-size: 12px;
+ margin: 10px auto
+}
+.content {
+ float: left;
+ width: 510px;
+ text-align: justify;
+ padding: 0 30px 0 30px;
+ font-size: 12px
+}
+.menu {
+ width: 139px;
+ float: right;
+ padding: 0 20px 0 20px;
+ border-left: #8C8484 1px solid;
+ font-size: 12px
+}
+.menu ul {
+ margin: 0;
+ padding: 10px 0 10px 15px
+}
+.menu il {
+ list-style-type: disc
+}
+#header h1 {
+ margin-bottom: 0px;
+ font-size: 28px;
+ font-weight: bold;
+ color: #A40008
+}
+.content h2 {
+ margin-top: 0px;
+ font-size: 18px;
+ font-weight: bold;
+ color: #A40008
+}
+#clear {
+ display: block;
+ clear: both;
+ width: 100%;
+ height:1px;
+ overflow:hidden;
+}
+.menu_title {
+ font-size: 18px;
+ font-weight: bold;
+ color: #A40008
+}
+.menu ul {
+ margin: 0;
+ padding: 10px 0 20px 15px
+}
+.menu li {
+ padding-top: 2px;
+ list-style-type: circle
+}
+a {
+ color: #A40008;
+ font-weight: bold;
+ text-decoration: none
+}
+a:hover {
+ color: #A40008;
+ font-weight: bold;
+ text-decoration: underline
+}
+a.menu_link {
+ color: #000000;
+ font-weight: bold;
+ text-decoration: underline
+}
+a.menu_link:hover {
+ color: #A40008;
+ font-weight: bold;
+ text-decoration: none
+}
+.quote {
+ margin: 20px;
+ text-align: center;
+ font-weight: bold;
+ font-style: italic
+}
\ No newline at end of file
Added: root/examples/trunk/richfaces-demo/src/main/webapp/images/richfaces-banner.png
===================================================================
(Binary files differ)
Property changes on: root/examples/trunk/richfaces-demo/src/main/webapp/images/richfaces-banner.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: root/examples/trunk/richfaces-demo/src/main/webapp/index.jsp
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/index.jsp (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/index.jsp 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,7 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head></head>
+ <body>
+ <jsp:forward page="/welcome.jsf" />
+ </body>
+</html>
\ No newline at end of file
Added: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/jsFunction/usage.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/jsFunction/usage.xhtml (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/jsFunction/usage.xhtml 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,33 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:a4j="http://richfaces.org/a4j">
+
+ <ui:composition>
+ <table width="400">
+ <tbody>
+ <tr>
+ <td><span onmouseover="updateName('Kate')"
+ onmouseout="updateName('')">Kate</span></td>
+ <td><span onmouseover="updateName('John')"
+ onmouseout="updateName('')">John</span></td>
+ <td><span onmouseover="updateName('Alex')"
+ onmouseout="updateName('')">Alex</span></td>
+ </tr>
+ <tr>
+ <td colspan="3">Name: <b><h:outputText id="showname"
+ value="#{functionBean.text}" /></b></td>
+ </tr>
+ </tbody>
+ </table>
+ <h:form>
+ <a4j:jsFunction name="updateName" render="showname"
+ action="#{functionBean.processHover}">
+ <f:param name="name" />
+ </a4j:jsFunction>
+ </h:form>
+ </ui:composition>
+
+</html>
\ No newline at end of file
Added: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/jsFunction.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/jsFunction.xhtml (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/jsFunction.xhtml 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="body">
+ <p>
+ Description for JS Function goes there.
+ </p>
+ <fieldset>
+ <legend>JS Function Sample</legend>
+ <ui:include src="/richfaces/jsFunction/usage.xhtml" />
+ </fieldset>
+ </ui:define>
+</ui:composition>
+
+</html>
\ No newline at end of file
Added: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/mediaOutput/flashUsage.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/mediaOutput/flashUsage.xhtml (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/mediaOutput/flashUsage.xhtml 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,37 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:a4j="http://richfaces.org/a4j">
+
+ <ui:composition>
+
+
+ <p>SWF Movie:</p>
+ <a4j:outputPanel id="flashPanelDynamic">
+
+ <a4j:mediaOutput element="a" id="swfLink" style="display: none;" cacheable="false" session="true"
+ createContent="#{mediaBean.paintFlash}" value="#{mediaData}" />
+
+ <a4j:outputPanel layout="block" id="myFlashContent" style="width: 200px; height: 200px">
+ <a href="http://www.adobe.com/go/getflashplayer">
+ <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
+ </a>
+ </a4j:outputPanel>
+
+ <script type="text/javascript">
+ var flashvars = {};
+ var params = {};
+ var attributes = {};
+ swfobject.embedSWF('swfLink').href, $('myFlashContent')", "200", "200", "9.0.0", false, flashvars, params, attributes);
+ </script>
+
+ </a4j:outputPanel>
+
+ <br />
+ <br />
+
+ </ui:composition>
+
+</html>
\ No newline at end of file
Added: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/mediaOutput/imgUsage.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/mediaOutput/imgUsage.xhtml (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/mediaOutput/imgUsage.xhtml 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,16 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:a4j="http://richfaces.org/a4j">
+
+ <ui:composition>
+ <p>Dynamically generated JPEG file:</p>
+
+ <a4j:mediaOutput element="img" cacheable="false" session="true"
+ createContent="#{mediaBean.paint}" value="#{mediaData}" mimeType="image/jpeg" />
+ <br/><br/>
+ </ui:composition>
+
+</html>
\ No newline at end of file
Added: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,23 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="body">
+ <p>
+ Description for Media output goes there.
+ </p>
+ <fieldset>
+ <legend>Image output</legend>
+ <ui:include src="/richfaces/mediaOutput/imgUsage.xhtml" />
+ </fieldset>
+ <fieldset>
+ <legend>Flash output</legend>
+ <ui:include src="/richfaces/mediaOutput/flashUsage.xhtml" />
+ </fieldset>
+ </ui:define>
+</ui:composition>
+
+</html>
\ No newline at end of file
Added: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/push/usage.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/push/usage.xhtml (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/push/usage.xhtml 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,48 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:a4j="http://richfaces.org/a4j">
+
+<ui:composition>
+ <h:form>
+ <h:dataTable value="#{choicesBean.choices}" var="choice" id="choiceVotes">
+ <f:facet name="header">
+ <h:outputText value="Voting for favourite fruit" />
+ </f:facet>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Choice name" />
+ </f:facet>
+ <h:outputText value="#{choice.label}" id="choiceLabel" />
+ </h:column>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Current Votes" />
+ </f:facet>
+ <h:outputText value="#{choice.votesCount}" id="choiceVotes" />
+ </h:column>
+ </h:dataTable>
+
+ <a4j:jsFunction name="start" action="#{choicesBean.start}" execute="@this" render="push, stop, start"/>
+ <a4j:jsFunction name="stop" action="#{choicesBean.stop}" execute="@this" render="push, stop, start"/>
+
+ <h:commandButton onclick="start()" value="Start" id="start" disabled="#{choicesBean.enabled}" type="button"/>
+
+ <h:commandButton onclick="stop()" type="button" value="Stop" id="stop" disabled="#{!choicesBean.enabled}"/>
+
+ <a4j:outputPanel layout="block" id="tempResults">
+ <h:outputText
+ value="Latest update votes was: #{choicesBean.updateInfo} at #{choicesBean.timeStamp}"
+ rendered="#{choicesBean.enabled}" />
+ </a4j:outputPanel>
+
+ <a4j:push enabled="#{choicesBean.enabled}" interval="3000"
+ eventProducer="#{choicesBean.addListener}" id="push">
+ <f:ajax render="choiceVotes push tempResults" action="#{choicesBean.processUpdates}"/>
+ </a4j:push>
+ </h:form>
+</ui:composition>
+
+</html>
\ No newline at end of file
Added: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/push.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/push.xhtml (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/push.xhtml 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+
+ <ui:composition template="/templates/main.xhtml">
+ <ui:define name="body">
+ <p>push description</p>
+ <fieldset>
+ <legend>
+ Push Sample
+ </legend>
+ <ui:include src="/richfaces/push/usage.xhtml" />
+ </fieldset>
+ </ui:define>
+ </ui:composition>
+
+</html>
\ No newline at end of file
Added: root/examples/trunk/richfaces-demo/src/main/webapp/templates/includes/navigation.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/templates/includes/navigation.xhtml (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/templates/includes/navigation.xhtml 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,11 @@
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:a4j="http://richfaces.org/a4j">
+ <h:panelGrid columns="1">
+ <h:outputLink value="#{facesContext.externalContext.requestContextPath}/richfaces/jsFunction.jsf">a4j:jsFunction</h:outputLink>
+ <h:outputLink value="#{facesContext.externalContext.requestContextPath}/richfaces/mediaOutput.jsf">a4j:mediaOutput</h:outputLink>
+ <h:outputLink value="#{facesContext.externalContext.requestContextPath}/richfaces/push.jsf">a4j:push</h:outputLink>
+ </h:panelGrid>
+</ui:composition>
Added: root/examples/trunk/richfaces-demo/src/main/webapp/templates/main.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/templates/main.xhtml (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/templates/main.xhtml 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,33 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+<h:head>
+ <link rel="stylesheet" type="text/css" href="#{facesContext.externalContext.requestContextPath}/CSS/yuiLayouts/reset-fonts-grids.css"/>
+ <link rel="stylesheet" type="text/css" href="#{facesContext.externalContext.requestContextPath}/CSS/yuiLayouts/grids.css"/>
+</h:head>
+<h:body>
+<div id="doc2" class="yui-t2"> <!-- change class to change preset -->
+ <div id="hd">
+ <center>RichFaces 4.0 Demo</center>
+ </div>
+ <div id="bd">
+ <div class="yui-b">
+ <ui:include src="/templates/includes/navigation.xhtml" />
+ </div>
+ <div id="yui-main">
+ <div class="yui-b">
+ <ui:insert name="body">
+ Body content missed
+ </ui:insert>
+ </div>
+ </div>
+ </div>
+ <div id="ft">
+ <i><center>Footer</center> </i>
+ </div>
+ </div>
+</h:body>
+</html>
\ No newline at end of file
Added: root/examples/trunk/richfaces-demo/src/main/webapp/welcome.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/welcome.xhtml (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/welcome.xhtml 2009-08-19 14:10:45 UTC (rev 15221)
@@ -0,0 +1,14 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+
+ <ui:composition template="/templates/main.xhtml">
+ <ui:define name="body">
+ Welcome To RichFaces 4.x Demo
+ </ui:define>
+
+ </ui:composition>
+
+</html>
\ No newline at end of file
15 years, 4 months
JBoss Rich Faces SVN: r15220 - in root/examples/trunk/richfaces-demo: src/main/webapp/WEB-INF and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2009-08-19 10:00:19 -0400 (Wed, 19 Aug 2009)
New Revision: 15220
Modified:
root/examples/trunk/richfaces-demo/pom.xml
root/examples/trunk/richfaces-demo/src/main/webapp/WEB-INF/web.xml
Log:
components gallery creation started
Modified: root/examples/trunk/richfaces-demo/pom.xml
===================================================================
--- root/examples/trunk/richfaces-demo/pom.xml 2009-08-19 12:57:20 UTC (rev 15219)
+++ root/examples/trunk/richfaces-demo/pom.xml 2009-08-19 14:00:19 UTC (rev 15220)
@@ -14,6 +14,38 @@
<groupId>org.richfaces.examples</groupId>
<artifactId>richfaces-demo</artifactId>
<packaging>war</packaging>
- <name>richfaces demo application </name>
+ <name>richfaces demo application </name>
-</project>
\ No newline at end of file
+<dependencies>
+ <dependency>
+ <groupId>org.richfaces.ui.components</groupId>
+ <artifactId>core-ui</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.cache</groupId>
+ <artifactId>jbosscache-core</artifactId>
+ <version>3.1.0.GA</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sf.ehcache</groupId>
+ <artifactId>ehcache</artifactId>
+ <version>1.6.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ <version>1.5.8</version>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-simple</artifactId>
+ <version>1.5.8</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+
+
+</project>
Modified: root/examples/trunk/richfaces-demo/src/main/webapp/WEB-INF/web.xml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/WEB-INF/web.xml 2009-08-19 12:57:20 UTC (rev 15219)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/WEB-INF/web.xml 2009-08-19 14:00:19 UTC (rev 15220)
@@ -1,8 +1,41 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
- id="richfaces-demo" version="2.5">
-
- <display-name>richfaces-demo</display-name>
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+ id="richfaces-demo" version="2.5">
+
+ <display-name>richfaces-demo</display-name>
+ <welcome-file-list>
+ <welcome-file>index.html</welcome-file>
+ <welcome-file>index.htm</welcome-file>
+ <welcome-file>index.jsp</welcome-file>
+ <welcome-file>default.html</welcome-file>
+ <welcome-file>default.htm</welcome-file>
+ <welcome-file>default.jsp</welcome-file>
+ </welcome-file-list>
+
+ <context-param>
+ <param-name>org.richfaces.SKIN</param-name>
+ <param-value>#{skinBean.skin}</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>javax.faces.PROJECT_STAGE</param-name>
+ <param-value>Development</param-value>
+ </context-param>
+
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>/faces/*</url-pattern>
+ </servlet-mapping>
</web-app>
\ No newline at end of file
15 years, 4 months
JBoss Rich Faces SVN: r15219 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2009-08-19 08:57:20 -0400 (Wed, 19 Aug 2009)
New Revision: 15219
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_dataOrderedList.xml
Log:
https://jira.jboss.org/jira/browse/RF-7684 - updated the component 'Details of usage' section;
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_dataOrderedList.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_dataOrderedList.xml 2009-08-19 12:47:11 UTC (rev 15218)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_dataOrderedList.xml 2009-08-19 12:57:20 UTC (rev 15219)
@@ -120,49 +120,23 @@
is used for a popup title.
</para>
- <para>
- The <emphasis role="bold">
- <property><rich:dataOrderedList></property>
- </emphasis>
- component could be partially updated with
- Ajax. The
- <emphasis>
- <property>"ajaxKeys"</property>
- </emphasis>
- attribute allows to define row keys that are updated after
- an Ajax request.
- </para>
- <para>Here is an example:</para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML">...
-<rich:dataOrderedList value="#{dataTableScrollerBean.allCars}" var="car" ajaxKeys="#{listBean.list}"
- binding="#{listBean.dataList}" id="list">
- ...
-</rich:dataOrderedList>
-...
-<a4j:commandButton action="#{listBean.action}" reRender="list" value="Submit"/>
-...
-</programlisting>
-
- <para>
- In the example
- <emphasis>
- <property>"reRender"</property>
- </emphasis>
- attribute contains value of the
- <emphasis>
- <property>"id"</property>
- </emphasis>
- attribute for the
- <emphasis role="bold">
- <property><rich:dataOrderedList></property>
- </emphasis>
- component. As a result the component is updated after an
- Ajax request.
- </para>
+ <para>
+ The <emphasis role="bold">
+ <property><rich:dataOrderedList></property>
+ </emphasis>
+ component could be partially updated with
+ Ajax. The
+ <emphasis>
+ <property>"ajaxKeys"</property>
+ </emphasis>
+ attribute points to an Object (java.util.Set) that should contain row keys to be updated after
+ an Ajax request. See an example of usage the
+ <emphasis>
+ <property>"ajaxKeys"</property>
+ </emphasis> attribute for the <emphasis role="bold">
+ <property><rich:dataList></property>
+ </emphasis> component in the <ulink url="http://www.jboss.org/community/wiki/UsingtheajaxKeysattributeforrichdataList">RichFacs Cookbook article</ulink>.
+ </para>
</section>
<section>
<title>Reference Data</title>
15 years, 4 months
JBoss Rich Faces SVN: r15218 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2009-08-19 08:47:11 -0400 (Wed, 19 Aug 2009)
New Revision: 15218
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_dataList.xml
Log:
https://jira.jboss.org/jira/browse/RF-7682- updated the component 'Details of usage' section;
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_dataList.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_dataList.xml 2009-08-19 12:28:28 UTC (rev 15217)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_dataList.xml 2009-08-19 12:47:11 UTC (rev 15218)
@@ -108,35 +108,16 @@
</mediaobject>
</figure>
- <para>The <emphasis role="bold">
- <property><rich:dataList></property>
- </emphasis>
- component could be partially updated with
- Ajax. The <emphasis>
- <property>"ajaxKeys"</property>
- </emphasis> attribute allows to define row keys that are updated after an Ajax request.</para>
- <para>Here is an example:</para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML">...
-<rich:dataList value="#{dataTableScrollerBean.allCars}" var="car" ajaxKeys="#{listBean.list}"
- binding="#{listBean.dataList}" id="list" rows="5" type="disc">
- ...
-</rich:dataList>
-...
-<a4j:commandButton action="#{listBean.action}" reRender="list" value="Submit"/>
-...
-</programlisting>
-
- <para> In the example <emphasis>
- <property>"reRender"</property>
- </emphasis> attribute contains the value of <emphasis>
- <property>"id"</property>
- </emphasis> attribute for <emphasis role="bold">
- <property><rich:dataList></property>
- </emphasis> component. As a result the component is updated after an Ajax request.</para>
+ <para>The <emphasis role="bold">
+ <property><rich:dataList></property>
+ </emphasis>
+ component could be partially updated with
+ Ajax. The <emphasis>
+ <property>"ajaxKeys"</property>
+ </emphasis> attribute points to an Object (java.util.Set) that contains row keys to be updated after an Ajax request.
+ See an example of usage the attribute in the
+ <ulink url="http://www.jboss.org/community/wiki/UsingtheajaxKeysattributeforrichdataList">Using the ajaxKeys attribute for <rich:dataList></ulink>
+ article in the RichFaces Cookbook.</para>
</section>
<section>
<title>Reference Data</title>
15 years, 4 months
JBoss Rich Faces SVN: r15217 - tags/3.3.2.CR1/framework/impl/src/main/java/org/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2009-08-19 08:28:28 -0400 (Wed, 19 Aug 2009)
New Revision: 15217
Modified:
tags/3.3.2.CR1/framework/impl/src/main/java/org/richfaces/VersionBean.java
Log:
change SVN revision and date
Modified: tags/3.3.2.CR1/framework/impl/src/main/java/org/richfaces/VersionBean.java
===================================================================
--- tags/3.3.2.CR1/framework/impl/src/main/java/org/richfaces/VersionBean.java 2009-08-19 12:03:21 UTC (rev 15216)
+++ tags/3.3.2.CR1/framework/impl/src/main/java/org/richfaces/VersionBean.java 2009-08-19 12:28:28 UTC (rev 15217)
@@ -39,7 +39,7 @@
*/
public static final String REVISION = "2.CR1";
- public static final String SCM_REVISION = " SVN $Revision$ $Date:) $";//$Revision$ $Date$";
+ public static final String SCM_REVISION = " SVN $Revision$ $Date$";//$Revision$ $Date$";
public static final Version _version = new Version();
public String getVendor() {
15 years, 4 months
JBoss Rich Faces SVN: r15216 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2009-08-19 08:03:21 -0400 (Wed, 19 Aug 2009)
New Revision: 15216
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
Log:
https://jira.jboss.org/jira/browse/RF-7716
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2009-08-19 12:00:52 UTC (rev 15215)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2009-08-19 12:03:21 UTC (rev 15216)
@@ -3639,7 +3639,7 @@
</section>
<section id="customstyles">
<title>Definition of Custom Style Classes</title>
- <para>In the "Reference Data" section for most of the components (see "The RichFaces Components" chapter)
+ <para>In the "Reference Data" section for most of the visual components (see "The RichFaces Components" chapter)
there are the tables with <code>rich-*</code> classes definitions. These classes allow to redefine styles for a specific component by means of CSS.
Actually, you should create classes with the same names and define new properties in them.</para>
15 years, 4 months