[ 
http://issues.apache.org/jira/browse/MYFACES-1029?page=comments#action_12362772 
] 

Simon Kitching commented on MYFACES-1029:
-----------------------------------------

While MyFaces should try to be reasonably compatible with the RI for user 
convenience, I don't think it's necessary to slavishly follow bad decisions in 
the RI.

In this case, I'd be in favour of the patch that throws an exception; two JSP 
tags with the same id is just wrong, and for me an exception seems the correct 
action to take.

> Duplicate sibling ids allowed
> -----------------------------
>
>          Key: MYFACES-1029
>          URL: http://issues.apache.org/jira/browse/MYFACES-1029
>      Project: MyFaces
>         Type: Bug
>   Components: Implementation
>     Versions: Nightly
>     Reporter: Dennis Byrne
>     Assignee: Bruno Aranda
>     Priority: Minor
>      Fix For: Nightly
>  Attachments: lower_impact_patch.txt, patch.txt
>
> MyFaces will let you do this (same ids, renders two trees):
>     <t:tree id="tree" value="#{treeModel}"
>         styleClass="tree"
>         nodeClass="treenode"
>         selectedNodeClass="treenodeSelected"
>         expandRoot="true">
>     </t:tree>
>     <h:outputText id="tree" value="This text will not be rendered" />
> See my comments in http://issues.apache.org/jira/browse/MYFACES-1020 for an 
> explanation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to