You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2017/05/02 02:17:04 UTC
[jira] [Commented] (TOBAGO-1736) Incorrectly rendered component ID
[ https://issues.apache.org/jira/browse/TOBAGO-1736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15992005#comment-15992005 ]
Leonardo Uribe commented on TOBAGO-1736:
----------------------------------------
c:forEach has been a pain for a long time, and the changes involved to fix this has been included slowly in MyFaces Core 2.1/2.2 versions.
The fundamental problem is c:forEach is a build view time tag, that alters the component tree structure, but the old algorithm from facelets lacks of the necessary logic to do it properly. It is a long story, see MYFACES-3811 for details.
I agree with Volker, it is not a Tobago issue.
> Incorrectly rendered component ID
> ---------------------------------
>
> Key: TOBAGO-1736
> URL: https://issues.apache.org/jira/browse/TOBAGO-1736
> Project: MyFaces Tobago
> Issue Type: Bug
> Components: Facelets
> Affects Versions: 2.0.10
> Environment: Unix
> Reporter: David Crhonek
> Attachments: uploadBox.xhtml
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> When dynamically creating UI component ID, the rendered ID is often incorrect. This appears to be random, but happens very often, multiple times on a page. When the same value is put in ID and in tip (title), the rendered title is ALWAYS correct, however the rendered ID value is often INCORRECT.
> In the attached example, #{titleVar} is put to ID as well as to tip. This is an example of an incorrect output:
> <button type="button" name="page:details_upload:CASV3_C_B_TODAY" id="page:details_upload:CASV3_C_B_TODAY" title="NTC_A_B_TODAY" data-tobago-commands="{"click":{"partially":"page:details_upload:popup-Upload-TODAY-1","popup":{"command":"open"}}}" href="#" data-tobago-style="{"width":"59px","height":"14px","top":"52px","left":"677px","position":"absolute"}" class="tobago-button" style="width: 59px; height: 14px; top: 52px; left: 677px; position: absolute;"><span>Upload</span></button>
> ID and Title should be the same, but they are not. The expected value is NTC_A_B_TODAY
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)