Author: mvitenkov
Date: 2008-07-01 12:21:12 -0400 (Tue, 01 Jul 2008)
New Revision: 9330
Modified:
trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.jsp
Log:
+findComponent
Modified:
trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.jsp
===================================================================
---
trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.jsp 2008-07-01
16:18:28 UTC (rev 9329)
+++
trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.jsp 2008-07-01
16:21:12 UTC (rev 9330)
@@ -4,46 +4,59 @@
<%@ taglib
uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="iNSpinnerPropertySubviewID">
- <h:panelGrid columns="2" cellpadding="10px"
border="1">
- <h:outputText value="Max: "></h:outputText>
- <h:inputText value="#{inputNumberSpinner.max}">
- <a4j:support reRender="SpinnerID"
event="onchange"></a4j:support>
- </h:inputText>
+ <h:panelGrid columns="2" cellpadding="10px"
border="1">
+ <h:outputText value="Max: "></h:outputText>
+ <h:inputText value="#{inputNumberSpinner.max}">
+ <a4j:support reRender="SpinnerID"
event="onchange"></a4j:support>
+ </h:inputText>
- <h:outputText value="Min: "></h:outputText>
- <h:inputText value="#{inputNumberSpinner.min}">
- <a4j:support reRender="SpinnerID"
event="onchange"></a4j:support>
- </h:inputText>
+ <h:outputText value="Min: "></h:outputText>
+ <h:inputText value="#{inputNumberSpinner.min}">
+ <a4j:support reRender="SpinnerID"
event="onchange"></a4j:support>
+ </h:inputText>
- <h:outputText value="Step: "></h:outputText>
- <h:inputText value="#{inputNumberSpinner.step}">
- <a4j:support reRender="SpinnerID"
event="onchange"></a4j:support>
- </h:inputText>
+ <h:outputText value="Step: "></h:outputText>
+ <h:inputText value="#{inputNumberSpinner.step}">
+ <a4j:support reRender="SpinnerID"
event="onchange"></a4j:support>
+ </h:inputText>
- <h:outputText value="Size: "></h:outputText>
- <h:inputText value="#{inputNumberSpinner.inputSize}">
- <a4j:support reRender="SpinnerID"
event="onchange"></a4j:support>
- </h:inputText>
+ <h:outputText value="Size: "></h:outputText>
+ <h:inputText value="#{inputNumberSpinner.inputSize}">
+ <a4j:support reRender="SpinnerID"
event="onchange"></a4j:support>
+ </h:inputText>
- <h:outputText value="Cycled:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSpinner.cycled}">
- <a4j:support event="onclick"
reRender="SpinnerID"></a4j:support>
- </h:selectBooleanCheckbox>
+ <h:outputText value="Cycled:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSpinner.cycled}">
+ <a4j:support event="onclick"
reRender="SpinnerID"></a4j:support>
+ </h:selectBooleanCheckbox>
- <h:outputText value="Manual Input:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSpinner.manualInput}">
- <a4j:support event="onclick"
reRender="SpinnerID"></a4j:support>
- </h:selectBooleanCheckbox>
+ <h:outputText value="Manual Input:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSpinner.manualInput}">
+ <a4j:support event="onclick"
reRender="SpinnerID"></a4j:support>
+ </h:selectBooleanCheckbox>
- <h:outputText value="Disabled:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSpinner.disabled}">
- <a4j:support event="onclick"
reRender="SpinnerID"></a4j:support>
- </h:selectBooleanCheckbox>
+ <h:outputText value="Disabled:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSpinner.disabled}">
+ <a4j:support event="onclick"
reRender="SpinnerID"></a4j:support>
+ </h:selectBooleanCheckbox>
- <h:outputText value="Rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSpinner.rendered}"
onclick="submit()">
- </h:selectBooleanCheckbox>
- <h:outputText value="Switch Styles:" />
- <h:commandButton action="#{inputNumberSpinner.doStyles}"
value="#{inputNumberSpinner.btnLabel}" />
- </h:panelGrid>
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSpinner.rendered}"
+ onclick="submit()">
+ </h:selectBooleanCheckbox>
+ <h:outputText value="Switch Styles:" />
+ <h:commandButton action="#{inputNumberSpinner.doStyles}"
+ value="#{inputNumberSpinner.btnLabel}" />
+ </h:panelGrid>
+ <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('SpinnerID').value}"
/>
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file