Author: mvitenkov
Date: 2008-04-28 12:24:00 -0400 (Mon, 28 Apr 2008)
New Revision: 8254
Modified:
trunk/test-applications/facelets/src/main/webapp/Tooltip/TooltipProperty.xhtml
Log:
+JS API
Modified: trunk/test-applications/facelets/src/main/webapp/Tooltip/TooltipProperty.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/Tooltip/TooltipProperty.xhtml 2008-04-28
16:19:10 UTC (rev 8253)
+++
trunk/test-applications/facelets/src/main/webapp/Tooltip/TooltipProperty.xhtml 2008-04-28
16:24:00 UTC (rev 8254)
@@ -1,6 +1,24 @@
<f:subview
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
id="toolTipStraightforwardSubviewID">
<h:panelGrid columns="2">
+
+ <a4j:commandLink
onclick="$('formID:tooltipSubviewID:tooltipID').component.show(event)"
value="show"></a4j:commandLink>
+ <a4j:commandLink
onclick="$('formID:tooltipSubviewID:tooltipID').component.hide(event)"
value="hide"></a4j:commandLink>
+ <a4j:commandLink
onclick="$('formID:tooltipSubviewID:tooltipID').component.enable(event)"
value="enable"></a4j:commandLink>
+ <a4j:commandLink
onclick="$('formID:tooltipSubviewID:tooltipID').component.disable(event)"
value="disable"></a4j:commandLink>
+
+ <a href="#"
id="showToolTipID">componentControl(show)</a>
+ <rich:componentControl attachTo="showToolTipID" for="tooltipID"
event="onclick" operation="show" />
+
+ <a href="#"
id="hideToolTipID">componentControl(hide)</a>
+ <rich:componentControl attachTo="hideToolTipID" for="tooltipID"
event="onclick" operation="hide" />
+
+ <a href="#"
id="enableToolTipID">componentControl(enable)</a>
+ <rich:componentControl attachTo="enableToolTipID"
for="tooltipID" event="onclick" operation="enable" />
+
+ <a href="#"
id="disableToolTipID">componentControl(disable)</a>
+ <rich:componentControl attachTo="disableToolTipID"
for="tooltipID" event="onclick" operation="disable" />
+
<h:outputText value="Text:"></h:outputText>
<h:inputText value="#{tooltip.value}">
<a4j:support event="onchange" reRender="tooltipID" />
@@ -85,6 +103,7 @@
<h:outputText value="Rendered:"></h:outputText>
<h:selectBooleanCheckbox value="#{tooltip.rendered}">
<a4j:support event="onclick" reRender="tooltipID" />
- </h:selectBooleanCheckbox>
+ </h:selectBooleanCheckbox>
+
</h:panelGrid>
</f:subview>
\ No newline at end of file