Author: mvitenkov
Date: 2008-07-01 12:10:40 -0400 (Tue, 01 Jul 2008)
New Revision: 9327
Modified:
trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInputProperty.jsp
Log:
+findComponent
Modified:
trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInputProperty.jsp
===================================================================
---
trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInputProperty.jsp 2008-07-01
16:07:41 UTC (rev 9326)
+++
trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInputProperty.jsp 2008-07-01
16:10:40 UTC (rev 9327)
@@ -6,9 +6,9 @@
<f:subview id="inplaceInputPropertySubviewID">
<h:panelGrid columns="2">
<h:outputText value="value"></h:outputText>
- <h:outputText id="inplaceInputValueID"
value="#{inplaceInput.value}" >
- </h:outputText>
-
+ <h:outputText id="inplaceInputValueID"
value="#{inplaceInput.value}">
+ </h:outputText>
+
<h:outputText value="defaultLabel"></h:outputText>
<h:inputText value="#{inplaceInput.defaultLabel}"
onchange="submit();">
</h:inputText>
@@ -18,11 +18,13 @@
</h:inputText>
<h:outputText value="maxInputWidth"></h:outputText>
- <h:inputText value="#{inplaceInput.maxInputWidth}"
onchange="submit();">
+ <h:inputText value="#{inplaceInput.maxInputWidth}"
+ onchange="submit();">
</h:inputText>
<h:outputText value="minInputWidth"></h:outputText>
- <h:inputText value="#{inplaceInput.minInputWidth}"
onchange="submit();">
+ <h:inputText value="#{inplaceInput.minInputWidth}"
+ onchange="submit();">
</h:inputText>
<h:outputText value="tabindex"></h:outputText>
@@ -34,58 +36,91 @@
</h:inputText>
<h:outputText value="controlsVerticalPosition"></h:outputText>
- <h:selectOneRadio value="#{inplaceInput.controlsVerticalPosition}"
onchange="submit();">
- <f:selectItem itemLabel="top" itemValue="top"/>
- <f:selectItem itemLabel="bottom" itemValue="bottom"/>
- <f:selectItem itemLabel="center" itemValue="center"/>
+ <h:selectOneRadio value="#{inplaceInput.controlsVerticalPosition}"
+ onchange="submit();">
+ <f:selectItem itemLabel="top" itemValue="top" />
+ <f:selectItem itemLabel="bottom" itemValue="bottom" />
+ <f:selectItem itemLabel="center" itemValue="center" />
</h:selectOneRadio>
<h:outputText value="controlsHorizontalPosition"></h:outputText>
- <h:selectOneRadio value="#{inplaceInput.controlsHorizontalPosition}"
onchange="submit();">
- <f:selectItem itemLabel="right" itemValue="right"/>
- <f:selectItem itemLabel="center" itemValue="center"/>
- <f:selectItem itemLabel="left" itemValue="left"/>
+ <h:selectOneRadio value="#{inplaceInput.controlsHorizontalPosition}"
+ onchange="submit();">
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <f:selectItem itemLabel="left" itemValue="left" />
</h:selectOneRadio>
<h:outputText value="selectOnEdit"></h:outputText>
- <h:selectBooleanCheckbox value="#{inplaceInput.selectOnEdit}"
onchange="submit();">
+ <h:selectBooleanCheckbox value="#{inplaceInput.selectOnEdit}"
+ onchange="submit();">
</h:selectBooleanCheckbox>
<h:outputText value="showControls"></h:outputText>
- <h:selectBooleanCheckbox value="#{inplaceInput.showControls}"
onchange="submit();">
+ <h:selectBooleanCheckbox value="#{inplaceInput.showControls}"
+ onchange="submit();">
</h:selectBooleanCheckbox>
<h:outputText value="rendered"></h:outputText>
- <h:selectBooleanCheckbox value="#{inplaceInput.rendered}"
onchange="submit();">
+ <h:selectBooleanCheckbox value="#{inplaceInput.rendered}"
+ onchange="submit();">
</h:selectBooleanCheckbox>
<h:outputText value="immediate"></h:outputText>
- <h:selectBooleanCheckbox value="#{inplaceInput.immediate}"
onchange="submit();">
+ <h:selectBooleanCheckbox value="#{inplaceInput.immediate}"
+ onchange="submit();">
</h:selectBooleanCheckbox>
<h:outputText value="required"></h:outputText>
- <h:selectBooleanCheckbox value="#{inplaceInput.required}"
onchange="submit();">
+ <h:selectBooleanCheckbox value="#{inplaceInput.required}"
+ onchange="submit();">
</h:selectBooleanCheckbox>
<h:outputText value="requiredMessage"></h:outputText>
- <h:inputText value="#{inplaceInput.requiredMessage}"
onchange="submit();">
+ <h:inputText value="#{inplaceInput.requiredMessage}"
+ onchange="submit();">
</h:inputText>
-
- <h:commandButton actionListener="#{inplaceInput.checkBinding}"
value="Binding"></h:commandButton>
+
+ <h:commandButton actionListener="#{inplaceInput.checkBinding}"
+ value="Binding"></h:commandButton>
<h:outputText value="#{inplaceInput.bindLabel}"></h:outputText>
-
+
<h:outputText value="layout"></h:outputText>
<h:selectOneRadio value="#{inplaceInput.layout}"
onchange="submit();">
- <f:selectItem itemLabel="inline" itemValue="inline"/>
- <f:selectItem itemLabel="block" itemValue="block"/>
+ <f:selectItem itemLabel="inline" itemValue="inline" />
+ <f:selectItem itemLabel="block" itemValue="block" />
</h:selectOneRadio>
-
+
</h:panelGrid>
-
- <a4j:commandLink
onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.edit()"
value="edit"></a4j:commandLink> <br/>
- <a4j:commandLink
onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.save()"
value="save"></a4j:commandLink> <br/>
- <a4j:commandLink
onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.cancel()"
value="cancel"></a4j:commandLink> <br/>
- <a4j:commandLink
onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.getValue()"
value="getValue"></a4j:commandLink> <br/>
- <a4j:commandLink
onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.setValue('setValue')"
value="setValuel"></a4j:commandLink>
-
+
+ <a4j:commandLink
+ onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.edit()"
+ value="edit"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.save()"
+ value="save"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.cancel()"
+ value="cancel"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.getValue()"
+ value="getValue"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.setValue('setValue')"
+ value="setValuel"></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('inplaceInputId').value}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file