volosied commented on PR #607:
URL: https://github.com/apache/myfaces/pull/607#issuecomment-1767128386

   Tried to create a simple scenario, but so far so luck.  This DupId Exception 
is also difficult to replicate easily. 
   
   Requirements for this bug to occur are  
   
   - Composite Component
      - c:forEach
        - p:calendar
        
    I'm not familiar with p:calendar but my suspicion is that the tree under it 
is creating elements which aren't marked. Thus during the restore phase, the 
children are simply added.  Specifically, it relates to the component resources 
created by p:calendar.  (target is ComponentResourceContainer and the child is 
jakarta.faces.component.UIOutput.  ) 
    
    This getChildList.add causes the duplicate id exception since restored 
child elements match an id of an existing element.  I believe the faulty 
element is `inputmask/inputmask.js.xhtml?ln=primefaces&v=13.0.0"`? 
    
    See error from the original test app: 
    
    ```
    org.apache.myfaces.view.facelets.compiler.DuplicateIdException: Component 
with duplicate id "j_id__rd_5" found. The first component is {Component-Path : 
[Class: jakarta.faces.component.UIViewRoot,ViewId: /test.xhtml][Class: 
org.apache.myfaces.component.ComponentResourceContainer,Id: 
jakarta_faces_location_head][Class: jakarta.faces.component.UIOutput,Id: 
j_id__rd_5]}
   ``` 
    
    
    I'll take another look later.
     


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@myfaces.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to