[ 
https://issues.apache.org/jira/browse/TRINIDAD-1541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765365#action_12765365
 ] 

Jeanne Waldman commented on TRINIDAD-1541:
------------------------------------------

For the ChooseColor renderer, OutputUtils#renderAltAndTooltipForImage() is not 
called, but XhmtlLafRenderer#renderAltAndTooltipForImage. The reason is the 
chooseColor Renderer is a deprecated, old-style renderer called 
ColorPaletteRenderer, and it doesn't call OutputUtil's 
renderAltAndTooltipForImage, but XhmtlLafRenderer's renderAltAndTooltipForImage 
which essentially calls the same thing -
    return getBooleanAgentCapability(context,
                                     
TrinidadAgent.CAP_ALT_RENDERS_TOOLTIP_ON_IMAGE);

vs OutputUtil's
    return Boolean.TRUE.equals(afc.getAgent().getCapabilities().get(
                        TrinidadAgent.CAP_ALT_RENDERS_TOOLTIP_ON_IMAGE));

So the capabilities are checked the same in both implementations, and this 
patch fixes the chooseColor issue as well as any other issues where in ie8 we 
were not rendering title on images as we should.

> Image tooltips do not display in IE8
> ------------------------------------
>
>                 Key: TRINIDAD-1541
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1541
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions:  1.2.11-core
>         Environment: Browser: Internet Explorer 8, running in standard (not 
> Compatibility View mode) 
>            Reporter: Yee-Wah Lee
>            Priority: Trivial
>         Attachments: trin12_1541.diff
>
>
> 1. Go to the chooseColor demo:
> http://www.irian.at/trinidad-demo/faces/components/chooseColor.jspx
> 2. Hover over one of the swatches in the table. 
> In Firefox: a tooltip will appear with the #rgb value of the color
> In IE8, standard (turn off compatibility view mode) : no tooltip appears

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to