Author: mvitenkov
Date: 2008-07-02 08:25:11 -0400 (Wed, 02 Jul 2008)
New Revision: 9376
Modified:
trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml 2008-07-02
12:22:26 UTC (rev 9375)
+++ trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml 2008-07-02
12:25:11 UTC (rev 9376)
@@ -1,15 +1,20 @@
-<f:subview
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich" id="effectSubviewID">
-
+<f:subview
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich" id="effectSubviewID">
+
<rich:panel id="indexID">
- <a4j:commandLink value="Hide all"
onclick="hideFrm1(),hideFrm2(),hideFrm3(),hideFrm4(),hideFrm5()"></a4j:commandLink>
-
+ <a4j:commandLink value="Hide all"
+ onclick="hideFrm1(),hideFrm2(),hideFrm3(),hideFrm4(),hideFrm5()"></a4j:commandLink>
+
<f:verbatim>
<br />
</f:verbatim>
-
+
<h:outputText value="Menu:" />
- <h:panelGrid columns="2" >
+ <h:panelGrid columns="2">
<h:outputText value="1." />
<f:verbatim>
<span onclick="showFrm1(),hideIndexID()"><font
color="blue">JSF
@@ -50,8 +55,8 @@
<h:inputText value="#{effect.time}" />
<f:verbatim>
- <span onclick="hidePanel1(), hideImage1()"><font
color="blue">Hide Panel</font>
- </span>
+ <span onclick="hidePanel1(), hideImage1()"><font
color="blue">Hide
+ Panel</font> </span>
</f:verbatim>
<h:graphicImage value="/pics/fatal.gif"
onclick="hidePanel1(), hideImage1()" />
@@ -87,7 +92,7 @@
<h:panelGroup id="form_1b_ID">
<h:inputText value="onmouse and onclick">
- <rich:effect event="onclick" type="Fold"
+ <rich:effect event="onclick" type="Fold"
id="effectID"
params="duration:0.5,from:0.4,to:1.0" />
<rich:effect event="onmouseout" type="Highlight"
params="duration:0.5,from:1.0,to:0.4" />
@@ -179,14 +184,14 @@
</f:verbatim>
<h:outputText value="3. (Pulsate 3, Show 1)" />
<h:graphicImage id="img_3_ID" value="/pics/toshiba.jpg"
width="200px"
- height="150px" >
- <rich:effect event="onclick" type="Pulsate"/>
+ height="150px">
+ <rich:effect event="onclick" type="Pulsate" />
</h:graphicImage>
<rich:effect event="onclick" for="img_1_ID"
targetId="img_2_ID"
type="BlindDown" />
<rich:effect event="onclick" for="img_2_ID"
targetId="img_1_ID"
- type="Puff" />
+ type="Puff" />
<rich:effect event="onclick" for="img_3_ID"
targetId="img_1_ID"
type="Grow" params="duration:0.8" />
@@ -211,14 +216,14 @@
<h:graphicImage value="/pics/warn.gif"
onclick="showRichPanel()" />
<f:verbatim>
- <span onclick="hideRichTabPanel()"><font
color="blue">Hide Tab
- Panel</font> </span>
+ <span onclick="hideRichTabPanel()"><font
color="blue">Hide
+ Tab Panel</font> </span>
</f:verbatim>
<h:graphicImage value="/pics/fatal.gif"
onclick="hideRichTabPanel()" />
<f:verbatim>
- <span onclick="showRichTabPanel()"><font
color="blue">Show Tab
- Panel</font> </span>
+ <span onclick="showRichTabPanel()"><font
color="blue">Show
+ Tab Panel</font> </span>
</f:verbatim>
<h:graphicImage value="/pics/warn.gif"
onclick="showRichTabPanel()" />
</h:panelGrid>
@@ -259,11 +264,15 @@
params="duration:0.4,from:0.4,to:1.0" />
</rich:tabPanel>
- <rich:effect for="richPanelID" event=""
name="hideRichPanel" type="Fade" />
- <rich:effect for="richPanelID" event=""
name="showRichPanel" type="Appear" />
+ <rich:effect for="richPanelID" event=""
name="hideRichPanel"
+ type="Fade" />
+ <rich:effect for="richPanelID" event=""
name="showRichPanel"
+ type="Appear" />
- <rich:effect for="tabPanelID" event=""
name="hideRichTabPanel" type="Fade" />
- <rich:effect for="tabPanelID" event=""
name="showRichTabPanel" type="Appear" />
+ <rich:effect for="tabPanelID" event=""
name="hideRichTabPanel"
+ type="Fade" />
+ <rich:effect for="tabPanelID" event=""
name="showRichTabPanel"
+ type="Appear" />
<f:verbatim>
<br />
@@ -290,5 +299,16 @@
<rich:effect for="frm5" name="hideFrm5" type="Fade"
/>
<rich:effect for="frm5" name="showFrm5" type="Appear"
/>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getParams"
reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('effectID').params}"
/>
+ </rich:column>
+ </h:panelGrid>
</f:subview>