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

Jacopo Cappellato commented on OFBIZ-4119:
------------------------------------------

Jacques is raising up an interesting point; a solution to the duplicated ids 
issue can be the one of assigning a different id to the hidden element
for example, if we have
<field name="somefield" id="abc" also-hidden="true"><hyperlink .../></field>
we could generate the following two html elements
<a id="abc" .../>
and
<hidden id="h_abc" />
where the h_ prefix (or similar) is only used if the hidden field is generated 
from an also-hidden attribute.

What do you think?



> Form Widget hyperlink issue.
> ----------------------------
>
>                 Key: OFBIZ-4119
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4119
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Release Branch 10.04, SVN trunk
>            Reporter: Ankit Jain
>            Assignee: Jacques Le Roux
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-4119.patch
>
>
> If we take hyperlink field in form widget then an hidden input field created 
> by the name same as the field name, which should not be done,  and the id 
> attribute is not set in the <a> tag. 
> By adding id attribute in the <a> tag then its helpful for developers to 
> perform action on it using js or css. 

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

Reply via email to