Author: mvitenkov
Date: 2008-06-17 09:56:26 -0400 (Tue, 17 Jun 2008)
New Revision: 9077
Modified:
trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp
Log:
JS API test.
Modified: trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp 2008-06-17
13:50:53 UTC (rev 9076)
+++ trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp 2008-06-17
13:56:26 UTC (rev 9077)
@@ -160,6 +160,33 @@
<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="setValuel"></a4j:commandLink>
+ <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>
+ <br />
+ <a href="#" id="editID">edit()</a>
+ <br />
+ <a href="#" id="saveID">save()</a>
+ <br />
+ <a href="#" id="cancelID">cancel()</a>
+ <br />
+ <a href="#" id="getValueID">getValue()</a>
+ <br />
+ <a href="#"
id="setValueID">setValue('newValue')</a>
+ </f:verbatim>
+ <rich:componentControl attachTo="editID" event="onclick"
+ for="inplaceSelectID" operation="edit"
></rich:componentControl>
+ <rich:componentControl attachTo="saveID" event="onclick"
+ for="inplaceSelectID"
operation="save"></rich:componentControl>
+ <rich:componentControl attachTo="cancelID" event="onclick"
+ for="inplaceSelectID"
operation="cancel"></rich:componentControl>
+ <rich:componentControl attachTo="getValueID" event="onclick"
+ for="inplaceSelectID"
operation="getValue"></rich:componentControl>
+ <rich:componentControl attachTo="setValueID" event="onclick"
+ for="inplaceSelectID"
operation="setValue('newValue')"></rich:componentControl>
+
</f:subview>
\ No newline at end of file
Show replies by date