You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by simon <si...@chello.at> on 2007/12/17 12:35:21 UTC
Re: [jsf][gravel][facelets][tobago] How can we define a comp id
namespace?
On Mon, 2007-12-17 at 12:29 +0100, Zied Hamdi wrote:
> Hi,
>
> I have a problem with reusability of components: I have many jsf
> template pages that I use everywhere throughout my app. The problem is
> that when I define explicitely the ids of my UIComps, name collisions
> occur.
>
> The question is: is there a way to define a sort of "namespace
> component holder"
Yes, it's called f:subview. Just wrap that around every include
statement.
Interestingly, I thought that facelets did this automatically, and that
f:subview was only needed for jsp includes. But obviously I'm wrong..
Regards,
Simon
Re: [jsf][gravel][facelets][tobago] How can we define a comp id namespace?
Posted by Zied Hamdi <ja...@gmail.com>.
Thank you Simon,
I'll remove all my ugly code with id construction :-).
Regards,
Zied
2007/12/17, simon <si...@chello.at>:
>
>
> On Mon, 2007-12-17 at 12:29 +0100, Zied Hamdi wrote:
> > Hi,
> >
> > I have a problem with reusability of components: I have many jsf
> > template pages that I use everywhere throughout my app. The problem is
> > that when I define explicitely the ids of my UIComps, name collisions
> > occur.
> >
> > The question is: is there a way to define a sort of "namespace
> > component holder"
>
> Yes, it's called f:subview. Just wrap that around every include
> statement.
>
> Interestingly, I thought that facelets did this automatically, and that
> f:subview was only needed for jsp includes. But obviously I'm wrong..
>
> Regards,
>
> Simon
>
>
--
Zied Hamdi
zatreex.sourceforge.net