You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Musachy Barroso (JIRA)" <ji...@apache.org> on 2009/01/28 22:14:45 UTC

[jira] Resolved: (WW-2966) ToolTips do not render correctly

     [ https://issues.apache.org/struts/browse/WW-2966?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso resolved WW-2966.
---------------------------------

    Resolution: Fixed

> ToolTips do not render correctly
> --------------------------------
>
>                 Key: WW-2966
>                 URL: https://issues.apache.org/struts/browse/WW-2966
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.1.6
>         Environment: n/a
>            Reporter: Zoran Avtarovski
>            Priority: Trivial
>             Fix For: 2.1.7
>
>         Attachments: WW2966.patch
>
>
> The tooltips aren't rendered correctly due to an error in the tooltip.ftl file in the xhtml template.
> Change file to following (too lazy to create environment to create diff):
> Also somebody with better freemarker skills might want to make sure all is OK.
> <#--
> /*
>  * $Id: tooltip.ftl 720258 2008-11-24 19:05:16Z musachy $
>  *
>  * Licensed to the Apache Software Foundation (ASF) under one
>  * or more contributor license agreements.  See the NOTICE file
>  * distributed with this work for additional information
>  * regarding copyright ownership.  The ASF licenses this file
>  * to you under the Apache License, Version 2.0 (the
>  * "License"); you may not use this file except in compliance
>  * with the License.  You may obtain a copy of the License at
>  *
>  *  http://www.apache.org/licenses/LICENSE-2.0
>  *
>  * Unless required by applicable law or agreed to in writing,
>  * software distributed under the License is distributed on an
>  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
>  * KIND, either express or implied.  See the License for the
>  * specific language governing permissions and limitations
>  * under the License.
>  */
> -->
> <#if parameters.tooltip??><#t/>
>       <img
>       <#if parameters.tooltipIconPath??><#t/>
>       	src='<@s.url value="${parameters.tooltipIconPath}" includeParams="none" encode="false" />'
>       <#else><#t/>
>       	src='<@s.url value="/struts/tooltip.gif" includeParams="none" encode="false" />'
>       </#if><#t/>
>       <#if parameters.jsTooltipEnabled?default('false') == 'true'>
>           onmouseover="domTT_activate(this, event, 'content', '${parameters.tooltip}'<#t/>
>           <#if parameters.tooltipDelay??><#t/>
>           	<#t/>,'delay', '${parameters.tooltipDelay}'<#t/>
>           </#if><#t/>
>           <#t/>,'styleClass', '${parameters.tooltipCssClass?default("StrutsTTClassic")}'<#t/>
>           <#t/>)" />
>       <#else>
>       	title="${parameters.tooltip?html}"
>       	alt="${parameters.tooltip?html}"
>      </#if>
>     />
> </#if><#t/>

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