>From: "Helmut Swaczinna" <[EMAIL PROTECTED]>
>
> Hi,
>
> I want to include the same subview more than once in my page but I get a
> error message saying the id of the
> subview is not unique. This is correct. But how can I make the ids of the
> subview unique? Is it possible to
> pass the subview id as param to jsp:include?
>
>Example:
>
>myPage.jsp
>
> <jsp:include page="mySubview.jsp"/>
> ...
> <jsp:include page="mySubview.jsp"/>
>
>mySubview.jsp
>
><f:subview id="mySubview">
>...
></f:subview>
>
Try putting your subviews in "mySubview.jsp".
<f:subview id="mySubview1">
<jsp:include page="mySubview.jsp"/>
</f:subview>
<f:subview id="mySubview2">
<jsp:include page="mySubview.jsp"/>
</f:subview>
The subview is a "Naming Container" in JSF terms. Its "id" is
used to formulate the child component's clientIds. The
components in the first subview will be prefixed with
"mySubview1:somecomponentId". The same component in the
second subview will be identified by "mySubview2:somecomponentId".
>
> Regards
> Helmut
Gary
>
>