views:

59

answers:

0

I'm creating a facelet component which I intened to include many times in a single page.

I need to define one a4j:outputPanel tag inside my component and give it an id, so that it would be possible to reRender this outputPanel via ajax. But facelets seems not to handle that situation as "duplicateId Exception" is thrown. I partialy understand why this happen. I have included several components in a single page, but each component contains outputPanel with the same hardcoded id.

  1. Can id not be hardcoded?
  2. Is there any facelets tag that creates boundary in which you don't have to care about conflicts between ids of objects inside that boundary with ids of objects outside the boundary?