[
https://issues.jboss.org/browse/RF-12189?page=com.atlassian.jira.plugin.s...
]
Jean ANDRE edited comment on RF-12189 at 4/20/12 11:56 AM:
-----------------------------------------------------------
The file index.xhtml contains the involved code.
Actually and until now JSF does not complain about that.
Press F5 to update the source and have the duplicate ID.
Please, test also the case with nested tabs, for that edit the viewItem.xhtml file.
The duplicate id seems to comes from hidden div (active, inactive,...).
// code to insert in viewItem.hxtml
{code}
<!-- -->
<!-- AVAILABLE TAKS -->
<!-- -->
<f:facet name="header">
 <h:outputText id="#{task.id.uiActivity.name}-tabTitle"
value="#{msg[task.uiActivity.headerKey]}"
title="#{msg[task.uiActivity.headerKey]}" />
 <h:graphicImage id="#{task.uiActivity.name}-closeTabButton"
value="/images/closeButton.png"
{code}
was (Author: jorelia64):
The file index.xhtml contains the involved code.
Actually and until now JSF does not complain about that.
Press F5 to update the source and have the duplicate ID.
Please, test also the case with nested tabs, for that edit the viewItem.xhtml file.
The duplicate id seems to comes from hidden div (active, inactive,...).
Risk of duplicate ID on Tab header with facet ?
-----------------------------------------------
Key: RF-12189
URL:
https://issues.jboss.org/browse/RF-12189
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 4.2.0.Final
Environment: GlasshFish 3.1.2 - JSF Mojorra 2.1.7 - Spring 3.0.6 Final - CDI
Annotation- Firefox 10 - Windows 7 (6.1 sp1)
Reporter: Jean ANDRE
Attachments: Duplicate_ID_html_output.txt, NestedWeb_CDI_RF-12189.zip
Please, evaluate the risk of duplicate ID. We have check the HTML ouptup with w3c
validator and we got following error message:
Line 81, Column 19: ID "desktopForm:TAB_ITEM-02-2-tabTitle" already defined
<span id="desktopForm:TAB_ITEM-02-2-tabTitle" title="Liste #
(2)">Liste
Line 79, Column 19: ID "desktopForm:TAB_ITEM-02-2-tabTitle" first defined here
<span id="desktopForm:TAB_ITEM-02-2-tabTitle" title="Liste #
(2)">Liste...
Line 82, Column 18: ID "desktopForm:TAB_ITEM-02-2-closeTabButton" already
defined
<img id="desktopForm:TAB_ITEM-02-2-closeTabButton"
src="/NestedWeb/imag...
Line 80, Column 18: ID "desktopForm:TAB_ITEM-02-2-closeTabButton" first defined
here
<img id="desktopForm:TAB_ITEM-02-2-closeTabButton"
src="/NestedWeb/imag...
For the following dynamic tab fragment.
{code}
<rich:tab id="#{tab.id}"
onenter="enterTab('#{tab.id}');" headerClass="tab-header">
<!-- -->
<!-- DYNAMIC TABS -->
<!-- -->
<f:facet name="header">
 <h:outputText id="#{tab.id}-tabTitle"
value="#{desktopController.getTabHeader(tab.id)}"
title="#{desktopController.getTabHeader(tab.id)}" />
 <h:graphicImage id="#{tab.id}-closeTabButton"
value="/images/closeButton.png"
styleClass="closeButton"
onclick="closeTab('#{tab.id}');stopPropagation(event);"
alt="" />
</f:facet>
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira