Hi!
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:
"<t:div styleClass="someClass">
<t:div id="someId">
.....
</t:div>
</t:div>"
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.
Any suggestions?
Thanks in advance!
Hi Christian,
You should be able to wrap your include in an <f:subview> tag with a unique id.
<f:subview id="subview_1">
<@ include file="path">
</f:subview>
<f:subview id="subview_2">
<@ include file="path">
</f:subview>
Stan