I´m trying to reuse some portion of code within the same page, with the <@ include file="path"> tag.
Everything went well until I realized that if I have some Id on the reusable code, it will generate some problems of duplicated id.
For example, this is my reusable code:
The problem is with the id="someId" because I have to include this portion of code twice in the same page (like a navigation bar for example) at the begining and at the end.
Thanks in advance!
You should be able to wrap your include in an <f:subview> tag with a unique id.
<@ include file="path">
Retrieving data ...