Author: gmaksimenko
Date: 2008-05-07 08:33:16 -0400 (Wed, 07 May 2008)
New Revision: 8473
Modified:
trunk/test-applications/facelets/src/main/webapp/InplaceInput/InplaceInput.xhtml
Log:
Add test for api-function
Modified:
trunk/test-applications/facelets/src/main/webapp/InplaceInput/InplaceInput.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/InplaceInput/InplaceInput.xhtml 2008-05-07
12:32:57 UTC (rev 8472)
+++
trunk/test-applications/facelets/src/main/webapp/InplaceInput/InplaceInput.xhtml 2008-05-07
12:33:16 UTC (rev 8473)
@@ -6,7 +6,7 @@
This is because such an error can easily be made at programming level, <br />
and while invisible for the user who does not understand or cannot <br />
acquire the source code, many of those
-<rich:inplaceInput id = "inplaceInputId1"
+<rich:inplaceInput id = "inplaceInputId"
inputWidth="#{inplaceInput.inputWidth}"
maxInputWidth="#{inplaceInput.maxInputWidth}"
minInputWidth="#{inplaceInput.minInputWidth}"
@@ -52,7 +52,6 @@
onviewactivated="#{evant.onviewactivated}"
onviewactivation="#{event.onviewactivation}"
binding="#{inplaceInput.myInplaceInput}">
- <f:convertNumber pattern="###,###,##0.00"/>
</rich:inplaceInput>
are easy to exploit.
<h:panelGrid columns="2">
@@ -136,4 +135,12 @@
</h:inputText>
</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>
+
+
</f:subview>
\ No newline at end of file
Show replies by date