Author: vkukharchuk
Date: 2007-07-11 11:12:41 -0400 (Wed, 11 Jul 2007)
New Revision: 1599
Modified:
trunk/docs/userguide/en/src/main/docbook/included/modalPanel.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
trunk/ui/tree/src/main/config/component/tree.xml
Log:
http://jira.jboss.com/jira/browse/RF-428
http://jira.jboss.com/jira/browse/RF-426
Modified: trunk/docs/userguide/en/src/main/docbook/included/modalPanel.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/modalPanel.desc.xml 2007-07-11
15:12:38 UTC (rev 1598)
+++ trunk/docs/userguide/en/src/main/docbook/included/modalPanel.desc.xml 2007-07-11
15:12:41 UTC (rev 1599)
@@ -29,11 +29,9 @@
<itemizedlist>
<listitem>Highly customizable look and feel</listitem>
-
- <listitem>Support of draggable operations and size changes by a
- user</listitem>
-
+ <listitem>Support of draggable operations and size changes by a
user</listitem>
<listitem>Easy positioning for the modal dialog window</listitem>
+ <listitem>Possibility to restore of the previous component state on a page
(including position on the screen) after submitting and reloading</listitem>
</itemizedlist>
</section>
</section>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-07-11 15:12:38
UTC (rev 1598)
+++ trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-07-11 15:12:41
UTC (rev 1599)
@@ -241,7 +241,30 @@
</para>
<programlisting
role="JAVA">onshow="alert(event.parameters.param1)"</programlisting>
<para> Here, during modalPanel opening the value of a passing parameter is
output. </para>
-
+ <para>
+ There is a possibility to restore of the previous component state on a page (including
position on the screen) after submitting and reloading.
+ The modalPanel has some special attributes like 'showWhenRendered' and
'keepVisualState'.
+ </para>
+ <para>
+ showWhenRendered - This boolean attribute is used if modalPanel should be rendered
after first page loading.
+ </para>
+ <para>
+ keepVisualState - Used if modalPanel should save state after submission.
+ If keepVisualState=true then parameters which modalPanel has during opening should be
submitted and passed to new page.
+ </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+
+ <programlisting role="JAVA"><![CDATA[...
+<a href="javascript:Richfaces.showModalPanel('_panel',
{top:'10px', left:'10px', height:'400'});">Show</a>
+...
+ ]]></programlisting>
+ <para>
+ Here, if user opens modal dialog window using current link and after submits data then
modalPanel destination and height on new loaded page will be restored.
+ </para>
+
</section>
<section>
Modified: trunk/ui/tree/src/main/config/component/tree.xml
===================================================================
--- trunk/ui/tree/src/main/config/component/tree.xml 2007-07-11 15:12:38 UTC (rev 1598)
+++ trunk/ui/tree/src/main/config/component/tree.xml 2007-07-11 15:12:41 UTC (rev 1599)
@@ -211,20 +211,31 @@
<property>
<name>stateAdvisor</name>
<classname>java.lang.Object</classname>
- <description>
+ <description>
+ValueBinding pointing at instance of class implementing
org.richfaces.component.state.TreeStateAdvisor interface.
</description>
</property>
<property>
<name>adviseNodeOpened</name>
<classname>javax.faces.el.MethodBinding</classname>
- <description>
+ <description>
+MethodBinding pointing at a method accepting an org.richfaces.component.UITree with
return of java.lang.Boolean type.
+If returned value is:
+java.lang.Boolean. TRUE, a particular treeNode is expanded;
+java.lang.Boolean.FALSE, a particular treeNode is collapsed;
+null, a particular treeNode saves the current state
</description>
<methodargs>org.richfaces.component.UITree.class</methodargs>
</property>
<property>
<name>adviseNodeSelected</name>
<classname>javax.faces.el.MethodBinding</classname>
- <description>
+ <description>
+MethodBinding pointing at a method accepting an org.richfaces.component.UITree with
return of java.lang.Boolean type.
+If returned value is:
+java.lang.Boolean. TRUE, a particular treeNode is selected;
+java.lang.Boolean.FALSE, a particular treeNode is unselected;
+null, a particular treeNode saves the current state
</description>
<methodargs>org.richfaces.component.UITree.class</methodargs>
</property>