[ 
https://issues.apache.org/jira/browse/OFBIZ-12697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17646111#comment-17646111
 ] 

Daniel Watford commented on OFBIZ-12697:
----------------------------------------

Cherry-picked fix from trunk to release22.01. Tested using same approach used 
when applying original PR to trunk 
([https://github.com/apache/ofbiz-framework/pull/547]), copied below:

 

Testing with by observing changes to page 
[https://localhost:8443/partymgr/control/showclassgroups] when applying title, 
description and size attribute changes to hyperlink fields in 
party/widget/partymgr/PartyClassificationForms.xml#ListPartyClassificationGroups
h3. Field: partyClassificationGroupId

Changes to the title, description and size attributes of the hyperlink element 
were all reflected as expected in the browser.
h3. Field: deleteLink

Changes to the title, description and size attributes of the hyperlink element 
were all reflected as expected in the browser.
h2. Test passed.

> Hyperlink: support title attribute
> ----------------------------------
>
>                 Key: OFBIZ-12697
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12697
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: 22.01.01, Upcoming Branch
>            Reporter: Florian Motteau
>            Priority: Minor
>
> The `hyperlink` widget can have a `title` attribute, but this attribute is 
> not rendered as an HTML `title` attribute on the rendered `a` :
> `<hyperlink target="myUrl" description="text content for the rendered 'a'" 
> title="tooltip content">`
> ...renders like :
> `<a href="myUrl">text content for the rendered 'a'</a>`
> ...whereas one can assume that the title attribute will be used like so :
> `<a href="myUrl" title="tooltip content">text content for the rendered 
> 'a'</a>`
> ...so when hovering the link, we get a browser tooltip.
> It would be nice to make the `title` attribute for `hyperlink` (which is 
> already present in the XSD) to be rendered as a `title` HTML attribute on the 
> link, using a `FlexibleStringExpander`.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to