I have a problem with duplicated ids in my JSF app. I\'ve read in this post that one of the possible solutions is to use Naming Container. Can you give me some example how t
I suggest to take a step back and investigate why the duplicate ID problem occurs. Once you nailed the root cause down, then just fix it the "usual" way rather than creating your own UINamingContainer component.
There are several possible causes for duplicate ID errors which should help you further nailing it down:
UIComponents inside the same UINamingContainer component.UIComponent property of the same bean.f:subview is been declared in the parent page instead of the include page.UINamingContainer component.new UIComponent()) without having an ID assigned.Here, UINamingContainer is under each the , and .
If the above suggestions doesn't help, then update your question to include the smallest possible code snippet (thus, without all irrelevant code/clutter like unrelated components, libraries, HTML/CSS/JS/etc) which reproduces the exact same problem by just copy'n'paste'n'running it without any changes.