aspose file tools*
The moose likes Struts and the fly likes tooltip is not working. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "tooltip is not working." Watch "tooltip is not working." New topic
Author

tooltip is not working.

amma mal
Greenhorn

Joined: Apr 15, 2009
Posts: 10
Hi All.

I am using struts-jquery tabs and using "qxhtml" theme, I was trying to apply tooltip="Enter Username" on label name "Username" to my jsp page. My output is

Username: Enter Username

when I mouseover on label name its not working, but when I mouse over on "Enter Username" its working.
I dont know why the tooltip message is displaying after label name.

and my tooltip:ftl is

<#if parameters.tooltip?exists><#t/>
<img
<#if parameters.tooltipIcon?exists><#t/>
src='<@s.url value="${parameters.tooltipIcon}" />'
<#else><#t/>
src='<@s.url value="/qxhtml/tooltip.gif" />'
</#if><#t/>
alt="${parameters.tooltip?html}"
title="${parameters.tooltip?html}"
onmouseover="<#rt/>
<#if parameters.tooltipAboveMousePointer?exists><#t/>
<#t/>this.T_ABOVE=${parameters.tooltipAboveMousePointer};<#t/>
</#if><#t/>
<#if parameters.tooltipBgColor?exists><#t/>
<#t/>this.T_BGCOLOR='${parameters.tooltipBgColor}';<#t/>
</#if><#t/>
<#if parameters.tooltipBgImg?exists><#t/>
<#t/>this.T_BGIMG='<@ww.url value="${parameters.tooltipBgImg}" />';<#t/>
</#if><#t/>
<#if parameters.tooltipBorderWidth?exists><#t/>
<#t/>this.T_BORDERWIDTH=${parameters.tooltipBorderWidth};<#t/>
</#if><#t/>
<#if parameters.tooltipBorderColor?exists><#t/>
<#t/>this.T_BORDERCOLOR='${parameters.tooltipBorderColor}';<#t/>
</#if><#t/>
<#if parameters.tooltipDelay?exists><#t/>
<#t/>this.T_DELAY=${parameters.tooltipDelay};<#t/>
</#if><#t/>
<#if parameters.tooltipFixCoordinateX?exists && parameters.tooltipFixCoordinateY?exists><#t/>
<#t/>this.T_FIX=[${parameters.tooltipFixCoordinateX}, ${parameters.tooltipFixCoordinateY}];<#t/>
</#if><#t/>
<#if parameters.tooltipFontColor?exists><#t/>
<#t/>this.T_FONTCOLOR='${parameters.tooltipFontColor}';<#t/>
</#if><#t/>
<#if parameters.tooltipFontFace?exists><#t/>
<#t/>this.T_FONTFACE='${parameters.tooltipFontFace}';<#t/>
</#if><#t/>
<#if parameters.tooltipFontSize?exists><#t/>
<#t/>this.T_FONTSIZE='${parameters.tooltipFontSize}';<#t/>
</#if><#t/>
<#if parameters.tooltipFontWeight?exists><#t/>
<#t/>this.T_FONTWEIGHT='${parameters.tooltipFontWeight}';<#t/>
</#if><#t/>
<#if parameters.tooltipLeftOfMousePointer?exists><#t/><#t/>
<#t/>this.T_LEFT=${parameters.tooltipLeftOfMousePointer};<#t/>
</#if><#t/>
<#if parameters.tooltipOffsetX?exists><#t/>
<#t/>this.T_OFFSETX=${parameters.tooltipOffsetX};<#t/>
</#if><#t/>
<#if parameters.tooltipOffsetY?exists><#t/>
<#t/>this.T_OFFSETY=${parameters.tooltipOffsetY};<#t/>
</#if><#t/>
<#if parameters.tooltipOpacity?exists><#t/>
<#t/>this.T_OPACITY=${parameters.tooltipOpacity};<#t/>
</#if><#t/>
<#if parameters.tooltipPadding?exists><#t/>
<#t/>this.T_PADDING=${parameters.tooltipPadding};<#t/>
</#if><#t/>
<#if parameters.tooltipShadowColor?exists><#t/>
<#t/>this.T_SHADOWCOLOR='${parameters.tooltipShadowColor}';<#t/>
</#if><#t/>
<#if parameters.tooltipShadowWidth?exists><#t/>
<#t/>this.T_SHADOWWIDTH=${parameters.tooltipShadowWidth};<#t/>
</#if><#t/>
<#if parameters.tooltipStatic?exists><#t/>
<#t/>this.T_STATIC=${parameters.tooltipStatic};<#t/>
</#if><#t/>
<#if parameters.tooltipSticky?exists>
<#t/>this.T_STICKY=${parameters.tooltipSticky};<#t/>
</#if><#t/>
<#if parameters.tooltipStayAppearTime?exists><#t/>
<#t/>this.T_TEMP=${parameters.tooltipStayAppearTime};<#t/>
</#if><#t/>
<#if parameters.tooltipTextAlign?exists><#t/>
<#t/>this.T_TEXTALIGN='${parameters.tooltipTextAlign}';<#t/>
</#if><#t/>
<#if parameters.tooltipTitle?exists><#t/>
<#t/>this.T_TITLE='${parameters.tooltipTitle?js_string}';<#t/>
</#if><#t/>
<#if parameters.tooltipTitleColor?exists><#t/>
<#t/>this.T_TITLECOLOR='${parameters.tooltipTitleColor}';<#t/>
</#if><#t/>
<#if parameters.tooltipWidth?exists><#t/>
<#t/>this.T_WIDTH=${parameters.tooltipWidth};<#t/>
</#if><#t/>
<#t/>return escape('${parameters.tooltip?js_string}');" />
</#if><#t/>

and my jsp code

<s:select label="Username" tooltip="Enter Username"
name="UN"
id="UN"
tooltipIconPath='"/qxhtml/tootip.gif"'>
<s:param name="labelcolspan" value="%{2}" />
<s:param name="inputcolspan" value="%{2}" />
</s:select>

Anybody suggest me where I am doing wrong?

Thanks in advance.
Richard Golebiowski
Ranch Hand

Joined: May 05, 2010
Posts: 213

I dont know why the tooltip message is displaying after label name.

I get the same thing. It looks to me like it's a problem with the theme. If I set the theme to simple it works correctly.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tooltip is not working.