Re: tooltip on <s:textfield>

Greg Huber <[email protected]>
Newsgroups gmane.comp.jakarta.struts.devel
Message-ID <[email protected]>
Great, thanks.

...whilst the iron is hot, I was looking at the tooltip template code 
for theme simple.

There is a template form-close-tooltips.ftl that includes the domTT.js 
and domTT.css, but I cannot see how it actually adds the tool tip.

Possibly this needs to be removed as it looks like it is not supported 
(on the simple theme),

#####

Could modify common-attributes.ftl to include the tooltip stuff as a title:

<#if parameters.accesskey?has_content>
  accesskey="${parameters.accesskey}"<#rt/>
</#if><#rt/>
<#if parameters.tooltip??>
  title="${parameters.tooltip}"<#rt/>
</#if><#rt/>

...but then should use the title rather than the tooltip on the component.

On 10/10/2023 14:20, Lukasz Lenart wrote:
> wt., 10 paź 2023 o 11:50 Greg Huber <[email protected]> napisał(a):
>> My bad the filter mapping has changed from /struts/*.
>>
>> <filter-mapping>
>>        <filter-name>struts2</filter-name>
>>        <url-pattern>/static/*</url-pattern>
>> </filter-mapping>
>>
>> ....Although the docs don't mention this, if you app is bigger and only
>> filter on the .action you need to map the static.
>>
>> <filter-mapping>
>>        <filter-name>struts2</filter-name>
>>        <url-pattern>*.action</url-pattern>
>> </filter-mapping>
>>
>> <filter-mapping>
>>        <filter-name>struts2</filter-name>
>>        <url-pattern>/static/*</url-pattern>
>> </filter-mapping>
> Great! I extended the description to match your case, is this clear enough?
> https://github.com/apache/struts-site/pull/206
>
>
> Regards
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.