Author: mvitenkov
Date: 2008-07-02 08:34:19 -0400 (Wed, 02 Jul 2008)
New Revision: 9378
Modified:
trunk/test-applications/facelets/src/main/webapp/Gmap/GmapProperty.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/Gmap/GmapProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Gmap/GmapProperty.xhtml 2008-07-02
12:28:21 UTC (rev 9377)
+++ trunk/test-applications/facelets/src/main/webapp/Gmap/GmapProperty.xhtml 2008-07-02
12:34:19 UTC (rev 9378)
@@ -1,44 +1,65 @@
-<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="GmapPropertySubviewID">
- <h:panelGrid columns="2">
- <h:outputText value="mapType"></h:outputText>
- <h:selectOneMenu value="#{gmap.mapType}"
onchange="submit();">
- <f:selectItem itemLabel="G_NORMAL_MAP"
itemValue="G_NORMAL_MAP"/>
- <f:selectItem itemLabel="G_SATELLITE_MAP"
itemValue="G_SATELLITE_MAP"/>
- <f:selectItem itemLabel="G_HYBRID_MAP"
itemValue="G_HYBRID_MAP"/>
- </h:selectOneMenu>
+<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="GmapPropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="mapType"></h:outputText>
+ <h:selectOneMenu value="#{gmap.mapType}"
onchange="submit();">
+ <f:selectItem itemLabel="G_NORMAL_MAP" itemValue="G_NORMAL_MAP"
/>
+ <f:selectItem itemLabel="G_SATELLITE_MAP"
itemValue="G_SATELLITE_MAP" />
+ <f:selectItem itemLabel="G_HYBRID_MAP" itemValue="G_HYBRID_MAP"
/>
+ </h:selectOneMenu>
- <h:outputText value="enableInfoWindow:"></h:outputText>
- <h:selectBooleanCheckbox value="#{gmap.enableInfoWindow}"
onclick="submit()" ></h:selectBooleanCheckbox>
-
- <h:outputText value="showGLargeMapControl:"></h:outputText>
- <h:selectBooleanCheckbox value="#{gmap.showGLargeMapControl}"
onclick="submit()" ></h:selectBooleanCheckbox>
+ <h:outputText value="enableInfoWindow:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{gmap.enableInfoWindow}"
+ onclick="submit()"></h:selectBooleanCheckbox>
- <h:outputText value="showGMapTypeControl:"></h:outputText>
- <h:selectBooleanCheckbox value="#{gmap.showGMapTypeControl}"
onclick="submit()" ></h:selectBooleanCheckbox>
+ <h:outputText value="showGLargeMapControl:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{gmap.showGLargeMapControl}"
+ onclick="submit()"></h:selectBooleanCheckbox>
- <h:outputText value="showGScaleControl:"></h:outputText>
- <h:selectBooleanCheckbox value="#{gmap.showGScaleControl}"
onclick="submit()" ></h:selectBooleanCheckbox>
-
- <h:outputText value="warningMessage:"></h:outputText>
- <h:inputText value="#{gmap.warningMessage}" onclick="submit()"
></h:inputText>
-
- <h:outputText value="lng:"></h:outputText>
- <h:inputText value="#{gmap.lng}" onclick="submit()"
></h:inputText>
-
- <h:outputText value="lat:"></h:outputText>
- <h:inputText value="#{gmap.lat}" onclick="submit()"
></h:inputText>
-
- <h:outputText value="Dragging:" />
- <h:selectBooleanCheckbox value="#{gmap.dragging}"
onclick="submit()" />
+ <h:outputText value="showGMapTypeControl:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{gmap.showGMapTypeControl}"
+ onclick="submit()"></h:selectBooleanCheckbox>
- <h:outputText value="Continuous Zoom:" />
- <h:selectBooleanCheckbox value="#{gmap.continuousZoom}"
onclick="submit()" />
+ <h:outputText value="showGScaleControl:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{gmap.showGScaleControl}"
+ onclick="submit()"></h:selectBooleanCheckbox>
- <h:outputText value="Double Click Zoom:" />
- <h:selectBooleanCheckbox value="#{gmap.doubleClickZoom}"
onclick="submit()" />
-
- <h:outputText value="rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{gmap.rendered}"
onchange="submit();"></h:selectBooleanCheckbox>
- </h:panelGrid>
+ <h:outputText value="warningMessage:"></h:outputText>
+ <h:inputText value="#{gmap.warningMessage}"
onclick="submit()"></h:inputText>
+
+ <h:outputText value="lng:"></h:outputText>
+ <h:inputText value="#{gmap.lng}"
onclick="submit()"></h:inputText>
+
+ <h:outputText value="lat:"></h:outputText>
+ <h:inputText value="#{gmap.lat}"
onclick="submit()"></h:inputText>
+
+ <h:outputText value="Dragging:" />
+ <h:selectBooleanCheckbox value="#{gmap.dragging}"
onclick="submit()" />
+
+ <h:outputText value="Continuous Zoom:" />
+ <h:selectBooleanCheckbox value="#{gmap.continuousZoom}"
+ onclick="submit()" />
+
+ <h:outputText value="Double Click Zoom:" />
+ <h:selectBooleanCheckbox value="#{gmap.doubleClickZoom}"
+ onclick="submit()" />
+
+ <h:outputText value="rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{gmap.rendered}"
onchange="submit();"></h:selectBooleanCheckbox>
+ </h:panelGrid>
+ <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('gMapID').rendererType}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file