Author: mvitenkov
Date: 2008-07-02 09:49:57 -0400 (Wed, 02 Jul 2008)
New Revision: 9406
Modified:
trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarthProperty.xhtml
Log:
+findComponent
Modified:
trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarthProperty.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarthProperty.xhtml 2008-07-02
13:46:44 UTC (rev 9405)
+++
trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarthProperty.xhtml 2008-07-02
13:49:57 UTC (rev 9406)
@@ -1,14 +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="virtualEarthPropertySubviewID">
+<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="virtualEarthPropertySubviewID">
<h:panelGrid columns="2">
- <h:outputText value="lat(-97 < x < 97):"></h:outputText>
+ <h:outputText value="lat(-97< x < 97):"></h:outputText>
<h:inputText value="#{virtualEarth.lat}"
onchange="submit();"></h:inputText>
-
- <h:outputText value="lng(-180 < x < 180):"></h:outputText>
+
+ <h:outputText value="lng(-180< x < 180):"></h:outputText>
<h:inputText value="#{virtualEarth.lng}"
onchange="submit();"></h:inputText>
<h:outputText value="dashboardSize"></h:outputText>
- <h:selectOneMenu value="#{virtualEarth.dashboardSize}"
onchange="submit();">
+ <h:selectOneMenu value="#{virtualEarth.dashboardSize}"
+ onchange="submit();">
<f:selectItem itemLabel="Normal" itemValue="Normal" />
<f:selectItem itemLabel="Small" itemValue="Small" />
<f:selectItem itemLabel="Tiny" itemValue="Tiny" />
@@ -23,20 +29,27 @@
</h:selectOneMenu>
<h:outputText value="rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{virtualEarth.rendered}"
onchange="submit();"></h:selectBooleanCheckbox>
+ <h:selectBooleanCheckbox value="#{virtualEarth.rendered}"
+ onchange="submit();"></h:selectBooleanCheckbox>
</h:panelGrid>
<h:panelGroup>
<f:verbatim>
Dashboard:<br />
- <a href="javascript:void(0);" onclick="map.HideDashboard();return
false;">Remove</a>
- <a href="javascript:void(0);" onclick="map.ShowDashboard();return
false;">Show</a>
+ <a href="javascript:void(0);"
+ onclick="map.HideDashboard();return false;">Remove</a>
+ <a href="javascript:void(0);"
+ onclick="map.ShowDashboard();return false;">Show</a>
<br />
<br />
Type:<br />
- <a href="javascript:void(0);"
onclick="map.SetMapStyle(VEMapStyle.Road);return false;">Road</a>
- <a href="javascript:void(0);"
onclick="map.SetMapStyle(VEMapStyle.Aerial);return false;">Aerial</a>
- <a href="javascript:void(0);"
onclick="map.SetMapStyle(VEMapStyle.Hybrid);return false;">Hybrid</a>
- <a href="javascript:void(0);"
onclick="map.SetMapStyle(VEMapStyle.Birdseye);return
false;">Birdseye</a>
+ <a href="javascript:void(0);"
+ onclick="map.SetMapStyle(VEMapStyle.Road);return false;">Road</a>
+ <a href="javascript:void(0);"
+ onclick="map.SetMapStyle(VEMapStyle.Aerial);return
false;">Aerial</a>
+ <a href="javascript:void(0);"
+ onclick="map.SetMapStyle(VEMapStyle.Hybrid);return
false;">Hybrid</a>
+ <a href="javascript:void(0);"
+ onclick="map.SetMapStyle(VEMapStyle.Birdseye);return
false;">Birdseye</a>
<br />
<br />
Zoom:<br />
@@ -44,9 +57,23 @@
<a href="javascript:void(0);" onclick="map.ZoomOut();return
false;">Out</a>
<br />
<br />
- <a href="javascript:void(0);" onclick="showExadel();return
false;">Show Exadel Office</a>
+ <a href="javascript:void(0);" onclick="showExadel();return
false;">Show
+ Exadel Office</a>
<br />
- <a href="javascript:void(0);" onclick="showExadelInMinsk();return
false;">Show Exadel in Belarus</a>
+ <a href="javascript:void(0);"
+ onclick="showExadelInMinsk();return false;">Show Exadel in
+ Belarus</a>
</f:verbatim>
</h:panelGroup>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getRendererType"
reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText
value="#{rich:findComponent('vEarthID').rendererType}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file