[richfaces-issues] [JBoss JIRA] Resolved: (RF-3510) toolTip: JS API doesn't work for toolTip, which doesn't contain parent component.

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Fri Jan 2 08:21:54 EST 2009


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

Nick Belaevski resolved RF-3510.
--------------------------------

    Resolution: Cannot Reproduce Bug
      Assignee: Mikhail Vitenkov  (was: Nick Belaevski)


<?xml version="1.0" encoding="UTF-8"?>

<jsp:root version="2.1" xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

	<jsp:directive.page contentType="text/html;charset=UTF-8"
		pageEncoding="UTF-8" />
	<jsp:output omit-xml-declaration="no" doctype-root-element="html"
		doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />

	<f:view>
		<html xmlns="http://www.w3.org/1999/xhtml">
		<body>

<h:form id="formID">
 <rich:toolTip id="toolTipID" value="toolTip for input text" layout="inline" attached="false"> 
            <f:facet name="defaultContent"> 
                <f:verbatim>DEFAULT VALUE</f:verbatim> 
            </f:facet> 
        </rich:toolTip> 
<a4j:commandLink onclick="$('formID:toolTipID').component.show(event)" value="show"></a4j:commandLink> 
</h:form>


		</body>
		</html>

	</f:view>
</jsp:root>



> toolTip: JS API doesn't work for toolTip, which doesn't contain parent component.
> ---------------------------------------------------------------------------------
>
>                 Key: RF-3510
>                 URL: https://jira.jboss.org/jira/browse/RF-3510
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.1
>         Environment: IE, FF, Safari, Opera(3.2.1.CR5)
>            Reporter: Mikhail Vitenkov
>            Assignee: Mikhail Vitenkov
>
> Step 1. Add rich:toolTip on the page:
>  <rich:toolTip id="tooltipIDTest" value="#{tooltip.value}" mode="#{tooltip.mode}" styleClass="#{style.styleClass}" style="#{style.style}" 
>                       hideDelay="#{tooltip.hideDelay}" showDelay="#{tooltip.showDelay}" layout="#{tooltip.layout}"
>                       horizontalOffset="#{tooltip.horizontalOffset}" verticalOffset="#{tooltip.verticalOffset}" followMouse="#{tooltip.followMouse}"
>                       direction="#{tooltip.direction}" disabled="#{tooltip.disabled}" rendered="#{tooltip.rendered}"
> 					  event="#{tooltip.event}" onclick="#{event.onclick}" oncomplete="#{event.oncomplete}" ondblclick="#{event.ondblclick}" onhide="#{event.onhide}" onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}" onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}" onshow="#{event.onshow}">
>             <h:graphicImage id="pricsID" value="/pics/ajax_process.gif"></h:graphicImage>
>             <h:outputLink value="http://www.jboss.com/"><f:verbatim>Link</f:verbatim></h:outputLink>
>         </rich:toolTip>
> Step 2. Add "show" JS API functionality:
>                <a4j:commandLink onclick="$('formID:tooltipSubviewID:toolTipIDTest').component.show(event)" value="show"></a4j:commandLink>       
> Step 3. Click on "show" ajax link.
> Actual behavior:
> toolTip doesn't appear.

-- 
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