dev@jsftemplating.java.net

Re: JSFTemplating: [Issue 35] New - cannot use two <!include> tags in the same JSF file

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Tue, 08 Jan 2008 10:50:52 -0800

Hi Irfan,

Thanks for filing this... I will look into this (please send an
example). I suspect that there's an "id" conflict between the 2
files... currently there is a known issue resulting in the possibility
of having conflicting id's b/c included files are not aware of the
context in which they are used and therefor do not generate unique ids
(id generation, except for dynamic ids, is done when the file is read).

You might be able to get around this by putting the included content in
a "NamingContainer" such as a sun:panelGroup:

    <sun:panelGroup id="foo"><!include "..." /></sun:panelGroup>
    <sun:panelGroup id="bar"><!include "..." /></sun:panelGroup>

Thanks!

Ken

irfanahmed_at_dev.java.net wrote:
> cannot use two <!include> tags in the same JSF file:
> https://jsftemplating.dev.java.net/issues/show_bug.cgi?id=35
> Issue #|35
> Summary|cannot use two <!include> tags in the same JSF file
> Component|jsftemplating
> Version|1.1
> Platform|Sun
> OS/Version|All
> URL|
> Status|NEW
> Status whiteboard|
> Keywords|
> Resolution|
> Issue type|DEFECT
> Priority|P3
> Subcomponent|Core
> Assigned to|kenpaulsen
> Reported by|irfanahmed
>
>
>
>
>
>
> ------- Additional comments from irfanahmed_at_dev.java.net Tue Jan 8 17:16:51 +0000 2008 -------
> I am using the <!include> tag to include a segment of code from another file. However If I have two <!include> tags in
> the same page then only code from the first <!include> tag is added.
>
> I will try to attach an example. I have seen this happening in the GUI for sailfin.
>