Yes, but then this id won't be rendered (as I said before - the id
won't be rendered if it starts with an underscore)

regards,

Martin

On 5/24/05, Csík Norbert <[EMAIL PROTECTED]> wrote:
> No, the child component isn't custom. It can be anything, mostly some
> kind of a UIInput.
> 
> On 5/24/05, Sean Schofield <[EMAIL PROTECTED]> wrote:
> > You can control that in you child component's renderer.  Just render
> > an id attribute and use the getClientId() method.  What am I missing?
> > Is the child component a custom component also (that's what I was
> > assuming.)
> >
> > sean
> >
> > On 5/24/05, Csík Norbert <[EMAIL PROTECTED]> wrote:
> > > Yes, you're right. I don't care what the id is, but it have to render.
> > >
> > > On 5/24/05, Sean Schofield <[EMAIL PROTECTED]> wrote:
> > > > So you want to force the component to render the child's id even if
> > > > there was none supplied by the page author?  Do you care what the id
> > > > is?
> > > >
> > > > sean
> > > >
> > > > On 5/24/05, Csík Norbert <[EMAIL PROTECTED]> wrote:
> > > > > Hi
> > > > >
> > > > > I am creating an own component, which contains a child component. If
> > > > > the page author didn't set the id of the child component, then JSF
> > > > > didn't generate the id attribute for that HTML component in the
> > > > > generated HTML page, and the modifications made by my component is
> > > > > useless. So I have to check if the page author set the id, because if
> > > > > he's not then I have to set it to force the renderer to render the id
> > > > > attribute.
> > > > >
> > > > > I've tried wrote out to the standard infput the component's getId()
> > > > > and getClientId() value, but both of them were '_id18' (the generated
> > > > > id) if the page auther hadn't set the id attribute, and were 'myId' if
> > > > > he had set.
> > > > >
> > > > > I can ovverride the id with component.setId('child_' +
> > > > > component.getId()) and it works fine, but in this case the generated
> > > > > id becomes 'child__id18' and 'child_myId' which isn't the solution I'm
> > > > > looking for.
> > > > >
> > > > > On 5/24/05, Sean Schofield <[EMAIL PROTECTED]> wrote:
> > > > > > > The child component's getId, and getClientId methods always
> > > > > > > return a value, they are never null.
> > > > > >
> > > > > > According to the spec getId can return null but getClientId must be
> > > > > > "derived from the component identifier (or the result of calling
> > > > > > UIViewRoot.createUniqueId() if there is not one.)"
> > > > > >
> > > > > > So there is not a lot of flexability there.  Just curious, but why
> > > > > > would you want to know this info?
> > > > > >
> > > > > > >   Norbert Csík
> > > > > >
> > > > > > sean
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > >  Csík Norbert          http://norbert.web.elte.hu/
> > > > >  Programtervező matematikus
> > > > >  Trilobita Informatikai Rt. - rendszertervező fejlesztőmérnök
> > > > > ___ keep sm:)ing _________________________ooo__C( O O )L__ooo__
> > > > > http://www.aion.hu/ - A csik.NET otthona
> > > > > http://www.spreadfirefox.com/ - Rediscover the web
> > > > > Légy pontos: Mérj mikro-milliméterben! Jelölj krétával! Vágj baltával!
> > > > >
> > > >
> > >
> > >
> > > --
> > >  Csík Norbert          http://norbert.web.elte.hu/
> > >  Programtervező matematikus
> > >  Trilobita Informatikai Rt. - rendszertervező fejlesztőmérnök
> > > ___ keep sm:)ing _________________________ooo__C( O O )L__ooo__
> > > http://www.aion.hu/ - A csik.NET otthona
> > > http://www.spreadfirefox.com/ - Rediscover the web
> > > Légy pontos: Mérj mikro-milliméterben! Jelölj krétával! Vágj baltával!
> > >
> >
> 
> 
> --
>  Csík Norbert          http://norbert.web.elte.hu/
>  Programtervező matematikus
>  Trilobita Informatikai Rt. - rendszertervező fejlesztőmérnök
> ___ keep sm:)ing _________________________ooo__C( O O )L__ooo__
> http://www.aion.hu/ - A csik.NET otthona
> http://www.spreadfirefox.com/ - Rediscover the web
> Légy pontos: Mérj mikro-milliméterben! Jelölj krétával! Vágj baltával!
>

Reply via email to