You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Travis Reeder <tr...@gmail.com> on 2005/10/28 22:50:16 UTC

findComponent not finding component when forceId="true"

I tried this without setting the id, works fine.
I set the id, works fine.
Added forceId="true" and it cannot find it.

Even though when I print out the component tree, the component id is
the same as the id I pass to findComponent:

Here is the component output:

<org.apache.myfaces.custom.inputAjax.HtmlSelectManyCheckboxAjax
id="smcb" FORMER_CHILD_IDS="[_id3]" forceIdIndex="true" forceId="true"
...  trimmed for space>

And the id I'm using is in this log statement between the brackets.

SEVERE: Component with id [smcb] not found in view tree.

Anyone know offhand where the bug may lie?

Travis

Re: findComponent not finding component when forceId="true"

Posted by Travis Reeder <tr...@gmail.com>.
That would be great Sean, it's a blocker for these ajax components.

Travis

On 11/2/05, Sean Schofield <se...@gmail.com> wrote:
> Its the same problem as inputSuggestAjax.  Chris Barlow and I wrote a
> patch for it but we haven't committed it yet.  I'll try to get to it
> later today or tomorrow ...
>
> sean
>
> On 11/2/05, Martin Marinschek <ma...@gmail.com> wrote:
> > @Sean - isn't that the same problem as with inputSuggestAjax? We
> > really should be able to find a component, even if it has forceId set
> > to true.
> >
> > There should be something like a central hashmap for all forceId'd
> > components. We can also do a duplicate check then.
> >
> > regards,
> >
> > Martin
> >
> > On 11/2/05, Sean Schofield <se...@gmail.com> wrote:
> > > forceId only affects the clientId not the component id.
> > >
> > > sean
> > >
> > > On 10/28/05, Travis Reeder <tr...@gmail.com> wrote:
> > > > I tried this without setting the id, works fine.
> > > > I set the id, works fine.
> > > > Added forceId="true" and it cannot find it.
> > > >
> > > > Even though when I print out the component tree, the component id is
> > > > the same as the id I pass to findComponent:
> > > >
> > > > Here is the component output:
> > > >
> > > > <org.apache.myfaces.custom.inputAjax.HtmlSelectManyCheckboxAjax
> > > > id="smcb" FORMER_CHILD_IDS="[_id3]" forceIdIndex="true" forceId="true"
> > > > ...  trimmed for space>
> > > >
> > > > And the id I'm using is in this log statement between the brackets.
> > > >
> > > > SEVERE: Component with id [smcb] not found in view tree.
> > > >
> > > > Anyone know offhand where the bug may lie?
> > > >
> > > > Travis
> > > >
> > >
> >
> >
> > --
> >
> > http://www.irian.at
> > Your JSF powerhouse -
> > JSF Trainings in English and German
> >
>

Re: findComponent not finding component when forceId="true"

Posted by Sean Schofield <se...@gmail.com>.
Its the same problem as inputSuggestAjax.  Chris Barlow and I wrote a
patch for it but we haven't committed it yet.  I'll try to get to it
later today or tomorrow ...

sean

On 11/2/05, Martin Marinschek <ma...@gmail.com> wrote:
> @Sean - isn't that the same problem as with inputSuggestAjax? We
> really should be able to find a component, even if it has forceId set
> to true.
>
> There should be something like a central hashmap for all forceId'd
> components. We can also do a duplicate check then.
>
> regards,
>
> Martin
>
> On 11/2/05, Sean Schofield <se...@gmail.com> wrote:
> > forceId only affects the clientId not the component id.
> >
> > sean
> >
> > On 10/28/05, Travis Reeder <tr...@gmail.com> wrote:
> > > I tried this without setting the id, works fine.
> > > I set the id, works fine.
> > > Added forceId="true" and it cannot find it.
> > >
> > > Even though when I print out the component tree, the component id is
> > > the same as the id I pass to findComponent:
> > >
> > > Here is the component output:
> > >
> > > <org.apache.myfaces.custom.inputAjax.HtmlSelectManyCheckboxAjax
> > > id="smcb" FORMER_CHILD_IDS="[_id3]" forceIdIndex="true" forceId="true"
> > > ...  trimmed for space>
> > >
> > > And the id I'm using is in this log statement between the brackets.
> > >
> > > SEVERE: Component with id [smcb] not found in view tree.
> > >
> > > Anyone know offhand where the bug may lie?
> > >
> > > Travis
> > >
> >
>
>
> --
>
> http://www.irian.at
> Your JSF powerhouse -
> JSF Trainings in English and German
>

Re: findComponent not finding component when forceId="true"

Posted by Martin Marinschek <ma...@gmail.com>.
@Sean - isn't that the same problem as with inputSuggestAjax? We
really should be able to find a component, even if it has forceId set
to true.

There should be something like a central hashmap for all forceId'd
components. We can also do a duplicate check then.

regards,

Martin

On 11/2/05, Sean Schofield <se...@gmail.com> wrote:
> forceId only affects the clientId not the component id.
>
> sean
>
> On 10/28/05, Travis Reeder <tr...@gmail.com> wrote:
> > I tried this without setting the id, works fine.
> > I set the id, works fine.
> > Added forceId="true" and it cannot find it.
> >
> > Even though when I print out the component tree, the component id is
> > the same as the id I pass to findComponent:
> >
> > Here is the component output:
> >
> > <org.apache.myfaces.custom.inputAjax.HtmlSelectManyCheckboxAjax
> > id="smcb" FORMER_CHILD_IDS="[_id3]" forceIdIndex="true" forceId="true"
> > ...  trimmed for space>
> >
> > And the id I'm using is in this log statement between the brackets.
> >
> > SEVERE: Component with id [smcb] not found in view tree.
> >
> > Anyone know offhand where the bug may lie?
> >
> > Travis
> >
>


--

http://www.irian.at
Your JSF powerhouse -
JSF Trainings in English and German

Re: findComponent not finding component when forceId="true"

Posted by Sean Schofield <se...@gmail.com>.
forceId only affects the clientId not the component id.

sean

On 10/28/05, Travis Reeder <tr...@gmail.com> wrote:
> I tried this without setting the id, works fine.
> I set the id, works fine.
> Added forceId="true" and it cannot find it.
>
> Even though when I print out the component tree, the component id is
> the same as the id I pass to findComponent:
>
> Here is the component output:
>
> <org.apache.myfaces.custom.inputAjax.HtmlSelectManyCheckboxAjax
> id="smcb" FORMER_CHILD_IDS="[_id3]" forceIdIndex="true" forceId="true"
> ...  trimmed for space>
>
> And the id I'm using is in this log statement between the brackets.
>
> SEVERE: Component with id [smcb] not found in view tree.
>
> Anyone know offhand where the bug may lie?
>
> Travis
>