Author: mvitenkov
Date: 2008-07-01 12:13:04 -0400 (Tue, 01 Jul 2008)
New Revision: 9328
Modified:
trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelectProperty.jsp
Log:
+findComponent
Modified:
trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelectProperty.jsp
===================================================================
---
trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelectProperty.jsp 2008-07-01
16:10:40 UTC (rev 9327)
+++
trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelectProperty.jsp 2008-07-01
16:13:04 UTC (rev 9328)
@@ -8,7 +8,7 @@
<h:panelGrid columns="2">
<h:outputText value="value"></h:outputText>
<h:outputText value="#{inplaceSelect.value}"></h:outputText>
-
+
<h:outputText value="defaultLabel"></h:outputText>
<h:inputText value="#{inplaceSelect.defaultLabel}"
onchange="submit();"></h:inputText>
@@ -39,7 +39,7 @@
<f:selectItem itemLabel="top" itemValue="top" />
<f:selectItem itemLabel="center" itemValue="center" />
<f:selectItem itemLabel="bottom" itemValue="bottom" />
-
+
</h:selectOneRadio>
<h:outputText value="controlsHorizontalPosition"></h:outputText>
@@ -63,37 +63,53 @@
<h:outputText value="openOnEdit"></h:outputText>
<h:selectBooleanCheckbox value="#{inplaceSelect.openOnEdit}"
onchange="submit();"></h:selectBooleanCheckbox>
-
+
<h:outputText value="rendered"></h:outputText>
<h:selectBooleanCheckbox value="#{inplaceSelect.rendered}"
onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:commandButton actionListener="#{inplaceSelect.checkBinding}"
value="Binding"></h:commandButton>
- <h:outputText value = "#{inplaceSelect.bindLabel}"/>
-
+
+ <h:commandButton actionListener="#{inplaceSelect.checkBinding}"
+ value="Binding"></h:commandButton>
+ <h:outputText value="#{inplaceSelect.bindLabel}" />
+
<h:outputText value="immediate"></h:outputText>
<h:selectBooleanCheckbox value="#{inplaceSelect.immediate}"
onchange="submit();"></h:selectBooleanCheckbox>
-
+
<h:outputText value="required"></h:outputText>
<h:selectBooleanCheckbox value="#{inplaceSelect.required}"
- onchange="submit();"></h:selectBooleanCheckbox>
-
+ onchange="submit();"></h:selectBooleanCheckbox>
+
<h:outputText value="requiredMessage"></h:outputText>
- <h:inputText value="#{inplaceSelect.requiredMessage}"
onchange="submit();"></h:inputText>
-
+ <h:inputText value="#{inplaceSelect.requiredMessage}"
+ onchange="submit();"></h:inputText>
+
<h:outputText value="layout"></h:outputText>
<h:inputText value="#{inplaceSelect.layout}"
onchange="submit();"></h:inputText>
</h:panelGrid>
-
- <a4j:commandLink
onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.edit()"
value="edit"></a4j:commandLink> <br/>
- <a4j:commandLink
onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.save()"
value="save"></a4j:commandLink> <br/>
- <a4j:commandLink
onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.cancel()"
value="cancel"></a4j:commandLink> <br/>
- <a4j:commandLink
onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.getValue()"
value="getValue"></a4j:commandLink> <br/>
- <a4j:commandLink
onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.setValue('setValue')"
value="setValue"></a4j:commandLink>
-
+
+ <a4j:commandLink
+ onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.edit()"
+ value="edit"></a4j:commandLink>
<br />
+ <a4j:commandLink
+ onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.save()"
+ value="save"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.cancel()"
+ value="cancel"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.getValue()"
+ value="getValue"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.setValue('setValue')"
+ value="setValue"></a4j:commandLink>
+
+ <br />
<f:verbatim>
<h:outputText value="Component Control test"
style="FONT-WEIGHT: bold;"></h:outputText>
@@ -110,7 +126,7 @@
</f:verbatim>
<rich:componentControl attachTo="editID" event="onclick"
- for="inplaceSelectID" operation="edit"
></rich:componentControl>
+ for="inplaceSelectID"
operation="edit"></rich:componentControl>
<rich:componentControl attachTo="saveID" event="onclick"
for="inplaceSelectID"
operation="save"></rich:componentControl>
<rich:componentControl attachTo="cancelID" event="onclick"
@@ -119,5 +135,15 @@
for="inplaceSelectID"
operation="getValue"></rich:componentControl>
<rich:componentControl attachTo="setValueID" event="onclick"
for="inplaceSelectID"
operation="setValue('newValue')"></rich:componentControl>
-
+ <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('inplaceSelectID').value}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
Show replies by date