XHTML chekbox template does not include tooltip consistently
------------------------------------------------------------
Key: WW-2064
URL: https://issues.apache.org/struts/browse/WW-2064
Project: Struts 2
Issue Type: Bug
Components: Views
Affects Versions: 2.0.9, 2.0.8
Reporter: Max Pimm
Priority: Trivial
In the freemarker template for the checkbox element in the xhtml template
(templates/xhtml/checkbox.ftl) the way the tooltip element in generated is not
consistent.
>From what i can see in all other templates the tooltip is generated by
>including templats/xhtml/tooltip.ftl. In the check box template the tooltip is
>required three times (one for each of the different label positions). For the
>top position this is implemented via an include.
line37: <#include "/${parameters.templateDir}/xhtml/tooltip.ftl" />
However in the left and right positions it is implemented with inline code:
lines 69 and 79: <img src='<@s.url value="/struts/tooltip/tooltip.gif"
includeParams="none" encode="false"/>' alt="${parameters.tooltip}"
title="${parameters.tooltip}" onmouseover="return
escape('${parameters.tooltip?js_string}');" />
I think that the lines 69 and 79 should use the same include as the line 37 so
as to be able to profit from the dojo tooltip in the include and future changes
to the tooltip include.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.