Author: adubovsky
Date: 2008-11-11 11:18:49 -0500 (Tue, 11 Nov 2008)
New Revision: 11079
Modified:
trunk/test-applications/automator/src/main/webapp/component/comboBox.jsp
Log:
Modified: trunk/test-applications/automator/src/main/webapp/component/comboBox.jsp
===================================================================
--- trunk/test-applications/automator/src/main/webapp/component/comboBox.jsp 2008-11-11
13:19:14 UTC (rev 11078)
+++ trunk/test-applications/automator/src/main/webapp/component/comboBox.jsp 2008-11-11
16:18:49 UTC (rev 11079)
@@ -9,6 +9,7 @@
<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) {
@@ -17,26 +18,69 @@
}
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:panelGrid id="comboBoxGrid" columns="1">
<h:messages id="mess" style="color: red" />
<rich:comboBox id="comboBox"
binding="#{comboBoxGeneral.comboBox}"
- align="#{comboBoxGeneral.align}"
validator="#{comboBoxGeneral.validate}"
+ align="#{comboBoxGeneral.align}"
+ validator="#{comboBoxGeneral.validate}"
required="#{comboBoxGeneral.required}"
- validatorMessage="#{comboBoxGeneral.validatorMessage}">
+ validatorMessage="#{comboBoxGeneral.validatorMessage}"
+ onmouseover="onmouseoverCall()" onclick="onclickCall()"
+ styleClass="XXXStyleClass">
<f:selectItems value="#{comboBoxGeneral.selectItems}" />
<f:selectItem itemValue="Gosha" itemLabel="Gosha" />
</rich:comboBox>
- <h:inputHidden id="hiddenInput"
value="#{comboBoxGeneral.validatorMessageTest}" />
+ <h:inputHidden id="hiddenInput"
+ value="#{comboBoxGeneral.validatorMessageTest}" />
</h:panelGrid>
<rich:spacer height="30"></rich:spacer>
- <a4j:commandButton value="testGeneralAttrs"
- actionListener="#{comboBoxGeneral.testGeneralAttributes}"
- reRender="generalResult, comboBoxGrid"></a4j:commandButton>
-
- <h:panelGrid id="generalResult"
binding="#{comboBoxGeneral.panelGrid}"
- columns="2">
+ <h:panelGrid columns="3" border="1">
+ <f:facet name="header">
+ <h:outputText value="Results of testing" />
+ </f:facet>
+ <a4j:commandButton value="testGeneralAttrs"
+ actionListener="#{comboBoxGeneral.testGeneralAttributes}"
+ reRender="generalResult, comboBoxGrid"></a4j:commandButton>
+ <a4j:commandButton value="testHandlers"
+ actionListener="#{comboBoxHandlers.testHandlers}"
+ reRender="handlersResult, comboBoxGrid"></a4j:commandButton>
+ <a4j:commandButton value="testStyles"
+ actionListener="#{comboBoxStyles.testStyles}"
+ reRender="stylesResult, comboBoxGrid"></a4j:commandButton>
+ <h:panelGroup style="display: block; vertical-align: top">
+ <h:panelGrid id="generalResult"
+ binding="#{comboBoxGeneral.panelGrid}" columns="2">
+ </h:panelGrid>
+ </h:panelGroup>
+ <h:panelGroup style="display: block; vertical-align: top">
+ <h:panelGrid id="handlersResult"
+ binding="#{comboBoxHandlers.panelGrid}" columns="2">
+ </h:panelGrid>
+ </h:panelGroup>
+ <h:panelGroup style="display: block; vertical-align: top">
+ <h:panelGrid id="stylesResult"
binding="#{comboBoxStyles.panelGrid}"
+ columns="2">
+ </h:panelGrid>
+ </h:panelGroup>
+ <f:facet name="footer">
+ <h:outputText value="See results above..." />
+ </f:facet>
</h:panelGrid>
</f:subview>
Show replies by date