[richfaces-issues] [JBoss JIRA] (RF-12189) Risk of duplicate ID on Tab header with facet ?

Jean ANDRE (JIRA) jira-events at lists.jboss.org
Fri Apr 20 11:54:19 EDT 2012


    [ https://issues.jboss.org/browse/RF-12189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12686123#comment-12686123 ] 

Jean ANDRE commented on RF-12189:
---------------------------------

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">
>       &#160;<h:outputText id="#{tab.id}-tabTitle" value="#{desktopController.getTabHeader(tab.id)}" title="#{desktopController.getTabHeader(tab.id)}" />
>       &#160;<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

        


More information about the richfaces-issues mailing list