[richfaces-issues] [JBoss JIRA] Resolved: (RF-3513) toolTip: "disable" JS API doesn't work for this component.

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Tue Apr 21 12:57:23 EDT 2009


     [ https://jira.jboss.org/jira/browse/RF-3513?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Belaevski resolved RF-3513.
--------------------------------

    Resolution: Rejected
      Assignee: Tsikhon Kuprevich  (was: Pavel Yaschenko)


Your code is wrong. Here is the right one:

	<h:form id="form">

		<rich:panel style="width:50px; height:50px; background-color: gray">
			<rich:toolTip id="tooltipID" value="{tooltip.value}">
				<h:outputLink value="http://www.jboss.com/">
					<f:verbatim>Link</f:verbatim>
				</h:outputLink>
			</rich:toolTip>
		</rich:panel>
		<a4j:commandLink onclick="$('form:tooltipID').component.show(event)"
			value="show"></a4j:commandLink>
		<a4j:commandLink onclick="$('form:tooltipID').component.hide(event)"
			value="hide"></a4j:commandLink>
		<a4j:commandLink onclick="$('form:tooltipID').component.enable()"
			value="enable"></a4j:commandLink>
		<a4j:commandLink onclick="$('form:tooltipID').component.disable()"
			value="disable"></a4j:commandLink>

	</h:form>

Works with 3.3.1.BETA5

> toolTip: "disable" JS API doesn't work for this component.
> ----------------------------------------------------------
>
>                 Key: RF-3513
>                 URL: https://jira.jboss.org/jira/browse/RF-3513
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.1
>         Environment: IE6.IE7,Firefox,Opera,Safari(3.2.1.CR5)
>            Reporter: Mikhail Vitenkov
>            Assignee: Tsikhon Kuprevich
>             Fix For: 3.3.1
>
>
> Step 1. Add toolTip inside any rich component:
> <rich:panel style="width:50px; height:50px; background-color: gray">
>         <rich:toolTip id="tooltipID" value="#{tooltip.value}" ...>            
>             <h:outputLink value="http://www.jboss.com/"><f:verbatim>Link</f:verbatim></h:outputLink>
>         </rich:toolTip>
>     </rich:panel>
> Step 2. Add "show", "hide", "enable" & "disable" JS API functionality:
> <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" value="enable"></a4j:commandLink>
>         <a4j:commandLink onclick="$('formID:tooltipSubviewID:toolTipID').component.disable" value="disable"></a4j:commandLink>
> Step 3. Click on "show" ajax link - toolTip appears.
> Step 4. Click on "disable" ajax link - toolTip disappear just after delay, defined in hideDelay attribute.
> Step 5. Click on "show" link again.
> Actual behavior:
> toolTip appears any way - "disable" JS API doesn't work.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list