Author: mvitenkov
Date: 2008-07-01 09:56:27 -0400 (Tue, 01 Jul 2008)
New Revision: 9320
Modified:
trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp
Log:
+findComponent
Modified: trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp 2008-07-01 13:52:45 UTC
(rev 9319)
+++ trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp 2008-07-01 13:56:27 UTC
(rev 9320)
@@ -4,16 +4,17 @@
<%@ taglib
uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview 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
@@ -54,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()" />
@@ -100,7 +101,7 @@
</h:panelGrid>
<rich:effect for="panel_1_ID" name="hidePanel1"
type="Fade"
- params="duration:#{effect.time}" />
+ params="duration:#{effect.time}" id="effectID"/>
<rich:effect for="panel_1_ID" name="showPanel1"
type="Appear" />
<rich:effect for="asusID" name="hideImage1"
type="Fold"
@@ -183,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" />
@@ -215,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>
@@ -263,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 />
@@ -294,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>