Author: alevkovsky
Date: 2008-09-25 06:59:07 -0400 (Thu, 25 Sep 2008)
New Revision: 10553
Modified:
trunk/sandbox/samples/editor-sample/src/main/webapp/pages/editor.jsp
Log:
Removing events and style attributes from Editor
Modified: trunk/sandbox/samples/editor-sample/src/main/webapp/pages/editor.jsp
===================================================================
--- trunk/sandbox/samples/editor-sample/src/main/webapp/pages/editor.jsp 2008-09-25
10:59:04 UTC (rev 10552)
+++ trunk/sandbox/samples/editor-sample/src/main/webapp/pages/editor.jsp 2008-09-25
10:59:07 UTC (rev 10553)
@@ -5,69 +5,22 @@
<html>
<head>
<title></title>
- <style>
- .editor-new{
- font-size: 20;
- }
- </style>
- <script type="text/javascript">
- <!--
- function testEvent(element, event){
- element = document.getElementById(element.id + '_' + event)
- element.innerHTML = '+';
- }
- </script>
</head>
<body>
<f:view >
<h:form id="formId">
<ed:editor id="editorId"
- styleClass="editor-new"
- style="color: red"
value="#{editorBean.value}"
width="300"
height="175"
rendered="#{editorBean.rendered}"
binding="#{editorBean.editor}"
- theme="advanced"
- onclick="testEvent(this, 'onclick')"
- ondblclick="testEvent(this, 'ondblclick')"
- onkeydown="testEvent(this, 'onkeydown')"
- onkeypress="testEvent(this, 'onkeypress')"
- onkeyup="testEvent(this, 'onkeyup')"
- onmousedown="testEvent(this, 'onmousedown')"
- onmousemove="testEvent(this, 'onmousemove')"
- onmouseout="testEvent(this, 'onmouseout')"
- onmouseover="testEvent(this, 'onmouseover')"
- onmouseup="testEvent(this, 'onmouseup')"/>
+ theme="advanced" />
-
+ <ed:editor ></ed:editor>
<h:outputText value="Editor value: #{editorBean.value}" />
<br/>
- <h:panelGrid columns="10" border="1">
- <h:outputText value="onclick"/>
- <h:outputText value="ondblclick"/>
- <h:outputText value="onmouseup"/>
- <h:outputText value="onmousedown"/>
- <h:outputText value="onmousemove"/>
- <h:outputText value="onmouseover"/>
- <h:outputText value="onmouseout"/>
- <h:outputText value="onkeydown"/>
- <h:outputText value="onkeypress"/>
- <h:outputText value="onkeyup"/>
- <h:outputText id="editorId_onclick" value="-"/>
- <h:outputText id="editorId_ondblclick" value="-"/>
- <h:outputText id="editorId_onmouseup" value="-"/>
- <h:outputText id="editorId_onmousedown" value="-"/>
- <h:outputText id="editorId_onmousemove" value="-"/>
- <h:outputText id="editorId_onmouseover" value="-"/>
- <h:outputText id="editorId_onmouseout" value="-"/>
- <h:outputText id="editorId_onkeydown" value="-"/>
- <h:outputText id="editorId_onkeypress" value="-"/>
- <h:outputText id="editorId_onkeyup" value="-"/>
- </h:panelGrid>
- <br/>
<h:commandButton value="h:commandButton"
action="#{editorBean.action1}"/>
<a4j:commandButton value="a4j:commandButton"
action="#{editorBean.action1}"
reRender="editorId"/>