myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kenji Nagahashi (JIRA)" <>
Subject [jira] Created: (MYFACES-1708) duplicate id exception with JSTL conditional tag
Date Wed, 15 Aug 2007 21:07:30 GMT
duplicate id exception with JSTL conditional tag

                 Key: MYFACES-1708
             Project: MyFaces Core
          Issue Type: Bug
          Components: General
    Affects Versions: 1.1.5
         Environment: JDK 1.5.0_12-b04/Linux amd64 or JDK 1.5.0_07-87/MacOS X, Tomcat 5.5.17
            Reporter: Kenji Nagahashi

It might have been better to reopen MYFACES-603, but observed behavior is slightly different.

I'm using JSTL's <c:if> to dynamically change view component tree depending on application
state. This consistently results in duplicate id exception in JspStateManagerImpl.checkForDuplicateIds().
I have been thinking it's a bad thing to do, but I may have found a problem in MyFaces.

UIComponentTag.removeFormerChildren method removes former children not seen during rendering.
It uses UIComponent.findComponent() for looking up children, but the method returns a child
of other UIComponent under certain situations - specifically when two UIComponents have the
same id due to changed automatically-assigned IDs. So former UIComponent incorrectly remains
in the view tree, causing duplicate id exception.

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

View raw message