JBoss Rich Faces SVN: r14673 - branches/community/3.3.X/ui/editor/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2009-06-20 10:21:00 -0400 (Sat, 20 Jun 2009)
New Revision: 14673
Modified:
branches/community/3.3.X/ui/editor/src/main/config/component/editor.xml
Log:
https://jira.jboss.org/jira/browse/RF-6233 - unification of style attributes descriptions;
Modified: branches/community/3.3.X/ui/editor/src/main/config/component/editor.xml
===================================================================
--- branches/community/3.3.X/ui/editor/src/main/config/component/editor.xml 2009-06-20 14:18:16 UTC (rev 14672)
+++ branches/community/3.3.X/ui/editor/src/main/config/component/editor.xml 2009-06-20 14:21:00 UTC (rev 14673)
@@ -31,13 +31,13 @@
<property>
<name>style</name>
<classname>java.lang.String</classname>
- <description>CSS style(s) is/are to be applied when this component is rendered</description>
+ <description>Holds a fragment of a style sheet that applies to the component</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>styleClass</name>
<classname>java.lang.String</classname>
- <description>Corresponds to the HTML class attribute</description>
+ <description>Assigns one or more space-separated CSS class names to the component. Corresponds to the HTML "class" attribute.</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property hidden="true">
15 years, 8 months
JBoss Rich Faces SVN: r14672 - branches/community/3.3.X/ui/listShuttle/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2009-06-20 10:18:16 -0400 (Sat, 20 Jun 2009)
New Revision: 14672
Modified:
branches/community/3.3.X/ui/listShuttle/src/main/config/component/listShuttle.xml
Log:
https://jira.jboss.org/jira/browse/RF-6233 - unification of style attributes descriptions;
Modified: branches/community/3.3.X/ui/listShuttle/src/main/config/component/listShuttle.xml
===================================================================
--- branches/community/3.3.X/ui/listShuttle/src/main/config/component/listShuttle.xml 2009-06-20 14:09:33 UTC (rev 14671)
+++ branches/community/3.3.X/ui/listShuttle/src/main/config/component/listShuttle.xml 2009-06-20 14:18:16 UTC (rev 14672)
@@ -103,7 +103,10 @@
<name>columnClasses</name>
<classname>java.lang.String</classname>
<description>
- Comma-separated list of CSS classes for columns
+ Assigns one or more space-separated CSS class names to the columns. If the CSS class names are comma-separated,
+ each class will be assigned to a particular column in the order they follow in the attribute. If you have less class names than columns,
+ the class will be applied to every n-fold column where n is the order in which the class is listed in the attribute.
+ If there are more class names than columns, the overflow ones are ignored.
</description>
</property>
<property hidden="true" exist="true">
@@ -384,7 +387,10 @@
<name>rowClasses</name>
<classname>java.lang.String</classname>
<description>
- CSS class for a row
+ Assigns one or more space-separated CSS class names to the rows. If the CSS class names are comma-separated,
+ each class will be assigned to a particular row in the order they follow in the attribute. If you have less class names than rows,
+ the class will be applied to every n-fold row where n is the order in which the class is listed in the attribute.
+ If there are more class names than rows, the overflow ones are ignored.
</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
@@ -568,61 +574,61 @@
<property>
<name>listClass</name>
<classname>java.lang.String</classname>
- <description>CSS class for a list</description>
+ <description>Assigns one or more space-separated CSS class names to the component lists</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>disabledControlClass</name>
<classname>java.lang.String</classname>
- <description>CSS class for a disabled control</description>
+ <description>Assigns one or more space-separated CSS class names to the component disabled controls</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>topControlClass</name>
<classname>java.lang.String</classname>
- <description>CSS class for a "Top" control</description>
+ <description>Assigns one or more space-separated CSS class names to the 'Top' button</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>bottomControlClass</name>
<classname>java.lang.String</classname>
- <description>CSS class for a "Bottom" control</description>
+ <description>Assigns one or more space-separated CSS class names to the 'Bottom' button</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>upControlClass</name>
<classname>java.lang.String</classname>
- <description>CSS class for an "Up" control</description>
+ <description>Assigns one or more space-separated CSS class names to the 'Up' button</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>downControlClass</name>
<classname>java.lang.String</classname>
- <description>CSS class for a "Down" control</description>
+ <description>Assigns one or more space-separated CSS class names to the 'Down' button</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>copyAllControlClass</name>
<classname>java.lang.String</classname>
- <description>CSS class for a "Copy all" control</description>
+ <description>Assigns one or more space-separated CSS class names to the 'Copy all' button</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>removeAllControlClass</name>
<classname>java.lang.String</classname>
- <description>CSS class for "Remove all" control</description>
+ <description>Assigns one or more space-separated CSS class names to the 'Remove all' button</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>copyControlClass</name>
<classname>java.lang.String</classname>
- <description>CSS class for "Copy" control</description>
+ <description>Assigns one or more space-separated CSS class names to the 'Copy' button</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>removeControlClass</name>
<classname>java.lang.String</classname>
- <description>CSS class for a "Remove" control</description>
+ <description>Assigns one or more space-separated CSS class names to the 'Remove' button</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
15 years, 8 months
JBoss Rich Faces SVN: r14671 - branches/community/3.3.X/ui/calendar/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2009-06-20 10:09:33 -0400 (Sat, 20 Jun 2009)
New Revision: 14671
Modified:
branches/community/3.3.X/ui/calendar/src/main/config/component/calendar.xml
Log:
https://jira.jboss.org/jira/browse/RF-6233 - unification of style attributes descriptions;
Modified: branches/community/3.3.X/ui/calendar/src/main/config/component/calendar.xml
===================================================================
--- branches/community/3.3.X/ui/calendar/src/main/config/component/calendar.xml 2009-06-20 14:08:33 UTC (rev 14670)
+++ branches/community/3.3.X/ui/calendar/src/main/config/component/calendar.xml 2009-06-20 14:09:33 UTC (rev 14671)
@@ -285,34 +285,33 @@
<name>style</name>
<classname>java.lang.String</classname>
<description>
- CSS style(s) is/are to be applied when this component is
- rendered
+ Holds a fragment of a style sheet that applies to the component
</description>
</property>
<property>
<name>styleClass</name>
<classname>java.lang.String</classname>
<description>
- Corresponds to the HTML class attribute
+ Assigns one or more space-separated CSS class names to the component. Corresponds to the HTML "class" attribute.
</description>
</property>
<property>
<name>inputStyle</name>
<classname>java.lang.String</classname>
- <description>Style attribute for text field</description>
+ <description>Holds a fragment of a style sheet that applies to the component input field</description>
</property>
<property>
<name>inputClass</name>
<classname>java.lang.String</classname>
<description>
- Style Class attribute for the text field
+ Assigns one or more space-separated CSS class names to the component input field
</description>
</property>
<property>
<name>buttonClass</name>
<classname>java.lang.String</classname>
<description>
- Style Class attribute for the popup button
+ Assigns one or more space-separated CSS class names to the component popup button
</description>
</property>
<property>
@@ -537,7 +536,7 @@
<classname>java.lang.String</classname>
<description>
Should be binded to some JS function that will provide style classes
- for special sets of days highlighting.
+ for special sets of days highlighting
</description>
</property>
@@ -545,7 +544,7 @@
<name>isDayEnabled</name>
<classname>java.lang.String</classname>
<description>
- Should be binded to some JS function that returns day state.
+ Should be binded to some JS function that returns day state
</description>
</property>
<property>
15 years, 8 months
JBoss Rich Faces SVN: r14670 - branches/community/3.3.X/ui/pickList/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2009-06-20 10:08:33 -0400 (Sat, 20 Jun 2009)
New Revision: 14670
Modified:
branches/community/3.3.X/ui/pickList/src/main/config/component/picklist.xml
Log:
https://jira.jboss.org/jira/browse/RF-6233 - unification of style attributes descriptions;
Modified: branches/community/3.3.X/ui/pickList/src/main/config/component/picklist.xml
===================================================================
--- branches/community/3.3.X/ui/pickList/src/main/config/component/picklist.xml 2009-06-20 14:05:33 UTC (rev 14669)
+++ branches/community/3.3.X/ui/pickList/src/main/config/component/picklist.xml 2009-06-20 14:08:33 UTC (rev 14670)
@@ -222,26 +222,26 @@
<property>
<name>disabledStyle</name>
<classname>java.lang.String</classname>
- <description>CSS style rules to be applied to disabled controls</description>
+ <description>Holds a fragment of a style sheet that applies to the component disabled controls</description>
</property>
<property>
<name>disabledStyleClass</name>
<classname>java.lang.String</classname>
- <description>The disabledStyleClass for disabled controls</description>
+ <description>Assigns one or more space-separated CSS class names to the component disabled controls</description>
</property>
<property>
<name>enabledStyle</name>
<classname>java.lang.String</classname>
- <description>CSS style rules to be applied to enabled controls</description>
+ <description>Holds a fragment of a style sheet that applies to the component enabled controls</description>
</property>
<property>
<name>enabledStyleClass</name>
<classname>java.lang.String</classname>
- <description>The enabledStyleClass for enabled controls</description>
+ <description>Assigns one or more space-separated CSS class names to the component enabled controls</description>
</property>
<property>
@@ -259,14 +259,14 @@
<property>
<name>listClass</name>
<classname>java.lang.String</classname>
- <description>CSS class for a list</description>
+ <description>Assigns one or more space-separated CSS class names to the component lists</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>controlClass</name>
<classname>java.lang.String</classname>
- <description>CSS class for a list</description>
+ <description>Assigns one or more space-separated CSS class names to the component controls</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
15 years, 8 months
JBoss Rich Faces SVN: r14669 - branches/community/3.3.X/ui/layout/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2009-06-20 10:05:33 -0400 (Sat, 20 Jun 2009)
New Revision: 14669
Modified:
branches/community/3.3.X/ui/layout/src/main/config/component/page.xml
Log:
https://jira.jboss.org/jira/browse/RF-6233 - unification of style attributes descriptions;
Modified: branches/community/3.3.X/ui/layout/src/main/config/component/page.xml
===================================================================
--- branches/community/3.3.X/ui/layout/src/main/config/component/page.xml 2009-06-20 13:15:08 UTC (rev 14668)
+++ branches/community/3.3.X/ui/layout/src/main/config/component/page.xml 2009-06-20 14:05:33 UTC (rev 14669)
@@ -123,28 +123,28 @@
<name>headerClass</name>
<classname>java.lang.String</classname>
<description>
- A name of CSS class for the header
+ Assigns one or more space-separated CSS class names to the component header
</description>
</property>
<property>
<name>footerClass</name>
<classname>java.lang.String</classname>
<description>
- A name of CSS class for the footer
+ Assigns one or more space-separated CSS class names to the component footer
</description>
</property>
<property>
<name>bodyClass</name>
<classname>java.lang.String</classname>
<description>
- A name of CSS class for the body part of the page
+ Assigns one or more space-separated CSS class names to the body part of the page
</description>
</property>
<property>
<name>sidebarClass</name>
<classname>java.lang.String</classname>
<description>
- A name of CSS class for the side panel
+ Assigns one or more space-separated CSS class names to the component side panel
</description>
</property>
<!--
15 years, 8 months
JBoss Rich Faces SVN: r14668 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-06-20 09:15:08 -0400 (Sat, 20 Jun 2009)
New Revision: 14668
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/status.desc.xml
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/status.xml
Log:
RF-7407: a4j:status component description review
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/status.desc.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/status.desc.xml 2009-06-20 13:14:39 UTC (rev 14667)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/status.desc.xml 2009-06-20 13:15:08 UTC (rev 14668)
@@ -8,8 +8,7 @@
</keywordset>
</sectioninfo>
<title>Description</title>
- <para>The <emphasis role="bold">
- <property><a4j:status></property>
- </emphasis> component generates elements for displaying of the current Ajax requests status. There are two status modes: Ajax request is in process or finished.</para>
+ <para>The <emphasis role="bold"><property><a4j:status></property></emphasis> component generates elements for displaying of the current Ajax requests status.
+ There are two status modes: Ajax request is in process or finished.</para>
</section>
</root>
\ No newline at end of file
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/status.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/status.xml 2009-06-20 13:14:39 UTC (rev 14667)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/status.xml 2009-06-20 13:15:08 UTC (rev 14668)
@@ -36,7 +36,7 @@
</table></para>
<section>
- <title>Creating on a page</title>
+ <title>Creating the Component with a Page Tag</title>
<para>There are two ways to define elements indicating a request status :</para>
<itemizedlist>
<listitem><para>
@@ -99,7 +99,9 @@
</table>
</section>
<section>
- <title>Key attributes and ways of usage</title>
+
+
+ <title>Details of usage</title>
<para>There are two ways for the components or containers definition, which Ajax requests status is tracked by a component.<itemizedlist>
<listitem><para>
Definition with the <emphasis >
@@ -151,25 +153,18 @@
<section>
<title>Relevant resources links</title>
<para>
- <ulink
- url="http://wiki.jboss.org/wiki/RichFacesPleaseWaitBox">
- Here
- </ulink>
- you can find information on how to show a "Please Wait" box and
- block the input while the Ajax request is processed using combination of
- <emphasis role="bold">
- <property><a4j:status></property>
- </emphasis>
- and
- <emphasis role="bold">
- <property><rich:modalPanel></property>
- </emphasis>
- components
- .
+ Vizit <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/status.jsf?c=status">Status page</ulink> at RichFaces Livedemo for examples of component usage and their sources.
</para>
- <para>
- <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/status.jsf?c=status">On the component Live Demo page</ulink> you can see the example of <emphasis role="bold"
- ><property><a4j:status></property></emphasis> usage and sources for the given example.
- </para>
+ <para>
+ Useful articles at JBoss portal:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="http://wiki.jboss.org/wiki/RichFacesPleaseWaitBox">RichFacesPleaseWaitBox</ulink> describes how to show a "Please Wait" box and block the input while the Ajax request is processed using combination of <emphasis role="bold"><property><a4j:status></property></emphasis> and <emphasis role="bold"><property><rich:modalPanel></property></emphasis>.
+ </para>
+ </listitem>
+ </itemizedlist>
+
</section>
</chapter>
15 years, 8 months
JBoss Rich Faces SVN: r14667 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-06-20 09:14:39 -0400 (Sat, 20 Jun 2009)
New Revision: 14667
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/form.desc.xml
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/form.xml
Log:
RF-7406: a4j:form component description review:
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/form.desc.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/form.desc.xml 2009-06-20 13:14:16 UTC (rev 14666)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/form.desc.xml 2009-06-20 13:14:39 UTC (rev 14667)
@@ -8,8 +8,8 @@
</keywordset>
</sectioninfo>
<title>Description</title>
- <para>The <emphasis role="bold">
- <property><a4j:form></property>
- </emphasis> component is very similar to the same component from the JSF HTML library, the only slight difference is in generation of links inside and possibility of Ajax by-default submission.</para>
+ <para>
+ The <emphasis role="bold"><property><a4j:form></property></emphasis> component is very similar to JSF <emphasis role="bold"><property><h:form></property></emphasis> the only difference is in generation of links inside and possibility of default Ajax submission.
+ </para>
</section>
</chapter>
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/form.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/form.xml 2009-06-20 13:14:16 UTC (rev 14666)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/form.xml 2009-06-20 13:14:39 UTC (rev 14667)
@@ -36,7 +36,7 @@
</table>
<section>
- <title>Creating on a page</title>
+ <title>Creating the Component with a Page Tag</title>
<para>Component definition on a page is similar to definition of the original
component from JSF HTML library. </para>
<para>
@@ -61,8 +61,9 @@
...]]></programlisting>
</section>
<section>
- <title>Key attributes and ways of usage</title>
- <para>The difference with the original component is that all hidden fields
+ <title>Details of usahe</title>
+ <para>
+ The difference with the original component is that all hidden fields
required for command links are always rendered and it doesn't depend
on links rendering on the initial page. It solves the problem with
invalid links that weren't rendered on a page immediately, but after
@@ -97,44 +98,23 @@
...
</a4j:form>
]]></programlisting>
- <para>This example shows that in order to make <emphasis role="bold">
- <property><t:datascroller></property>
- </emphasis> submissions to be Ajax ones it's required only to
- place this <emphasis role="bold">
- <property><t:datascroller></property>
- </emphasis> into <emphasis role="bold">
- <property><a4j:form></property>
- </emphasis>. In the other case it is necessary to redefine renders for
- its child links elements that are defined as <emphasis role="bold">
- <property><h:commandLink></property>
- </emphasis> and can't be made Ajax ones with using e.g. <emphasis
- role="bold">
- <property><a4j:support></property>
- </emphasis>. </para>
- <para> With the help of <emphasis>
- <property>"limitToList"</property>
- </emphasis> attribute you can limit areas, which are updated after the
- responses. If <emphasis>
- <property>"limitToList"</property>
- </emphasis> is true, only the reRender attribute is taken in account.
- Therefore, if you use blocks of text wrapped with <emphasis
- role="bold">
- <property><a4j:outputPanel></property>
- </emphasis> and <code>ajaxRendered= "true"</code>,
- blocks of text are ignored. </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>
+ <para>
+ This example shows that in order to make <emphasis role="bold"><property><t:datascroller></property></emphasis> submissions to be Ajax ones it's required only to place this <emphasis role="bold"><property><t:datascroller></property></emphasis> into <emphasis role="bold"><property><a4j:form></property></emphasis>.
+ In the other case it is necessary to redefine renders for its child links elements that are defined as <emphasis role="bold"><property><h:commandLink></property></emphasis> and can't be made Ajax ones with using e.g. <emphasis role="bold"><property><a4j:support></property></emphasis>.
+ </para>
+ <para>
+ With the help of <emphasis><property>"limitToList"</property></emphasis> attribute you can limit areas, which are updated after the responses.
+ If <emphasis><property>"limitToList"</property></emphasis> is true, only the reRender attribute is taken in account.
+ Therefore, if you use blocks of text wrapped with <emphasis role="bold"><property><a4j:outputPanel></property></emphasis> and <code>ajaxRendered= "true"</code>, blocks of text are ignored.
+ </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>Relevant resources links</title>
<para>
- <ulink
- url="http://livedemo.exadel.com/richfaces-demo/richfaces/form.jsf?c=form"
- >On the component LiveDemo page</ulink> you can see the example of <emphasis
- role="bold">
- <property><a4j:form></property>
- </emphasis> usage and sources for the given example. </para>
+ Vizit <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/form.jsf?c=form">AjaxForm</ulink> at RichFaces Livedemo for examples of component usage and their sources.
+ a</para>
</section>
</chapter>
15 years, 8 months
JBoss Rich Faces SVN: r14666 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-06-20 09:14:16 -0400 (Sat, 20 Jun 2009)
New Revision: 14666
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/keepAlive.xml
Log:
RF-7377: a4j:keepAlive component description review:
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/keepAlive.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/keepAlive.xml 2009-06-19 19:55:44 UTC (rev 14665)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/keepAlive.xml 2009-06-20 13:14:16 UTC (rev 14666)
@@ -40,13 +40,13 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[<a4j:keepAlive beanName = "testBean"/>]]></programlisting>
- <para>Note, that to be put into the request scope the pointed bean should be
- registered inside faces-config.xml file and marked with
- <property>org.ajax4jsf.model.KeepAlive</property>
- annotation. </para>
<para>
- A bean instance in the request scope could also be saved directly through the declaration of <code>@KeepAlive</code> annotation inside the bean.
+ Note, that to be put into the request scope the pointed bean should be registered inside <code>faces-config.xml</code> file and marked with <code>org.ajax4jsf.model.KeepAlive</code> annotation.
+ A bean instance in the request scope could also be saved directly through the declaration of <code>@KeepAlive</code> annotation inside the bean.
</para>
+ <para>
+
+ </para>
</section>
<!-- There's no AjaxKeepAlive component nor AjaxKeepAlive class and it cannot be created programmatically and there's no need for that.
@@ -64,18 +64,11 @@
-->
<section>
- <title>Key attributes and ways of usage</title>
- <para> If a managed bean is declared with <property>request</property> scope in
- the configuration file with the help of <emphasis role="bold">
- <property><managed-bean-scope></property>
- </emphasis> tag then the life-time of this bean instance is valid only
- for the current request. Any attempts to make a reference to the bean
- instance after the request end will throw in Illegal Argument
- Exception by the server. To avoid these kinds of Exception, component
- <emphasis role="bold">
- <property><a4j:keepAlive></property>
- </emphasis> is used to maintain the state of the whole bean object
- among subsequent request. </para>
+ <title>Details of usage</title>
+ <para>
+ If a managed bean is declared with <property>request</property> scope in the configuration file with the help of <emphasis role="bold"><property><managed-bean-scope></property></emphasis> tag then the life-time of this bean instance is valid only for the current request. Any attempts to make a reference to the bean instance after the request end will throw in Illegal Argument Exception by the server.
+ To avoid these kinds of Exceptions component <emphasis role="bold"><property><a4j:keepAlive></property></emphasis> is used to maintain the state of the whole bean object among subsequent request.
+ </para>
<para>
<emphasis role="bold">Example:</emphasis>
@@ -83,39 +76,32 @@
<programlisting role="XML"><![CDATA[<a4j:keepAlive beanName = "#{myClass.testBean}"/>]]></programlisting>
- <para> The <emphasis>
- <property>"beanName"</property>
- </emphasis> attribute defines the request scope bean name
- you'd like to re-use. Note that this attribute must point to
- a legal JSF EL expression which resolves to a managed mean instance.
- For example for the above code the class definition may look like this
- one: </para>
- <programlisting role="JAVA"><![CDATA[class MyClass{
+ <para> The <emphasis><property>"beanName"</property></emphasis> attribute defines the request scope bean name you'd like to re-use. Note that this attribute must point to a legal JSF EL expression which resolves to a managed mean instance.
+ For example for the above code the class definition may look like this one:
+ </para>
+ <programlisting role="JAVA"><![CDATA[class MyClass{
...
private TestBean testBean;
// Getters and Setters for testBean.
...
}
]]></programlisting>
- <para> The <emphasis>
- <property>"ajaxOnly"</property>
- </emphasis> attribute declares whether the value of the bean should be
- available during a non-Ajax request. If the value of this attribute is
- "true" a request scope bean keeps the same value
- during Ajax requests from the given page. If a non-Ajax request is
- sent from this page the bean is re-created as a regular request scope
- bean. </para>
+
+ <para>
+ The <emphasis><property>"ajaxOnly"</property></emphasis> attribute declares whether the value of the bean should be available during a non-Ajax request.
+ If the value of this attribute is "true" a request scope bean keeps the same value during Ajax requests from the given page.
+ If a non-Ajax request is sent from this page the bean is re-created as a regular request scope bean.
+ </para>
</section>
+
<section>
<title>Relevant resources links</title>
- <para><ulink
- url="http://livedemo.exadel.com/richfaces-demo/richfaces/keepAlive.jsf?c=keepA..."
- >On the component LiveDemo page</ulink> you can see the example of <emphasis
- role="bold">
- <property><a4j:keepAlive></property>
- </emphasis> usage and sources for the given example. </para>
- <para> Some additional information about usage of component can be found on the<ulink
- url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104989"
- >Ajax4JSF Users Forum</ulink>. </para>
+ <para>
+ Vizit <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/keepAlive.jsf?c=keepA...">KeepAlive page</ulink> at RichFaces Livedemo for examples of component usage and their sources.
+ </para>
+
+ <para>
+ Search the <ulink url="http://www.jboss.org/index.html?module=bb&op=viewforum&f=261">RichFaces Users forum</ulink> for some additional information about usage of component.
+ </para>
</section>
</chapter>
15 years, 8 months
JBoss Rich Faces SVN: r14665 - branches/community/3.3.X/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2009-06-19 15:55:44 -0400 (Fri, 19 Jun 2009)
New Revision: 14665
Modified:
branches/community/3.3.X/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
Log:
Modified: branches/community/3.3.X/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
===================================================================
--- branches/community/3.3.X/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2009-06-19 19:24:39 UTC (rev 14664)
+++ branches/community/3.3.X/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2009-06-19 19:55:44 UTC (rev 14665)
@@ -480,8 +480,8 @@
var horizontalDirection = match[2];
var verticalDirection = match[1];
- var clientX = isNaN(e.clientX) ? Element.cumulativeOffset(this.parent).left + this.toolTip.horizontalOffset : e.clientX;
- var clientY = isNaN(e.clientY) ? Element.cumulativeOffset(this.parent).top + this.toolTip.verticalOffset : e.clientY;
+ var clientX = isNaN(e.clientX) ? Element.cumulativeOffset(this.parent).left + this.horizontalOffset : e.clientX;
+ var clientY = isNaN(e.clientY) ? Element.cumulativeOffset(this.parent).top + this.verticalOffset : e.clientY;
var coords = this.fitToolTip(clientX, clientY, elementDim, horizontalDirection, verticalDirection,
{'x':this.horizontalOffset, 'y':this.verticalOffset});
@@ -489,8 +489,8 @@
var x;
var y;
if(isNaN(event.clientX)){
- x = coords.x - offsets.left + oldLeft + this.toolTip.horizontalOffset;
- y = coords.y - offsets.top + oldTop + this.toolTip.verticalOffset;
+ x = coords.x - offsets.left + oldLeft + this.horizontalOffset;
+ y = coords.y - offsets.top + oldTop + this.verticalOffset;
}else{
x = coords.x - offsets.left + (event.pageX - event.clientX) + oldLeft;
y = coords.y - offsets.top + (event.pageY - event.clientY) + oldTop;
15 years, 8 months
JBoss Rich Faces SVN: r14664 - in branches/community/3.3.X/examples/photoalbum/source/web/src/main: webapp/WEB-INF and 5 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2009-06-19 15:24:39 -0400 (Fri, 19 Jun 2009)
New Revision: 14664
Added:
branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/includes/image/imageGeneralInfo.xhtml
branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/includes/image/imageHeaderInfo.xhtml
Modified:
branches/community/3.3.X/examples/photoalbum/source/web/src/main/java/org/richfaces/photoalbum/manager/Authenticator.java
branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/WEB-INF/web.xml
branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/includes/album/createAlbum.xhtml
branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/includes/image.xhtml
branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/includes/image/imageEditInfo.xhtml
branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/includes/image/imageInfo.xhtml
branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/includes/imageEdit.xhtml
branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/includes/index/header.xhtml
branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/includes/userPrefs/userPrefsEdit.xhtml
Log:
Modified: branches/community/3.3.X/examples/photoalbum/source/web/src/main/java/org/richfaces/photoalbum/manager/Authenticator.java
===================================================================
--- branches/community/3.3.X/examples/photoalbum/source/web/src/main/java/org/richfaces/photoalbum/manager/Authenticator.java 2009-06-19 19:17:57 UTC (rev 14663)
+++ branches/community/3.3.X/examples/photoalbum/source/web/src/main/java/org/richfaces/photoalbum/manager/Authenticator.java 2009-06-19 19:24:39 UTC (rev 14664)
@@ -123,6 +123,9 @@
return Constants.LOGOUT_OUTCOME;
}
+ public void resetCredentials(){
+ credentials.clear();
+ }
/**
* Method, that invoked when user try to register in the application.
* If registration was successfull, user immediately will be loginned to the system.
Modified: branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/WEB-INF/web.xml
===================================================================
--- branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/WEB-INF/web.xml 2009-06-19 19:17:57 UTC (rev 14663)
+++ branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/WEB-INF/web.xml 2009-06-19 19:24:39 UTC (rev 14664)
@@ -70,10 +70,7 @@
<param-value>/WEB-INF/tags/photoalbum-taglib.xml</param-value>
</context-param>
- <context-param>
- <param-name>facelets.REFRESH_PERIOD</param-name>
- <param-value>${environment.facelets.REFRESH_PERIOD}</param-value>
- </context-param>
+
<context-param>
<param-name>org.richfaces.LoadScriptStrategy</param-name>
Modified: branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/includes/album/createAlbum.xhtml
===================================================================
(Binary files differ)
Modified: branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/includes/image/imageEditInfo.xhtml
===================================================================
(Binary files differ)
Added: branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/includes/image/imageGeneralInfo.xhtml
===================================================================
(Binary files differ)
Property changes on: branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/includes/image/imageGeneralInfo.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added: branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/includes/image/imageHeaderInfo.xhtml
===================================================================
(Binary files differ)
Property changes on: branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/includes/image/imageHeaderInfo.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Modified: branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/includes/image/imageInfo.xhtml
===================================================================
(Binary files differ)
Modified: branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/includes/image.xhtml
===================================================================
(Binary files differ)
Modified: branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/includes/imageEdit.xhtml
===================================================================
(Binary files differ)
Modified: branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/includes/index/header.xhtml
===================================================================
(Binary files differ)
Modified: branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/includes/userPrefs/userPrefsEdit.xhtml
===================================================================
(Binary files differ)
15 years, 8 months