JBoss Rich Faces SVN: r23106 - modules/tests/metamer/trunk/application/src/main/webapp/components/richEditor.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2011-12-20 08:08:13 -0500 (Tue, 20 Dec 2011)
New Revision: 23106
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richEditor/simple.xhtml
Log:
buttons for JavaScript API testing fixed
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richEditor/simple.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richEditor/simple.xhtml 2011-12-20 12:51:29 UTC (rev 23105)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richEditor/simple.xhtml 2011-12-20 13:08:13 UTC (rev 23106)
@@ -111,16 +111,16 @@
<fieldset>
<legend>JavaScript API of rich:editor by a4j:commandButton</legend>
- <a4j:commandButton value="getValue()" onclick="alert('Editor value: '+#{rich:component('editor')}.getValue());" />
- <a4j:commandButton value="setValue()" onclick="#{rich:component('editor')}.setValue('NEW VALUE SET BY JS!')" />
- <a4j:commandButton value="getInput()" onclick="alert('Inut value: '+#{rich:component('editor')}.getInput());" />
- <a4j:commandButton value="focus()" onclick="#{rich:component('editor')}.focus()" />
- <a4j:commandButton value="blur()" onclick="#{rich:component('editor')}.blur()" />
- <a4j:commandButton value="isFocused()" onclick="alert('Is editor focused: '+#{rich:component('editor')}.isFocused());" />
- <a4j:commandButton value="isDirty()" onclick="alert('Is editor dirty: '+#{rich:component('editor')}.isDirty());" />
- <a4j:commandButton value="isValueChanged()" onclick="alert('Is editor value changed: '+#{rich:component('editor')}.isValueChanged());" />
- <a4j:commandButton value="isReadonly()" onclick="alert('Is editor readonly: '+#{rich:component('editor')}.isReadonly());" />
- <a4j:commandButton value="setReadonly()" onclick="#{rich:component('editor')}.setReadonly()" />
+ <input type="button" value="getValue()" onclick="alert('Editor value: '+#{rich:component('editor')}.getValue());" />
+ <input type="button" value="setValue()" onclick="#{rich:component('editor')}.setValue('NEW VALUE SET BY JS!')" />
+ <input type="button" value="getInput()" onclick="alert('Inut value: '+#{rich:component('editor')}.getInput());" />
+ <input type="button" value="focus()" onclick="#{rich:component('editor')}.focus()" />
+ <input type="button" value="blur()" onclick="#{rich:component('editor')}.blur()" />
+ <input type="button" value="isFocused()" onclick="alert('Is editor focused: '+#{rich:component('editor')}.isFocused());" />
+ <input type="button" value="isDirty()" onclick="alert('Is editor dirty: '+#{rich:component('editor')}.isDirty());" />
+ <input type="button" value="isValueChanged()" onclick="alert('Is editor value changed: '+#{rich:component('editor')}.isValueChanged());" />
+ <input type="button" value="isReadonly()" onclick="alert('Is editor readonly: '+#{rich:component('editor')}.isReadonly());" />
+ <input type="button" value="setReadonly()" onclick="#{rich:component('editor')}.setReadonly()" />
</fieldset>