Author: adubovsky
Date: 2008-11-11 12:18:51 -0500 (Tue, 11 Nov 2008)
New Revision: 11087
Modified:
trunk/test-applications/automator/src/main/webapp/component/comboBox.jsp
Log:
change according to js library
Modified: trunk/test-applications/automator/src/main/webapp/component/comboBox.jsp
===================================================================
--- trunk/test-applications/automator/src/main/webapp/component/comboBox.jsp 2008-11-11
17:07:40 UTC (rev 11086)
+++ trunk/test-applications/automator/src/main/webapp/component/comboBox.jsp 2008-11-11
17:18:51 UTC (rev 11087)
@@ -8,32 +8,6 @@
editable combo box element on a page.</div>
<rich:spacer height="30"></rich:spacer>
- <script type="text/javascript">
- var i = 0;
- function showValue() {
- var myMessage = document.getElementById('mainForm:comboBoxSubview:mess');
- if(myMessage != null) {
- myMessageText = myMessage.textContent;
- document.getElementById('mainForm:comboBoxSubview:hiddenInput').value =
myMessageText;
- }
- return true;
- }
-
- function onmouseoverCall() {
- var a = document.getElementById('mainForm:comboBoxSubview:onmouseoverID');
- if(a != null) {
- a.textContent = "WORK!" + i++;
- }
- }
-
- function onclickCall() {
- var a = document.getElementById('mainForm:comboBoxSubview:onclickID');
- if(a != null) {
- a.textContent = "WORK!" + i++;
- }
- }
- </script>
-
<h:panelGrid id="comboBoxGrid" columns="1">
<h:messages id="mess" style="color: red" />
<rich:comboBox id="comboBox"
binding="#{comboBoxGeneral.comboBox}"
@@ -41,8 +15,21 @@
validator="#{comboBoxGeneral.validate}"
required="#{comboBoxGeneral.required}"
validatorMessage="#{comboBoxGeneral.validatorMessage}"
- onmouseover="onmouseoverCall()" onclick="onclickCall()"
- styleClass="XXXStyleClass">
+ onblur="callOnblur('comboBox')"
+ onmouseover="callOnmouseover('comboBox')"
+ onclick="callOnclick('comboBox')"
+ onchange="callOnchange('comboBox')"
+ ondblclick="callOndblclick('comboBox')"
+ onfocus="callOnfocus('comboBox')"
+ onkeydown="callOnkeydown('comboBox')"
+ onkeypress="callOnkeypress('comboBox')"
+ onkeyup="callOnkeyup('comboBox')"
+ onlistcall="callOnlistcall('comboBox')"
+ onmousedown="callOnmousedown('comboBox')"
+ onmousemove="callOnmousemove('comboBox')"
+ onmouseout="callOnmouseout('comboBox')"
+ onmouseup="callOnmouseup('comboBox')"
+ onselect="callOnselect('comboBox')" >
<f:selectItems value="#{comboBoxGeneral.selectItems}" />
<f:selectItem itemValue="Gosha" itemLabel="Gosha" />
</rich:comboBox>
@@ -64,17 +51,17 @@
<a4j:commandButton value="testStyles"
actionListener="#{comboBoxStyles.testStyles}"
reRender="stylesResult, comboBoxGrid"></a4j:commandButton>
- <h:panelGroup style="display: block; vertical-align: top">
+ <h:panelGroup>
<h:panelGrid id="generalResult"
binding="#{comboBoxGeneral.panelGrid}" columns="2">
</h:panelGrid>
</h:panelGroup>
- <h:panelGroup style="display: block; vertical-align: top">
+ <h:panelGroup>
<h:panelGrid id="handlersResult"
binding="#{comboBoxHandlers.panelGrid}" columns="2">
</h:panelGrid>
</h:panelGroup>
- <h:panelGroup style="display: block; vertical-align: top">
+ <h:panelGroup>
<h:panelGrid id="stylesResult"
binding="#{comboBoxStyles.panelGrid}"
columns="2">
</h:panelGrid>
Show replies by date