Author: mvitenkov
Date: 2008-07-02 07:12:57 -0400 (Wed, 02 Jul 2008)
New Revision: 9362
Modified:
trunk/test-applications/facelets/src/main/webapp/Combobox/ComboboxProperty.xhtml
Log:
+findComponent
Modified:
trunk/test-applications/facelets/src/main/webapp/Combobox/ComboboxProperty.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/Combobox/ComboboxProperty.xhtml 2008-07-02
11:08:37 UTC (rev 9361)
+++
trunk/test-applications/facelets/src/main/webapp/Combobox/ComboboxProperty.xhtml 2008-07-02
11:12:57 UTC (rev 9362)
@@ -1,62 +1,96 @@
-
-
-
-
-
-<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="comboboxPropertySubviewID">
- <h:panelGrid columns="2">
- <h:outputText value="defaultLabel"></h:outputText>
- <h:inputText value="#{combobox.defaultLabel}"
onchange="submit();"></h:inputText>
-
- <h:outputText value="filterNewValues"></h:outputText>
- <h:selectBooleanCheckbox value="#{combobox.filterNewValues}"
onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="tabindex"></h:outputText>
- <h:inputText value="#{combobox.tabindex}"
onchange="submit();"></h:inputText>
-
- <h:outputText value="width"></h:outputText>
- <h:inputText value="#{combobox.width}"
onchange="submit();"></h:inputText>
-
- <h:outputText value="listHeight"></h:outputText>
- <h:inputText value="#{combobox.listHeight}"
onchange="submit();"></h:inputText>
-
- <h:outputText value="listWidth"></h:outputText>
- <h:inputText value="#{combobox.listWidth}"
onchange="submit();"></h:inputText>
-
- <h:outputText value="enableManualInput"></h:outputText>
- <h:selectBooleanCheckbox value="#{combobox.enableManualInput}"
onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="selectFirstOnUpdate"></h:outputText>
- <h:selectBooleanCheckbox value="#{combobox.selectFirstOnUpdate}"
onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="directInputSuggestions"></h:outputText>
- <h:selectBooleanCheckbox value="#{combobox.directInputSuggestions}"
onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="disabled"></h:outputText>
- <h:selectBooleanCheckbox value="#{combobox.disabled}"
onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="rendered"></h:outputText>
- <h:selectBooleanCheckbox value="#{combobox.rendered}"
onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="immediate"></h:outputText>
- <h:selectBooleanCheckbox value="#{combobox.immediate}"
onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="required"></h:outputText>
- <h:selectBooleanCheckbox value="#{combobox.required}"
onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="requiredMessage"></h:outputText>
+
+
+
+
+
+<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="comboboxPropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="defaultLabel"></h:outputText>
+ <h:inputText value="#{combobox.defaultLabel}"
onchange="submit();"></h:inputText>
+
+ <h:outputText value="filterNewValues"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.filterNewValues}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="tabindex"></h:outputText>
+ <h:inputText value="#{combobox.tabindex}"
onchange="submit();"></h:inputText>
+
+ <h:outputText value="width"></h:outputText>
+ <h:inputText value="#{combobox.width}"
onchange="submit();"></h:inputText>
+
+ <h:outputText value="listHeight"></h:outputText>
+ <h:inputText value="#{combobox.listHeight}"
onchange="submit();"></h:inputText>
+
+ <h:outputText value="listWidth"></h:outputText>
+ <h:inputText value="#{combobox.listWidth}"
onchange="submit();"></h:inputText>
+
+ <h:outputText value="enableManualInput"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.enableManualInput}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="selectFirstOnUpdate"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.selectFirstOnUpdate}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="directInputSuggestions"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.directInputSuggestions}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="disabled"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.disabled}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.rendered}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="immediate"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.immediate}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="required"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.required}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="requiredMessage"></h:outputText>
<h:inputText value="#{combobox.requiredMessage}"
onchange="submit();"></h:inputText>
-
- <h:commandButton actionListener="#{combobox.checkBinding}"
value="Binding"></h:commandButton>
+
+ <h:commandButton actionListener="#{combobox.checkBinding}"
+ value="Binding"></h:commandButton>
<h:outputText value="#{combobox.bindLabel}"></h:outputText>
-
+
<h:outputText value="align"></h:outputText>
- <h:inputText value="#{combobox.align}"
onchange="submit();"></h:inputText>
+ <h:inputText value="#{combobox.align}"
onchange="submit();"></h:inputText>
</h:panelGrid>
-
- <a4j:commandLink
onclick="$('formID:comboboxSubviewID:comboboxID').component.showList()"
value="showList"></a4j:commandLink> <br/>
- <a4j:commandLink
onclick="$('formID:comboboxSubviewID:comboboxID').component.hideList()"
value="hideList"></a4j:commandLink> <br/>
- <a4j:commandLink
onclick="$('formID:comboboxSubviewID:comboboxID').component.enable()"
value="enable"></a4j:commandLink> <br/>
- <a4j:commandLink
onclick="$('formID:comboboxSubviewID:comboboxID').component.disable()"
value="disable"></a4j:commandLink>
-
+
+ <a4j:commandLink
+ onclick="$('formID:comboboxSubviewID:comboboxID').component.showList()"
+ value="showList"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:comboboxSubviewID:comboboxID').component.hideList()"
+ value="hideList"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:comboboxSubviewID:comboboxID').component.enable()"
+ value="enable"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:comboboxSubviewID:comboboxID').component.disable()"
+ value="disable"></a4j:commandLink>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getValue"
reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('comboboxID').value}"
/>
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file