Author: ilya_shaikovsky
Date: 2008-03-14 09:01:01 -0400 (Fri, 14 Mar 2008)
New Revision: 6807
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/mpusage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/modalPanel/usage.xhtml
Log:
http://jira.jboss.com/jira/browse/RF-2136
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/mpusage.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/mpusage.xhtml 2008-03-14
11:53:28 UTC (rev 6806)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/mpusage.xhtml 2008-03-14
13:01:01 UTC (rev 6807)
@@ -20,8 +20,10 @@
<br/>
<h:outputText value="Closure link (X) works also through Component
Control"></h:outputText>
</rich:modalPanel>
+ <rich:spacer height="10px" width="100%"/>
<h:outputLink value="#" id="link">
Show Modal Panel
<rich:componentControl for="panel" attachTo="link"
operation="show" event="onclick"/>
</h:outputLink>
+ <rich:spacer height="10px" width="100%"/>
</f:subview>
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/modalPanel/usage.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/modalPanel/usage.xhtml 2008-03-14
11:53:28 UTC (rev 6806)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/modalPanel/usage.xhtml 2008-03-14
13:01:01 UTC (rev 6807)
@@ -24,6 +24,19 @@
</ui:include>
</div>
+ <p>
+ Modal Panel could be also managed with <b>rich:componentControl</b>
component.
+ Next example shows the code which should be used:
+ </p>
+ <div class="sample-container">
+
+ <ui:include
src="/richfaces/componentControl/examples/mpusage.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath"
value="/richfaces/componentControl/examples/mpusage.xhtml"/>
+ <ui:param name="openlabel" value="View Page Source" />
+ </ui:include>
+
+ </div>
<p>The modal panel has an absolute layout.There is no reason to put in on the
page
where it is called.If you want to perform submits from this modal panel, you should
have a separate form inside it.
In this case, the panel must be declared outside of the other form on the same page.