myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mjovanov <>
Subject Re: Duplicate id in faces tree error - AGAIN?!
Date Thu, 19 Jun 2008 13:48:23 GMT wrote:
> On Wed, 2008-06-18 at 14:08 -0700, mjovanov wrote:
>> Is there a bug in the way MyFaces generates unique ids for components? We
>> keep getting "duplicate id in the faces tree" error and with every new
>> minor
>> release of MyFaces it seems to pop up in different place in our app. An
>> obvious fix is to explicitly name the components in question, but to me
>> this
>> seems really unreasonable. We use Facelets and it is really a pain to
>> always
>> have to come up with unique ids for each component inside our custom
>> facelets.
>> I just want to know what is the proper way to code around this issue? I
>> mean, am I rally suppose to explicitly name every single components? I
>> also
>> notice this is mostly happening when components are nested inside a
>> container component that has a rendered attribute set to some backing
>> bean
>> method.
>> Any comments/suggestions would be greatly appreciated!
> The proper solution is for you to contribute a unit test patch that
> checks for this problem. Then if anyone screws up the myfaces code, your
> unit test will fail and it will get fixed.
> Regards,
> Simon

OK, fair enough ;) I'll try and put something together next week.
View this message in context:
Sent from the MyFaces - Users mailing list archive at

View raw message