Author: vkorluzhenko
Date: 2007-07-31 05:34:24 -0400 (Tue, 31 Jul 2007)
New Revision: 1943
Modified:
trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
Log:
http://jira.jboss.com/jira/browse/RF-511
Modified: trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-07-31 01:59:25
UTC (rev 1942)
+++ trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-07-31 09:34:24
UTC (rev 1943)
@@ -263,7 +263,14 @@
]]></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>
- <para>You can use input or/and command components inside modalPanel. Simple
example of using
+ <para>if you need the content of the modalPanel to be submitted - you need to
remember two important rules: </para>
+ <itemizedlist>
+ <listitem>modalPanel must have its own form if it has form elements (input
or/and command
+ components) inside (as it was shown in the example above) </listitem>
+ <listitem>modalPanel must not be included into the form (on any level up) if
it has the
+ form inside.</listitem>
+ </itemizedlist>
+ <para>Simple example of using
commandButton within modalPanel is placed below.</para>
<emphasis role="bold">Example:</emphasis>
<programlisting role="XML"><![CDATA[...
@@ -278,18 +285,13 @@
<t:commandButton value="Test"
action="#{TESTCONTROLLER.test}" />
</h:form>
</rich:modalPanel>
-...
+ ...
+ <h:form>
+ <!--Some other Page content-->
+ </h:form>
+...
]]></programlisting>
- <para>
- <note>
- <title>Note:</title>Two rules are important for modalPanel:
<itemizedlist>
- <listitem>modalPanel must have its own form if it has form elements
(input or/and command
- components) inside (as it was shown in the example above) </listitem>
- <listitem>modalPanel must not be included into the form (on any level up)
if it has the
- form inside.</listitem>
- </itemizedlist></note>
- </para>
- <para>See also <ulink
+ <para>See also discussion about this problem on the <ulink
url="http://www.jboss.com/index.html?module=bb&op=viewtopic&...
RichFaces Users Forum</ulink>.</para>
</section>