HTML generated with duplicate Ids when using "forceId=true"
-----------------------------------------------------------

                 Key: MYFACES-1863
                 URL: https://issues.apache.org/jira/browse/MYFACES-1863
             Project: MyFaces Core
          Issue Type: Bug
            Reporter: Guy Bashan


It is possible to generate duplicate ids when using "forceId=true".
For example:
Create 2 nested databases with inner control that uses: forceId=true
<h:datatable value="outerValues" var="outerValue>
  <h:column>  
     <h:datatable value="innerValues" var="innerValue">
        <h:column>
            <t:outputText id="myId" forceId="true" />
       </h:column>
     </h:column>
</h:datatable>

The created html will produce the ids: myId[0], myId[1], myId[2] and so on...
The truth is, that even in a single table loop, I was expecting to see Ids 
according to the regular convention: myId:0, myId:1, ...
and in this case: myId:0:0, myId:0:1, ...., ,myId:1:0, myId:1:1, ...
instead, I saw this "array like" convention, which is acceptable, as long as it 
will be something like this: myId[0][0], ...

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

Reply via email to